• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
m_dup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: m_dup
      • From: Justin Walker <email@hidden>
  • Prev by Date: RE: ioctl always returns 0
  • Next by Date: Re: m_dup
  • Previous by thread: Re: Newbie question about receiving raw ethernet packet
  • Next by thread: Re: m_dup
  • Index(es):
    • Date
    • Thread