• 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
Kern Control: ctl_enqueuedata & Kernel Panic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: booting in console mode
  • Next by Date: Re: booting in console mode
  • Previous by thread: Re: booting in console mode
  • Next by thread: non blocking memory allocation api
  • Index(es):
    • Date
    • Thread