Re: Not using the dynamic parameter kstack_depth_to_print?

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

 



Hi,,,

On Feb 12, 2008 11:40 AM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
> Under /proc/sys/kernel there exists a parameters called
> kstack_depth_to_print.   But I also see that a lot of other files (as listed
> below) not using this parameter directly from procfs.
>
> Am I mistaken in my analysis?
>
> ./kernel/sysctl.c:
>                 .procname       = "kstack_depth_to_print",
>                 .data           = &kstack_depth_to_print,
>
> ./arch/m68k/kernel/traps.c:
> static int kstack_depth_to_print = 48;
>          for (i = 0; i < kstack_depth_to_print; i++) {
>
> ./arch/m68knommu/kernel/traps.c:
> int kstack_depth_to_print = 48;
>         for (i = 0; i < kstack_depth_to_print; i++) {

Hm, if I am not mistaken, declaring something like that is just a
matter of initialization, right? It's just make it to enter .data
instead of .bss section.

Which value that takes effect during the loop, I think, depends on
whether the user change that default value or not.

Somebody CMIIW...

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