Re: Kernel Controls Buffer Size Issue
Re: Kernel Controls Buffer Size Issue
- Subject: Re: Kernel Controls Buffer Size Issue
- From: Vincent Lubet <email@hidden>
- Date: Fri, 17 Jun 2005 18:41:31 -0700
It's a bug, please file a bug report at http://bugreporter.apple.com/
As a workaround you can set the SO_RCVBUF option on kernel control
socket once you've connected to it.
Vincent
On Jun 17, 2005, at 5:38 PM, Raj Doshi wrote:
Hello,
I'm using kernel controls (Mac OS X 10.4) for communication between
a kext and a user space process. The kern_ctl_reg structure that
is passed to the ctl_register function has some fields
(ctl_sendsize and ctl_recvsize) that can be set to adjust the
buffer sizes for messages. When I set these fields to zero, then
they are changed to default sizes of 2048 and 8192, respectively,
after calling ctl_register. However, when I specify larger values
for these fields, they are still set to these default values after
the ctl_register call. When I establish a connection, a call to
ctl_getenqueuespace confirms that the receive buffer is set to 8192
bytes, even though I specified a larger amount. For my purposes
(sending network packets back and forth), I would like these
buffers to be at least 32000 bytes.
My questions are the following:
1. Am I doing something wrong, or is this a bug?
2. Is there another good method of kext/user space communication
that I should consider using (for moderate latency and moderate
bandwidth, a pointer to documentation/examples would be helpful)?
Your assistance is appreciated.
Raj Doshi
_______________________________________________
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