Re: Why can't I find "init_task" symbol?

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

 



Hi,


> I saw the "init_task" symbol is exported in kernel source:
> =========================================
> struct task_struct init_task = INIT_TASK(init_task);
>
> EXPORT_SYMBOL(init_task);
> =========================================
> But when running, I can't find it in /proc/kallsyms.

EXPORT_SYMBOL is not for exporting it to kallsyms. Try CONFIG_KALLSYMS_ALL
if you haven't tried it.

Anand

>
> Why?
>
> thanks
>
> BRs,
> DiTS
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>
>
Have you considered
#make ctags
as doing the full source index is usually a great way to research such
a question.
No idea why it's not in /proc/kallysms.  A better question might be
"how does stuff get into /proc/kallsyms?".

--
Christopher Smith
Pursuer of knowledge

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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