Pass socket to kernel?
Pass socket to kernel?
- Subject: Pass socket to kernel?
- From: email@hidden
- Date: Sat, 30 Dec 2006 03:16:52 -0800
I'm writing a remote file system KEXT that uses the socket KPI, but
some of the work has to be done from user space via an app (e.g. the
authentication process, which requires user interaction).
What's the correct way to pass a socket from my app to the kernel for
use with the socket KPI? My app will connect to a server, do some
exchanges to authenticate, then I want to hand off that socket to the
kernel to do the rest (it has to hook into the mass storage stack).
Once the socket is handed off, I want the app to be able to quit
without the kernel-side of the socket being closed (i.e. sock_retain).
I see references to doing this type of thing in kpi_socket.h file, but
I wasn't sure how to get the underlying socket_t from the socket file
descriptor to use from the kernel side. Do I have to write a socket
filter to get the socket_t?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden