Mach RPCs between user space and a kext
Mach RPCs between user space and a kext
- Subject: Mach RPCs between user space and a kext
- From: Sam Vaughan <email@hidden>
- Date: Wed, 19 May 2004 11:38:13 +1000
After weighing up my boundary crossing options for a tool I'm writing,
I decided I need to use Mach RPC to talk to my kext from user space.
I've read a fair bit about it in the Kernel Programming doc, the Mach 3
Server Writer's Guide and assorted Darwin source code, but what I
really need is a very simple example.
What's not clear to me is how my kext would register the RPC services
it provides with the part of the kernel that accepts the calls from
user space. According to the Kernel Programming doc there's no name
server for this stuff in MacOS X, and I'm not sure what part of the
kernel takes over this responsibility.
Also, what port should the user space code use when it issues the RPC?
The Kernel Programming doc says to look in bootstrap.h, but this file
is empty in Darwin 7.3.0.
Can anyone point me to some sample code that uses Mach RPC to cross the
user-kernel boundary? The examples in Darwin such as
upl_commit_range() and friends simply call Mach from BSD, which isn't
really relevant to the issues I'm seeing.
Thanks,
Sam
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.