• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Pass socket to kernel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Pass socket to kernel?
      • From: Josh Graessley <email@hidden>
  • Prev by Date: Re: Conditional accept for TCP
  • Next by Date: Re: Pass socket to kernel?
  • Previous by thread: Re: Conditional accept for TCP
  • Next by thread: Re: Pass socket to kernel?
  • Index(es):
    • Date
    • Thread