Re: Easy mbuf_pullup Question (I hope)
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