On Mon, 27 Jan 2003, [ISO-8859-1] George Andri wrote:
Hi there,
I am aware of user -> kernel boundary crossing, like
Mach IPC, RPC, syscall, sysctl and ioctl.
But I'm interested ina kernel -> user *initiated* connection,
is there anything outthere? I have a kext that needs
to initiate communication with an user process.
I think this will do what you want. http://www.java-internals.com/code/mig_in_kernel.html Its a sample project on how to call MIG (Mach Interface Generator) functions from a kext. It passes the mach port in via sysctl, however you can also do it other ways (like one of your private args to the mount structure you pass mount()). You will probably be fine w/"simpleroutine"'s in the MIG files since you just need to fire off events and not wait for a reply/return. Unfortunately, it doesnt build out of the box for me, but the sample source is still very useful none the less. There are also tons of examples of MIGs thoughout the darwin sources. Just look for .defs files. --- Marek Kozubal marek@portents.com _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Marek Kozubal