Messages in this thread | | | From | Tim Jansen <> | Subject | [RFC] proc fs extension for "one-value-per-file" | Date | Mon, 14 May 2001 20:59:33 +0200 |
| |
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/
| |