module Enumerate:sig
..end
type
filter =
Enumerate.devices
and
Enumerate.subsystems
can be filtered, specifying a list of filter
values.
| |
Subsystem of |
Subsystem subsystem matches devices that are part of subsystem . |
|
| |
NoSubsystem of |
NoSubsystem subsystem matches devices that are not part of
subsystem . |
|
| |
Sysattr of |
Sysattr (attribute, value) matches devices whose attribute has the
given value . |
|
| |
NoSysattr of |
Sysattr (attribute, value) matches devices whose attribute doesn't
have the given value . Devices that do not have attribute at all are
also included. |
|
| |
Property of |
Property (prop, value) matches devices whose prop has the given
value . |
|
| |
Sysname of |
Sysname name matches devices with the given name . |
|
| |
Tag of |
Tag tag matches devices which have the given tag attached. |
|
| |
Parent of |
Parent parent matches devices on the subtree of the given parent
device. |
|
| |
Is_initialized |
Is_initialized matches devices which are initialized.
Initialized devices have properly set device node permissions and context, and are (in case of network devices) fully renamed.
Currently this will not affect devices which do not have device dones
and are not network interfaces. |
val devices : Libudev.Context.t -> filter list -> Libudev.Device.t list
val subsystems : Libudev.Context.t -> filter list -> Libudev.Device.t list