★ wanayoo — archive 1999 http://www.kernelnotes.org/patch/21-p0097.htmlNouvelle recherche | Portail wanayoo

proc_generic

Rob Riggs (rriggs@tesser.com)
Fri Nov 8 22:31:00 1996

[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links]

proc_generic-2.1.7.diff.gz
OK... proc_generic version 2 is here.

This version offers cached and non-cached operation as well as a new toy I have been working on... proc fifos. This little gadget is great for logging kernel info and not filling up the log files or causing klogd/syslogd undue strain. I have implemented one in the sbpcd code for your wonderment.

I have also (for Alan's sake) implemented /proc/net/route using the new non-cached model . When working for non-cached proc routines, proc_write() writes directly into the user buffer, and therefore must be OK to sleep in. It definitely cannot use cli/sti to lock it's tables. Anything still relying on cli/sti will need to be cached. (And hopefully some of these will be fixed by Keith Owens soon.)

With the new non-caching code, a user routine can swallow the whole proc output in one read, if it finds it necessary. This will keep the proc data consistent (no missing or duplicate data), as was the original intent of the caching model.

The included patch should apply cleanly to 2.1.7.

Comments?




[Home] [Up] [Search] [FeedBack]

Copyleft © The LinuxHQ Project. Licensed under the GNU Public License.