Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2018-02

Linux udev messages

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

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]

Reply by email

Henry Vermaak
to Mark Morgan Lloyd

On 7 Feb 2018 09:54, "Mark Morgan Lloyd"
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

Reply by email