Re: obtaining linux kernel command line from a module

2010-05-21 Thread Robert P. J. Day
On Fri, 21 May 2010, Bernd Petrovitsch wrote: > On Fre, 2010-05-21 at 12:48 +0200, Jason Nymble wrote: > > On 21 May 2010, at 12:37 PM, Bernd Petrovitsch wrote: > [...] > > > Other than that the not-so-bright "idea": Send a patch to export > > > saved_command_line (including a good reason to expor

Re: obtaining linux kernel command line from a module

2010-05-21 Thread Bernd Petrovitsch
On Fre, 2010-05-21 at 12:48 +0200, Jason Nymble wrote: > On 21 May 2010, at 12:37 PM, Bernd Petrovitsch wrote: [...] > > Other than that the not-so-bright "idea": Send a patch to export > > saved_command_line (including a good reason to export it to modules) to > > LKML and see what people say to i

Re: obtaining linux kernel command line from a module

2010-05-21 Thread Bernd Petrovitsch
On Fre, 2010-05-21 at 12:18 +0200, Jason Nymble wrote: > On 21 May 2010, at 12:08 PM, Jason Nymble wrote: > > On 21 May 2010, at 12:07 PM, Jason Nymble wrote: > > > >> Is there a way (e.g. exported variable or kernel API) for a kernel module > >> to obtain the linux kernel command line? i.e. the

Re: obtaining linux kernel command line from a module

2010-05-21 Thread Jason Nymble
On 21 May 2010, at 12:37 PM, Bernd Petrovitsch wrote: > On Fre, 2010-05-21 at 12:18 +0200, Jason Nymble wrote: >> On 21 May 2010, at 12:08 PM, Jason Nymble wrote: >>> On 21 May 2010, at 12:07 PM, Jason Nymble wrote: >>> Is there a way (e.g. exported variable or kernel API) for a kernel modu

Re: obtaining linux kernel command line from a module

2010-05-21 Thread Jason Nymble
On 21 May 2010, at 12:08 PM, Jason Nymble wrote: > > On 21 May 2010, at 12:07 PM, Jason Nymble wrote: > >> Is there a way (e.g. exported variable or kernel API) for a kernel module to >> obtain the linux kernel command line? i.e. the contents as seen from >> userspace by 'cat /proc/cmdline' >

Re: obtaining linux kernel command line from a module

2010-05-21 Thread Robert P. J. Day
On Fri, 21 May 2010, Jason Nymble wrote: > > On 21 May 2010, at 12:07 PM, Jason Nymble wrote: > > > Is there a way (e.g. exported variable or kernel API) for a kernel module > > to obtain the linux kernel command line? i.e. the contents as seen from > > userspace by 'cat /proc/cmdline' > > I see

obtaining linux kernel command line from a module

2010-05-21 Thread Jason Nymble
Is there a way (e.g. exported variable or kernel API) for a kernel module to obtain the linux kernel command line? i.e. the contents as seen from userspace by 'cat /proc/cmdline' -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read t

Re: obtaining linux kernel command line from a module

2010-05-21 Thread Jason Nymble
On 21 May 2010, at 12:07 PM, Jason Nymble wrote: > Is there a way (e.g. exported variable or kernel API) for a kernel module to > obtain the linux kernel command line? i.e. the contents as seen from > userspace by 'cat /proc/cmdline' I see linux/init.h has: extern char __initdata boot_command_