• 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
Re: mbuf_dup/mbuf_freem with mbufs containing aux data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mbuf_dup/mbuf_freem with mbufs containing aux data


  • Subject: Re: mbuf_dup/mbuf_freem with mbufs containing aux data
  • From: "Bhavesh Davda" <email@hidden>
  • Date: Mon, 29 Jan 2007 18:57:47 -0800

Hi Adi,

> What's my workaround?

You may want your code to first check if the new mbuf resulted from
mbuf_dup() has the same auxiliary mbuf attached to it, and if so
manually copy the auxiliary mbuf and attach it to the new mbuf using
mbuf_aux_add().  That way, when this bug is fixed your code would
still work.

Adi

How do I check if the new mbuf resulted from mbuf_dup() has auxiliary data at all? I couldn't see any accessors in kpi_mbuf.

If there were, then I would have simply queried if there was aux data
attached in the new mbuf, and NULL'ed the aux pointer in the new mbuf,
because my clients for the duplicated mbuf don't care about that aux
data.

Thanks!

--
Bhavesh P. Davda
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: mbuf_dup/mbuf_freem with mbufs containing aux data
      • From: Adi Masputra <email@hidden>
References: 
 >mbuf_dup/mbuf_freem with mbufs containing aux data (From: "Bhavesh Davda" <email@hidden>)
 >Re: mbuf_dup/mbuf_freem with mbufs containing aux data (From: Adi Masputra <email@hidden>)

  • Prev by Date: Re: mbuf_dup/mbuf_freem with mbufs containing aux data
  • Next by Date: Re: mbuf_dup/mbuf_freem with mbufs containing aux data
  • Previous by thread: Re: mbuf_dup/mbuf_freem with mbufs containing aux data
  • Next by thread: Re: mbuf_dup/mbuf_freem with mbufs containing aux data
  • Index(es):
    • Date
    • Thread