Using sysfs for configuring wireless networking
Using sysfs for configuring wireless networking
Posted Jan 12, 2006 7:09 UTC (Thu) by neilbrown (subscriber, #359)In reply to: Using sysfs for configuring wireless networking by akumria
Parent article: Linux and wireless networking
A fair point.
As the new settings have not yet come into effect, there is no particular value in finding out what they are. But it would be useful to be able to revert any partial setting of these values.
So that attribute where you write 'go' to effect the new values: Also allow 'reset' to be written which reverts all the stored-for-later-use values to the currently active values.
Ofcourse this could be achived by simply reading each attribute and writing the value back again, but that it somewhat ugly.
There is a thing called 'configfs' in -mm which is meant to be able to provide this multiple-values-at-once thing, but when I considerred using it for something, it turned out to be too special purpose. The same thing can be achieved in sysfs with a bit of creativity, and I think it fits better there.
