[lkml]   [2002]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectUser land kernel configuration/profiling model proposal
The external view of the kernel configuration status would be a set of global
entries such as:

Each open handle also has such a private tree, and each process also.

Now, only three kernel functions are required to provide overall kernel
configuration and profiling:

int kernel_configure(int handle,const char *buffer,int length);

the buffer is assumed to be filled with a SET OF lines.
'handle' is zero if accessing the kernel global tree instead of a handle
specific one.

int kernel_query(int handle,const char *path,int path_length,char *buffer,int buffer_length);

asks the kernel to fill the buffer with one line per entry,
selecting only entries starting by 'path'

int open_process(int pid);

returns a handle to the process enabling to access process related

This model covers all at once the features from:
. /proc
. ioctl
. all specific user land tools

The problem with /proc filesystem is that it does not allow to access all
a subtree at once, so in order to provide a set of consistent informations,
they have to be provided as a single file, with the parsing related

The problem with ioctl is that using numbers is too much efficiency
with a too high lack of flexibility drawback, and once again, configuring
will often need several datas, so a structure with the versioning related

What's also very interesting with this model is that you can now have
a single tool for configuring all the kernel instead of multiple
'ifconfig' 'raidhotadd' and others.

Last point, it's also very valuable for providing feedback to developpers:
when one fails to compile the kernel, he can provide his .config file.
Now, when one computer bahaves stangely, he could provide a dump of
he's runtime configuration.

What's left as an exercise to readers is how this could fit in the Linux
kernel code :-)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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