This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Atomic functions


manu shetty <shetty_m@yahoo.com> writes:

> Hi,
>     Does the ECOS supports the "atomic functions"
> [atomic_set,atomic_read,atomic_inc] of Linux ?


No.

What exactly are you trying to do? You have so far asked about
sock_register(), an internal function in the Linux networking stack,
device driver bottom half interrupt handlers and now atomic
operations.

It sounds to me like you are trying to shoehorn some large chunk of
Linux kernel code into the eCos network stack. This is probably going
to be an very hard job. eCos is not Linux, you cannot expect to find
any of the Linux kernel calls available. The BSD network stack is
built on quite different principles from the Linux stack, so trying to
glue code from Linux into it is almost bound to fail.

If the functionality you want is available in FreeBSD, then I suggest
you start from there. You would have more chance of getting it to
work than from the Linux code.

Alternatively, if you need a lot of Linux functionality, use
Linux. Perhaps eCos is not suitable for what you want to do.

-- 
Nick Garnett                                 eCos Kernel Architect
http://www.ecoscentric.com            The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]