Enum Devices - Detecting Removal

Hello folks.

I’m looking at using the QNX enum-devices/usb services. This is pretty good IMHO (I’m porting something from Linux that did the same using UDEV).

I’ve got a script that detects the USB device being added, runs some apps and then needs to inform an app that’s already running that a device has been added. This app then does some state machine transitions.

However, when the USB device is removed, I want to inform the app that the device has gone.

In UDEV, the rules were parsed during addition and removal. As far as I can make out, the enum-devices service doesn’t invoke a rule at removal, but does slay any processes started when the device was detected by matching the ID created at detection.

(Sorry if this is a dumb question, but I’m new to QNX and haven’t got much time to get this ported app up and running!)