Re: kern_control question
Re: kern_control question
- Subject: Re: kern_control question
- From: Vincent Lubet <email@hidden>
- Date: Wed, 17 Aug 2005 13:16:50 -0700
Peter,
In fact, starting with Mac OS X 10.4.2, a call to getsockopt() on a
kernel control socket will copy the user data into the kernel buffer.
This should provide for the read/write behavior you're looking for.
Vincent
On Aug 17, 2005, at 1:04 PM, Peter Lovell wrote:
Actually they're not quite equivalent. ioctl allows the data area
to be read/write, but socket options are one or the other, not both.
However, I can work around the issue. Thanks for the confirmation.
Regards.....Peter
On Aug 17, 2005, at 2:50 PM, Josh Graessley wrote:
That is correct. You can use socket options instead.
-josh
On Aug 17, 2005, at 11:43 AM, Peter Lovell wrote:
Hi all,
this is a question for which I think I have the answer but I'm
posing it just to make sure I haven't overlooked anything.
It seems to me that kern_control sockets do not support user-
defined ioctls, just CTLIOCGCOUNT and CTLIOCGINFO. Is this correct?
Thanks.....Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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