m_dup
m_dup
- Subject: m_dup
- From: "Carl Smith" <email@hidden>
- Date: Thu, 14 Apr 2005 13:41:22 -0400
- Thread-topic: m_dup
Title: Message
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?
Thanks
Carl
_______________________________________________
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