use libdevinfo to get some device properties