On Fri, 25 Apr 2008, Mulyadi Santosa wrote:
> Hi..
>
> On Fri, Apr 25, 2008 at 3:17 AM, Robert P. J. Day <[EMAIL PROTECTED]> wrote:
> > ...
> > #if defined(CONFIG_PRINTK_TIME)
> > static int printk_time = 1;
> > #else
> > static int printk_time = 0;
> > #endif
> > module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR);
> > ...
>
> IMO, that means, that symbol becomes global symbol and exist
> starting when the kernel image is loaded. Perhaps module_param here
> works as a way to declare that this symbol needs to exist in certain
> ELF section, not to be mixed with normal .bss or .data. Thus, we
> know that any symbols stored there need to be treaten as parameter.
but remember, somehow this is defining that "printk.time" is a valid
^
boot-time parameter, and i just didn't know you could do that without
writing an actual module. i guess i'll just take a closer look at the
contents of moduleparam.h to see how this is being done.
rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.
http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ