How to create a sysfs file correctly