• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Kernel IPC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Kernel IPC (From: me <email@hidden>)
 >Re: Kernel IPC (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: Kernel IPC
  • Next by Date: -waitfor in Xcode
  • Previous by thread: Re: Kernel IPC
  • Next by thread: -waitfor in Xcode
  • Index(es):
    • Date
    • Thread