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

Re: data into mbufs


  • Subject: Re: data into mbufs
  • From: Josh Graessley <email@hidden>
  • Date: Mon, 23 Jan 2006 15:36:31 -0800


I believe this function made it in fairly late in the game. The documentation is derived from the comments in the headers. This process is done manually. The documentation was not updated after this function was included. This function is officially supported and should continue to work until it is deprecated (if ever) according to the document that covers the life cycle of kernel programming interfaces.


I believe this should be a reasonable way of copying data in to an mbuf. It would be nice if there were some significantly simpler routines for dealing with mbufs.

-josh

On Jan 23, 2006, at 3:20 PM, Peter Lovell wrote:

Hi folks,
I'm rewriting some old, hacky kext code to use kpi etc.

One of the things is to get a chuck of data into mbufs for sending,
typically 500-800 bytes and occasionally could be a bit over 1K. I'd
like to avoid dealing with mbuf characteristics as much as possible, and
leave that to the kpi_mbuf routines.


Looking at the functions available, it would seem that the most reliable
way would be to allocate a header mbuf, and then call mbuf_copyback to
copy the data into it (since the function will add mbufs, clusters etc
as needed). I'll have to set pkthdr info when done, of course.


But this routine isn't included in the ADC documentation even though it
is in the headers and not flagged as "private".


Can we rely on this routine, and/or is there a better way of copying a
hunk of data into mbufs for sending?

Thanks.....Peter

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com


This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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(2): data into mbufs
      • From: "Peter Lovell" <email@hidden>
References: 
 >data into mbufs (From: "Peter Lovell" <email@hidden>)

  • Prev by Date: data into mbufs
  • Next by Date: Re(2): data into mbufs
  • Previous by thread: data into mbufs
  • Next by thread: Re(2): data into mbufs
  • Index(es):
    • Date
    • Thread