[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modify kernel params



hi,
is their any way to hack into it like set values to the /proc/kcore mirror, at
module runtime, since i see the strings inside the kcore file, and see the
strings by ksyms, as part of the loadable module ?
i am trying to avoind the programing part.
thanks.

guy keren wrote:

> 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 linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il