kern_ctl_reg ctl_sendsize/ctl_recvsize limits
kern_ctl_reg ctl_sendsize/ctl_recvsize limits
- Subject: kern_ctl_reg ctl_sendsize/ctl_recvsize limits
- From: "Bhavesh Davda" <email@hidden>
- Date: Tue, 12 Sep 2006 13:15:08 -0700
What are the limits on ctl_sendsize/ctl_recvsize when registering a
kernel control via ctl_register()?
Looking in xnu-792.10.96/bsd/kern/uipc_socket2.c: sbreserve(), it
looks like the limit is 256K*2K/(2K+256) = ~ 227 K.
Can it be higher than that?
If not, I have a problem and have to add some sort of flow control in
the clients of my kern_ctl NKE to make sure I don't overrun the socket
buffers.
Thanks!
--
Bhavesh P. Davda
_______________________________________________
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