[systemd-devel] Scan all USB devices from Linux service

Muni Sekhar munisekharrms at gmail.com
Wed Feb 14 14:54:25 UTC 2024


HI all,

USB devices can have multiple interfaces (functional units) that serve
different purposes (e.g., data transfer, control, audio, etc.).

Each interface can have an associated string descriptor (referred to
as iInterface). The string descriptor provides a human-readable name
or description for the interface.

>From user space service utility, How to scan all the USB devices
connected to the system and read each interface string
descriptor(iInterface)  and check whether it matches "Particular
String" or not.

The service program should trigger scanning all the USB devices on any
USB device detection or removal. Can libusb be used for it?

Any input would be appreciated.

-- 
Thanks,
Sekhar


More information about the systemd-devel mailing list