[lkml]   [2008]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: /proc/ksyms and /proc/kallsyms relationship?
On Mon, 10 Nov 2008 03:00:16 +0200, 
John K <> wrote:
>In kernel 2.4, there was a /proc/ksyms file. This file, if I understand
>correctly, was a method to access the kernel's public symbol table. What
>was displayed had all the public kernel's symbols (variables,
>functions..) and its associated global addresses, along with some other
>usefull stuff, like a CRC value, and the module exporting every specific
>Fine until this point.
>In 2.6 kernels, /proc/ksyms disappeared. Many sources suggest that it
>was replaced by the /proc/kallsyms file.
>BUT this file seems to be something completely different, and I haven't
>figured out in what way it is different. It seems that it's not the
>kernels public symbols table.
>So, some questions to anyone that knows more on this:
>1. Is my description of the functionality of /proc/ksyms in 2.4 kernels


>2. What exactly the /proc/kallsyms file contains? Why does this file
>exist and how is it used?

kallsyms contains (as the name suggests) all the global symbols in the
kernel and the loaded modules. It was originally added for kernel
debugging but it became so useful that it supplanted ksyms.

>4. If one wants to find out what are the exported symbols from some
>module, so to know which symbols can he use in a future module, how can
>he achieve this?

nm <path_to_module.ko> | grep __ksymtab

 \ /
  Last update: 2008-11-10 03:05    [W:0.089 / U:2.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site