• 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: Easy mbuf_pullup Question (I hope)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy mbuf_pullup Question (I hope)


  • Subject: Re: Easy mbuf_pullup Question (I hope)
  • From: email@hidden (Jun-ichiro itojun Hagino)
  • Date: Tue, 6 Feb 2007 22:22:57 +0900 (JST)

> mbuf_pullup makes the data in an mbuf chain contiguous in a single
> mbuf, if I understand correctly. mbuf_pullup documentation always
> comes with the warning that if there is not sufficient space, it will
> free the mbuf. However, that documentation never explains this
> limitation in any further detail. How does one properly check to make
> sure that mbuf_pullup is not going to fail due to insufficient space?

	i assume mbuf_pullup() means m_pullup() in traditional BSD kernel.
	if my assumption is wrong, please ignore me...

	(1) memory shortage - you can't catch this case beforehand
	(2) you have requested too big bytes to m_pullup() - you can't request
	    bytes > MLEN.

itojun
 _______________________________________________
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: Easy mbuf_pullup Question (I hope)
      • From: Andrew Gallatin <email@hidden>
References: 
 >Easy mbuf_pullup Question (I hope) (From: Jones Curtis <email@hidden>)

  • Prev by Date: Easy mbuf_pullup Question (I hope)
  • Next by Date: Re: Easy mbuf_pullup Question (I hope)
  • Previous by thread: Easy mbuf_pullup Question (I hope)
  • Next by thread: Re: Easy mbuf_pullup Question (I hope)
  • Index(es):
    • Date
    • Thread