Using sysfs for configuring wireless networking
Posted Jan 12, 2006 3:31 UTC (Thu) by neilbrown
Parent article: Linux and wireless networking
Atomic, multi-parameter update is quite possible with sysfs. You just need a "go" button.
Define the semantics of "write" to you sysfs attributes to be "store this value somewhere safe for later use".
Then have an attribute somewhere to which you can write "go".
This validates all those stored-for-later-use values and if they appear valid they all get update atomically.
This would require some locking so you don't get two apps writing to all those attributes at once, but that is hardly rocket-science.
to post comments)