Registering these files and getting data through them when they're read is no
problem; the source in linux/fs/proc/net.c and linux/net/ipv4/ explains much of
that (well, by example). BUT, even though I notice that /proc/net/ip_acct,
ip_input, ip_output, and friends in /proc/sys/net/ipv4/, are writable for the
actual changes to their respective parameters to be made, it's not obvious where
and how the kernel gets and stores the values sent to it via these "files"
Is there a definitive document that details registration, parsing of input,
and allocating/storing the data within kernel memory, with the proc filesystem?
Perhaps an example that shows these operations from start to finish, with
accompanying source to be included in the kernel...
- Erik Schorr
- If you wish to email me, please don't | erik
- "reply" to the email address in the headers. | @
- Use the one to the right instead - Thanks. | arpa.org
-
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/