RE: m_dup
RE: m_dup
- Subject: RE: m_dup
- From: "Carl Smith" <email@hidden>
- Date: Thu, 14 Apr 2005 15:31:32 -0400
- Thread-topic: m_dup
As per my original post, before the tongue lashing:
Does the function 'struct mbuf* m_dup(struct mbuf *m, int how)' return a
newly allocated mbuf allowing me to m_freem(m), the passed in original
struct mbuf *m, without affecting the memory/mbuf returned by m_dup?
Thanks
Carl
-----Original Message-----
From: macnetworkprog-bounces+csmith=email@hidden
[mailto:macnetworkprog-bounces+csmith=email@hidden]
On Behalf Of Justin Walker
Sent: Thursday, April 14, 2005 2:08 PM
To: macnetworkprog Programming
Subject: Re: m_dup
On Apr 14, 2005, at 10:59, Carl Smith wrote:
> You mean have I looked at m_dup in /uipc_mbuf.c yes, do I understand
> it completely no, otherwise I would not be asking these questions.
>
> I was assuming it was a newly allocated mbuf, because it was similar
> to m_devget, using m_gethdr and m_get, but I just wanted some
> reconfirmation from the more experienced Mac/Unix experts.
>
> Before I went through a bunch of kernel panics and headaches. :)
You mean pass the headaches off to us :=}
If you've looked at the source, say so, and ask questions that are
specific to the source. That will help qualify our replies, and
simplify life for everyone.
What isn't clear?
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:
ech.com
This email sent to email@hidden
_______________________________________________
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