Using IOService port reference to disconnect device

This question pertains to IO Kit programming on Mac OS X.

I have a link to an IO service port (io_service_t). Is there an API I can use to make everything at the end of this output for the IOService disable? I tried all my internet search capabilities but didn't find a solution.

Any help would be appreciated.

Greetings

Jan

+2


source to share


2 answers


If you know how to disable this device, I'm sure you can send it to this command, but there is no generally accepted disconnect message that will work on every conceivable endpoint that could potentially be on the other side of that port, if that's what it is. what are you asking.



+1


source


This is not possible unless the device itself makes a userclient call to disable it. If you can change the driver, you can add such a call, but this will depend on the specific hardware that you disable.



+1


source







All Articles