site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Mar 14, 2007, at 4:22 PM, Bhavesh Davda wrote: I know that the kern_control API doesn't provide a callback for reads on the sockets that it internally uses, after a call to ctl_enqueuembuf(). But how would I go about implementing something that gets called on a read/recv from my kern_control socket? = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... You wouldn't, as this entirely defeats the point of having a decoupled reader/writer model. There are plenty of synchronous user/kernel interfaces (socket ioctl in your case, perhaps). Or, since the control socket protocol is entirely under your control, you could require the reader to write an 'ack' packet. This email sent to site_archiver@lists.apple.com