Copyright | (c) Sam Truzjan 2013 |
---|---|
License | BSD3 |
Maintainer | pxqr.sta@gmail.com |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Retrieve properties from the hardware database.
Synopsis
- data HWDB
- newHWDB :: UDev -> IO HWDB
- getPropertiesList :: HWDB -> ByteString -> IO List
Documentation
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.