Re: m_dup
Re: m_dup
- Subject: Re: m_dup
- From: Justin Walker <email@hidden>
- Date: Thu, 14 Apr 2005 10:48:47 -0700
On Apr 14, 2005, at 10:41, Carl Smith wrote:
In my kernel code I want to make a copy of a passed in struct mbuf.
Actually I want this mbuf copy to be a newly allocated mbuf that is a
duplicate/clone of the passed in mbuf, but I want to be able to free
the
original mbuf.
So my question is, will m_dup() do this for me or should I be looking
at
something else, like m_copy? Or again is it not that simple and I need
to allocate a new mbuf, somehow, then do one of the above mentioned
calls?
Have you actually looked at the code? That might help answer your
questions. If you have, it would be good to say so.
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.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >m_dup (From: "Carl Smith" <email@hidden>) |