Linux udev messages

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Linux udev messages

Mark Morgan Lloyd-5
Has anybody used NETLINK_KOBJECT_UEVENT on linux to get messages
relating to device hotplugging and removal? It seems like the sort of
thing that could be monitored by a TIdleTimer event handler for at least
cosmetic purposes.

Area of application is a configuration utility for a Logitech G600 mouse.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Linux udev messages

Henry Vermaak
On 7 Feb 2018 09:54, "Mark Morgan Lloyd" <[hidden email]> wrote:
Has anybody used NETLINK_KOBJECT_UEVENT on linux to get messages relating to device hotplugging and removal? It seems like the sort of thing that could be monitored by a TIdleTimer event handler for at least cosmetic purposes.

This is what libudev is for. I've used it successfully to monitor USB hotplugging for many years now.

Henry



_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal