udev-0.0.0.0: libudev bindings

Portabilityportable
Stabilitystable
Maintainerpxqr.sta@gmail.com
Safe HaskellNone

System.UDev.HWDB

Description

Retrieve properties from the hardware database.

Synopsis

Documentation

data HWDB Source

Opaque object representing the hardware database.

newHWDB :: UDev -> IO HWDBSource

Create a hardware database context to query properties for devices.

getPropertiesList :: HWDB -> BS.ByteString -> IO ListSource

Lookup a matching device in the hardware database. The lookup key is a modalias string, whose formats are defined for the Linux kernel modules. Examples are: pci:v00008086d00001C2D*, usb:v04F2pB221*. The first entry of a list of retrieved properties is returned.