benefits of sysfs
Posted Jan 14, 2006 12:05 UTC (Sat) by alex
In reply to: benefits of sysfs
Parent article: Linux and wireless networking
"what's the benefit of 'cat /sys/foo' over 'linux-config --get foo'"
Exactly that. cat is cat, it does what it says on the tin and is pretty stable and unlikly to break. Once you move away from text based keys then you have issues with is linux-config up to date with the kernel? Has the ABI changed? Is linking working so linux-config can find /lib/libconfig.so?
Now the debate as to if sysfs can neatly support atomic writes of groups is one to be had but I think a text based sysfs is very handy for the problem domain its aimed at.
to post comments)