"Freddie Witherden" <> wrote in message
news:9688b562-091b-429a-b6e8-...
> .................
> Finally, the virtual device created must be removed explicitly by user-
> space with the IEEE1394_API_REMOVE_VIRTUAL_DEVICE IOCTL. However, if
> a program using my library does not terminate correctly a virtual
> device (and hence my driver and an interface) is left dangling. Is
> there a means of cleaning up?
What bad could happen if the device is left behind after your app exited?
If nothing, you can just let it be; when the app runs again it will reuse
the device.
If you definitely must remove the device, make the driver detect that the
app
exited, for example, leave a pending ioctl. The driver will
receive cleanup when the app exits.
-- pa
|