ctl_send_func question
ctl_send_func question
- Subject: ctl_send_func question
- From: "Jamie Wood" <email@hidden>
- Date: Tue, 15 Mar 2005 17:04:38 -0800
Hi,
I have a couple of questions about the ctl_write function that needs to be
provided when registering a kernel control. The declaration looks like this:
int (*ctl_write)
(kern_ctl_ref ctlref, void *userdata, struct mbuf *m);
/* Send data to the controller,
called when user client */
/* writes data to the socket */
My question is about the lifetime of the input mbuf chain. Will the caller
of ctl_write free the mbuf chain after ctl_write returns, or does it assume
that ctl_write will free the mbuf chain?
Also, is the first mbuf in the mbuf chain always (or never) a header mbuf?
Thanks,
Jamie
_______________________________________________
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