On Mon, 17 Jul 2000, Lior Cohen wrote:

> i was wondering if their is any way with sysctl to add mirrors to
> /proc/sys/kernel, that a loadable module would read from these parameters ?
> or do these options have to be compiled into the module itself ?

if i understood you correctly (i probably didn't), in order to be able to
modify the contents of a global variable which is defined inside a
loadable module, you need to have code in this module that will handle
this modification proeprly.

as i understood (i probably didn't) you want to allow a user to modify the
value of such a variable by echoing a value into some file under the /proc
file system. this is not hard - do it the same way as this is done by
other parts of the kernel (for example, at
file /usr/src/linux/kernel/sysctl.c, follow the definition and usage of
the 'root_table' structure.).

if you are asking something different - please be clearer.

guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to