How about just ignoring the problem for the /proc interface? Non of the
suggested solutions would work well for simple shell-scripts anyway.
The suggested sysctl_s interface could be expanded to allow more than
one variabel to be manipulated at the time; making it possible for "real
programs" to get a consistent view of the variables when they need.
This would allow for the one-value-in-file approach and totally
eliminate the need for parsing.
-- Ragnar Kjørstad- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/