Re: Interface for communicating from kernel to user mode

Peter Skvarka <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Organization Soft in Engines
Message-ID <[email protected]>
I am trying to implement user<->kernel communication with socketpair() 
in user space and then passing one of descriptors to kernel.

I am investigating socket.h and socketvar.h
There are functions working with sockets in kernel space, they uses 
struct socket in their parameters and user space functions uses int like 
socket descriptor.
How to retrieve pointer struct socket from socket descriptor (int) 
passed from user mode ?

Or if it is used in your repository where can I find it ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.