Gentoo Archives: gentoo-user

From: Julien Porschen <julien.porschen@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] test, if module was loaded with module option?
Date: Wed, 31 Dec 2008 09:53:10
Message-Id: 9b8dfb1c0812310153i69f1e8b0s34dc94ca0a778369@mail.gmail.com
In Reply to: Re: [gentoo-user] [OT] test, if module was loaded with module option? by Christian Franke
1 2008/12/31 Christian Franke <cfchris6@×××××.de>:
2 > On 12/29/2008 02:32 PM, Marc Blumentritt wrote:
3 >> is there a general way to test, if a kernel module was loaded with a
4 >> module option and which module options were used?
5 >
6 > There is at least /sys/module/<modulname>/parameters/<parametername>
7 > If there is nothing else, one could at least compare each parameter to
8 > its default value or something like that. Attention, not everything in
9 > /sys/module _is_ a module, seems more like everything that is or _could_
10 > be a module is there.
11 >
12 > If the moduleoption was set when booting, one could of course use
13 > /proc/cmdline, but I think that might be not exactly what you want.
14 >
15 > -cf
16 >
17 >
18
19
20
21 --
22 Julien Porschen