• 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
Closing an IOUserClient
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Closing an IOUserClient


  • Subject: Closing an IOUserClient
  • From: "Duane Murphy" <email@hidden>
  • Date: Thu, 10 Jan 2008 19:14:13 -0800

How does the user land side of the IOUserClient, the io_connect_t,
detect that the connection has been closed by the kernel side of the
connection?

I have an IOUserClient that is created indirectly from a user land
process (duh :-).

In many situations the IOUserClient is closed by the kernel. This is the
disk system, so when the disk is ejected the IOUserClient must be
closed. However, the connection on the user land side doesn't really
know that this has happened. In fact, the call by the connection seems
to work, because the IOUserClient is never free'd by whatever process is
supposed to free it.

Maybe that is part of my problem. When I need to shutdown the user
client from my kext, I call userclient->terminate
( kIOServiceSynchronous). This calls close() on the user client, but I
never see a free().

How should this be handled?

Thanks for your insight,

 ...Duane

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: About old PowerBook G4 DL and code additions
  • Next by Date: (no subject)
  • Previous by thread: About old PowerBook G4 DL and code additions
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread