split sysfs functions out to separate file.