lkml.org 
[lkml]   [2001]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[RFC] proc fs extension for "one-value-per-file"
    Date
    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/

    \
     
     \ /
      Last update: 2005-03-22 12:53    [W:3.291 / U:0.860 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site