Re: NKE Manager
Re: NKE Manager
- Subject: Re: NKE Manager
- From: Christophe Allie <email@hidden>
- Date: Tue, 15 Oct 2002 16:05:03 -0700
On 10/15/02 3:48 PM, "Michael Cashwell" <email@hidden> wrote:
>
On Friday, October 11, 2002, at 06:32 PM, Joshua Graessley wrote:
>
>
> In Mac OS X 10.2, the header sys/kern_control.h defines the
>
> AF_SYS_CONTROL protocol of PF_SYSTEM. This can be used to communicate
>
> with and control kernel extensions. It has some limitations.
>
> sys/kern_control.h has some documentation that should help you get
>
> started. Unlike the NKE manager (PF_NKE), there is no sample code.
>
>
Thanks Josh (and Justin), this has been helpful.
>
>
Because my NKE needs the ability to distinguish multiple channels (for
>
the lack of a better term) I've decided to go with PF_SYSTEM as Josh
>
described. It supports the concept of a unit number (per NKE signature)
>
and that's just what I need.
>
>
The header sys/kern_control.h is pretty complete as to the use of the
>
API but I have one question. When userland code writes data to the NKE
>
and its ctl_write() function is called is the NKE responsible for
>
freeing the mbuf? My hunch is yes since it's consuming the buffer (ie:
>
not passing it on to anything else) but I wanted to confirm.
This is your responsibility to free the mbuf when you are done with it.
Christophe.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.