Re: Kernel IPC
Re: Kernel IPC
- Subject: Re: Kernel IPC
- From: Kevin Brock <email@hidden>
- Date: Thu, 08 Mar 2012 09:50:24 -0800
On Mar 7, 2012, at 10:06 AM, Quinn The Eskimo! wrote:
>
> On 6 Mar 2012, at 22:13, me wrote:
>
>> I am looking for some code examples of kext to user space code.
>
> For BSD level code I generally recommend kernel control sockets, as illustrated by the tcplognke sample code.
>
> <https://developer.apple.com/library/mac/#samplecode/tcplognke/>
I second this recommendation. I've used kernel control sockets for all sorts of things, and they're 1) brain dead simple compared to some alternatives and 2) pretty robust--I haven't had a major bug yet related to any of the kernel control socket functionality.
> In my experience it's very hard to get Mach messaging right and, when you get it from from kernel code, you end up rebooting a lot )-:
Or worse, your customer finds the corner cases and *they* reboot a lot…
Kevin
_______________________________________________
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