reading stuff is sysfs is good.
reading uevent file there is good.
using just the subdirs of the sysfs paths, should be done to iterate block devices.
there should be no need to call udevadm binary at all.
reading stuff is sysfs is good.
reading uevent file there is good.
using just the subdirs of the sysfs paths, should be done to iterate block devices.
there should be no need to call udevadm binary at all.