Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kern Control: ctl_enqueuedata & Kernel Panic



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:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.