• 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: m_devget
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: m_devget


  • Subject: Re: m_devget
  • From: Peter Lovell <email@hidden>
  • Date: Mon, 4 Apr 2005 16:38:38 -0400


On Apr 4, 2005, at 4:08 PM, Carl Smith wrote:

 I want to create a new chain of mbufs, I am using the function m_devget, my question is, what if I have data larger than 1500 bytes, say 3000 bytes, can I pass the buffer into m_devget and m_devget will chain, link out the data correctly or do I have to break up the large data myself, into 1500 bytes chunks and call m_devget twice?


I hope this is relatively simple question so I can get some response back from this forum.


 If this is not the proper forum for asking this question I would appreciate some feedback on where I should be asking these questions.

Hi Carl,

Looking at xnu/bsd/kern/uipc.mbuf.c (hint hint) it would appear that it will break it up for you.

Note that it doesn't wait, and can therefore fail and return zero (NULL).

In case you don't know, you can also post such questions here (with probably a better hit rate) ...
List-Subscribe: <http://lists.apple.com/mailman/listinfo/macnetworkprog>,
<mailto:email@hidden?subject=subscribe>




regards.....Peter
_______________________________________________
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


References: 
 >m_devget (From: "Carl Smith" <email@hidden>)

  • Prev by Date: Re: Writing to disk using filter scheme driver
  • Next by Date: Re: m_devget
  • Previous by thread: m_devget
  • Next by thread: Re: m_devget
  • Index(es):
    • Date
    • Thread