Kern Control: ctl_enqueuedata & Kernel Panic
Kern Control: ctl_enqueuedata & Kernel Panic
- Subject: Kern Control: ctl_enqueuedata & Kernel Panic
- From: Stephane Sudre <email@hidden>
- Date: Tue, 25 Jan 2005 16:00:09 +0100
When calling:
ctl_enqueuedata(kern_ctl_ref ctlref, void *data, size_t len, u_int32_t
flags); /* sys/kern_control.h */
I'm seeing a Kernel Panic (in ctl_enqueuedata call).
Yet:
The ctl_ref looks OK, no ENOTCONN error.
The len looks OK, no EMSGSIZE error.
flags is set to 0.
And data is pointing to a local struct with no indirection within it.
And I didn't get an EINVAL error.
------------
* Does the data need to be copyout before calling ctl_enqueuedata?
* The Kern_control does not have a ctl_write (or equivalent) callback.
Does it need to have one to make this work?
* ctl_sendsize and ctl_recvsize (or equivalents) sizes are set to 0
(default values) but since the len is ok, I don't think the error is
coming from this.
_______________________________________________
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