Dan McDonald wrote:
Is there an example in the current source where a kernel thread calls up into a 
user-space program?  I thought doors allowed this, but I'm not 100% sure.  
Examples are always nice.  :)

I ask because it might be possible to make the current IPsec/Key-Management 
interface (the PF_KEY socket) be quicker, or better exploit a multithreaded key 
management application.

The function you are looking for is 'door_ki_upcall()'.

You can see an example of the kernel usage of this in the crypto framework kcf module:

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/crypto/core/kcf.c#238

In this case the file descriptor is passed to the kernel over /dev/cryptoadm in an ioctl.

The userland daemon kcfd that services this call is in usr/closed/cmd/cmd-crypto/kcfd/kcfd.c.


--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to