Kernel Controls Buffer Size Issue
Kernel Controls Buffer Size Issue
- Subject: Kernel Controls Buffer Size Issue
- From: Raj Doshi <email@hidden>
- Date: Fri, 17 Jun 2005 20:38:21 -0400
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:
This email sent to email@hidden