udev-0.1.1.0: libudev bindings
Copyright(c) Sam Truzjan 2013
LicenseBSD3
Maintainerpxqr.sta@gmail.com
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

System.UDev.HWDB

Description

Retrieve properties from the hardware database.

Synopsis

Documentation

data HWDB Source #

Opaque object representing the hardware database.

newHWDB :: UDev -> IO HWDB Source #

Create a hardware database context to query properties for devices.

getPropertiesList :: HWDB -> ByteString -> IO List Source #

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.