* Module option for compiled-in parts
@ 2005-07-16 8:45 Jan Engelhardt
2005-07-16 16:16 ` randy_dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2005-07-16 8:45 UTC (permalink / raw)
To: Linux Kernel Mailing List
Hi,
I have added a module_param() to a component that is compiled in
(drivers/char/vt.c). Since it's not a module, will it still show a
/sys/module/WhatGoesHere/parameters/myvariablename file? What will be put as
"WhatGoesHere" as vt.c does not become vt.ko?
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Module option for compiled-in parts
2005-07-16 8:45 Module option for compiled-in parts Jan Engelhardt
@ 2005-07-16 16:16 ` randy_dunlap
2005-07-16 16:50 ` Jan Engelhardt
0 siblings, 1 reply; 3+ messages in thread
From: randy_dunlap @ 2005-07-16 16:16 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: linux-kernel
On Sat, 16 Jul 2005 10:45:17 +0200 (MEST) Jan Engelhardt wrote:
> Hi,
>
>
> I have added a module_param() to a component that is compiled in
> (drivers/char/vt.c). Since it's not a module, will it still show a
> /sys/module/WhatGoesHere/parameters/myvariablename file? What will be put as
> "WhatGoesHere" as vt.c does not become vt.ko?
Interesting question.
Are you adding one/some module parameters to vt.c ?
I don't see any there.
I have usbcore built-in (not a loadable module), and I still see
in /sys/module/usbcore/parameters these files:
blinkenlights
old_scheme_first
usbfs_snoop
use_both_schemes
but usbcore is "defined" as containing a list of .o files
in drivers/usb/core/Makefile.
---
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Module option for compiled-in parts
2005-07-16 16:16 ` randy_dunlap
@ 2005-07-16 16:50 ` Jan Engelhardt
0 siblings, 0 replies; 3+ messages in thread
From: Jan Engelhardt @ 2005-07-16 16:50 UTC (permalink / raw)
To: randy_dunlap; +Cc: linux-kernel
>> I have added a module_param() to a component that is compiled in
>> (drivers/char/vt.c). Since it's not a module, will it still show a
>> /sys/module/WhatGoesHere/parameters/myvariablename file? What will be put as
>> "WhatGoesHere" as vt.c does not become vt.ko?
I actually done it, and a /sys/module/vt popped up, as expected.
>Interesting question.
>
>Are you adding one/some module parameters to vt.c ?
Yes
>I don't see any there.
It's my first.
>I have usbcore built-in (not a loadable module), and I still see
>in /sys/module/usbcore/parameters these files:
>
>blinkenlights
>old_scheme_first
>usbfs_snoop
>use_both_schemes
>
>but usbcore is "defined" as containing a list of .o files
>in drivers/usb/core/Makefile.
I don't know who's deciding what the * in /sys/module/* will be, but it seems
that the module name will become the one that is listed in obj-y or obj-m,
respectively.
In your usb case, this would be:
obj-y := usbcore
usbcore-objs := blinkenlights usbfs_snoop otherfiles uhci-hcd
Seems fine for me.
And vt.c is one that applies to obj-y
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-16 16:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-16 8:45 Module option for compiled-in parts Jan Engelhardt
2005-07-16 16:16 ` randy_dunlap
2005-07-16 16:50 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®