site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AcV8GHRA5UYhYz2nQm2g/tUGIN4FOgAAdN1Q Thread-topic: mbuf from scratch Thanks Justin, that is the way I am doing it. 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? Carl -----Original Message----- From: darwin-kernel-bounces+csmith=fortresstech.com@lists.apple.com [mailto:darwin-kernel-bounces+csmith=fortresstech.com@lists.apple.com] On Behalf Of Justin C. Walker Sent: Tuesday, June 28, 2005 3:35 PM To: Darwin Kernel Subject: Re: mbuf from scratch On Jun 28, 2005, at 12:27 , Carl Smith wrote:
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 ----------- My wife 'n kids 'n dog are gone, I can't get Jesus on the phone, But Ol' Milwaukee's Best is my best friend. ----------- _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/csmith%40fortresste ch.com This email sent to csmith@fortresstech.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com