Re: mbuf from scratch
Re: mbuf from scratch
- Subject: Re: mbuf from scratch
- From: "Justin C. Walker" <email@hidden>
- Date: Tue, 28 Jun 2005 13:05:41 -0700
On Jun 28, 2005, at 12:50 , Carl Smith wrote:
So you are saying there is NO way to create a struct mbuf* from
scratch,
meaning using your own data, i.e. "abcdefghi..", and send it out from
the kernel/driver?
Huh? Read what I wrote, again. I think there is some confusion on
one of our parts. Your 'original question' was about 'ifp', not 'mbuf'.
But my original question still stands. Should I be using this saved
copy, of 'ifp' or should I some how be creating or getting this 'ifp'
new/from scratch when creating my 'new' mbuf?
Well, the "ifp" is "struct ifp *", not "struct ifp", so you aren't
"creating" it, just copying it.
Another way to ask the question if one is creating a new mbuf, via
m_devget, where would one get the 'ifp' to put into m_devget?
You get it from the mbuf you are "cloning"; just pass its value to
m_devget().
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
If you're not confused,
You're not paying attention
--------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden