* RE: Kernel cmdline
@ 2005-12-22 14:59 Jenkins, Clive
2005-12-22 15:35 ` AW: " Achim Machura
0 siblings, 1 reply; 5+ messages in thread
From: Jenkins, Clive @ 2005-12-22 14:59 UTC (permalink / raw)
To: achim.machura, Linuxppc-Embedded (E-Mail)
> From: linuxppc-embedded-bounces@ozlabs.org
[mailto:linuxppc-embedded-bounces@ozlabs.org] On Behalf Of Achim Machura
> Sent: 22 December 2005 13:48
> To: Linuxppc-Embedded (E-Mail)
> Subject: Kernel cmdline
>
>
> Hello,
>
> is the a posibility to read (parse) the cmdline in a driver, similar
to cat
> /proc/cmdline ?
>
> best regards
>
> Achim
Yes. Look at:
http://lxr.linux.no/source/init/main.c?v=3D2.6.10;a=3Dppc#L123
Clive
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 5+ messages in thread
* AW: Kernel cmdline
2005-12-22 14:59 Kernel cmdline Jenkins, Clive
@ 2005-12-22 15:35 ` Achim Machura
2005-12-22 15:50 ` Kumar Gala
0 siblings, 1 reply; 5+ messages in thread
From: Achim Machura @ 2005-12-22 15:35 UTC (permalink / raw)
To: 'Jenkins, Clive'; +Cc: Linuxppc-Embedded (E-Mail)
> Yes. Look at:
> http://lxr.linux.no/source/init/main.c?v=2.6.10;a=ppc#L123
> Clive
Thanks,
but this exaple seems to work only with modules staticly linked into the
kernel.
I' ve to parse the commandline in a dynamic loaded modul.
Achim
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AW: Kernel cmdline
2005-12-22 15:35 ` AW: " Achim Machura
@ 2005-12-22 15:50 ` Kumar Gala
2005-12-22 16:01 ` AW: " Achim Machura
0 siblings, 1 reply; 5+ messages in thread
From: Kumar Gala @ 2005-12-22 15:50 UTC (permalink / raw)
To: achim.machura; +Cc: Linuxppc-Embedded (E-Mail), 'Jenkins, Clive'
On Dec 22, 2005, at 9:35 AM, Achim Machura wrote:
>
>> Yes. Look at:
>> http://lxr.linux.no/source/init/main.c?v=2.6.10;a=ppc#L123
>> Clive
>
> Thanks,
>
> but this exaple seems to work only with modules staticly linked
> into the
> kernel.
>
> I' ve to parse the commandline in a dynamic loaded modul.
Why would you want to do this. Anyways, the cmd_line is to exported
to modules. You can provide modules there own params
- kumar
^ permalink raw reply [flat|nested] 5+ messages in thread
* AW: AW: Kernel cmdline
2005-12-22 15:50 ` Kumar Gala
@ 2005-12-22 16:01 ` Achim Machura
2005-12-28 22:58 ` Arnd Bergmann
0 siblings, 1 reply; 5+ messages in thread
From: Achim Machura @ 2005-12-22 16:01 UTC (permalink / raw)
To: 'Kumar Gala'; +Cc: Linuxppc-Embedded (E-Mail)
Hello,
> > I' ve to parse the commandline in a dynamic loaded modul.
>
> Why would you want to do this. Anyways, the cmd_line is to exported
> to modules. You can provide modules there own params
i want check an argument given by the bootloader via commandline
Achim
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: AW: AW: Kernel cmdline
2005-12-22 16:01 ` AW: " Achim Machura
@ 2005-12-28 22:58 ` Arnd Bergmann
0 siblings, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2005-12-28 22:58 UTC (permalink / raw)
To: linuxppc-embedded, achim.machura
On Thursday 22 December 2005 16:01, Achim Machura wrote:
> i want check an argument given by the bootloader via commandline
>
You should use module_param() for this, that will take care
of both kernel and module parameters, for more information,
see http://lwn.net/Articles/22197/.
Arnd <><
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-12-28 23:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-22 14:59 Kernel cmdline Jenkins, Clive
2005-12-22 15:35 ` AW: " Achim Machura
2005-12-22 15:50 ` Kumar Gala
2005-12-22 16:01 ` AW: " Achim Machura
2005-12-28 22:58 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).