[RFC] proc fs extension for "one-value-per-file"

From: Tim Jansen (tim@tjansen.de)
Date: Mon May 14 2001 - 13:59:33 EST


The following patch extends the proc fs api as discussed in the thread "/proc
format" last month (http://marc.theaimsgroup.com/?t=98822545000007&w=2&r=1).

It adds the following features:
- dynamic directories. Enables you to use directories for enumerations,
similar to the per-process directories (/proc/<number>) or usbdevfs.
- context callbacks for directories. They can do things that are common for
all files in a directory, like locking, and are also used for dynamic
directories.
- special functions with context support for proc files that containing short
strings, integers or enums

These things give the proc filesystem the functionality that I need for the
Device Registry patch to replace the XML output with the one-value-per-file
approach. The api is documented in fs/proc/onevalue.c.

You can download the patch for 2.4.4 here (40 kB):
http://www.tjansen.de/devreg/proc_ov-2.4.4.diff

bye...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 15 2001 - 21:00:36 EST