Closing an IOUserClient
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