views:

29

answers:

0

I wrote this code to subscribe to USB devices being plugged in and unplugged; the point is for IOKit to deliver notifications to my iAttached() and iDetached() functions when the corresponding events occur. However, I don't get notifications.

The code can be seen here: http://gist.github.com/402391

I didn't want to over-populate this page with it, as it is moderately long.