libudev provides a set of functions for accessing the udev database and querying sysfs.