Re: how is the kernel boot-time param "printk.time" implemented?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi..

On Fri, Apr 25, 2008 at 3:17 AM, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> 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.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux