sysfs: add sysfs_helpers
Thanks to AndreiLux and GokhanMoral