* [ECOS] MFREE(m,n) from the DSR context
@ 2006-09-15 8:28 manu shetty
2006-09-15 9:30 ` Nick Garnett
0 siblings, 1 reply; 2+ messages in thread
From: manu shetty @ 2006-09-15 8:28 UTC (permalink / raw)
To: ecos-discuss
Hi,
Can I call MFREE(m,n) from the DSR context to
free the mbuf ?.
Regards
Shetty
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] MFREE(m,n) from the DSR context
2006-09-15 8:28 [ECOS] MFREE(m,n) from the DSR context manu shetty
@ 2006-09-15 9:30 ` Nick Garnett
0 siblings, 0 replies; 2+ messages in thread
From: Nick Garnett @ 2006-09-15 9:30 UTC (permalink / raw)
To: manu shetty; +Cc: ecos-discuss
manu shetty <shetty_m@yahoo.com> writes:
> Hi,
> Can I call MFREE(m,n) from the DSR context to
> free the mbuf ?.
No. Ethernet drivers do all IO in a thread context and are passed
scatter/gather lists for data. While these lists are often derived
from an mbuf chain, the driver never gets access to the actual
mbufs. IO is done from a thread context since it is necessary to have
the network stack locked during the call. Any attempt to manipulate
mbufs or any other network stack data structures outside the lock
would result in data corruption. If you are writing drivers for some
other device, you should follow the model established by the ethernet
drivers.
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-15 9:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-15 8:28 [ECOS] MFREE(m,n) from the DSR context manu shetty
2006-09-15 9:30 ` Nick Garnett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).