2005-04-14 19:53:33

by Allison

[permalink] [raw]
Subject: Kernel module_list

Hi,

I am trying to access the module list kernel data structure from a
kernel module. If I gather correctly, module_list is the symbol that
is the head pointer of this list.

This module compiles fine but when I try to insmod it, it say
module_list is unresolved symbol.

Does this symbol have to show up in the /proc/ksyms ?
It currently show up in the System.map file.

What do I need to do to access this symbol.

Also, what do the three columns in the System.map file stand for ?
First col looks like the virtual address and third looks like
function/symbol name. How do I read the second ?

thanks,
Allison


2005-04-14 20:01:23

by Arjan van de Ven

[permalink] [raw]
Subject: Re: Kernel module_list

On Thu, 2005-04-14 at 19:53 +0000, Allison wrote:
>
> I am trying to access the module list kernel data structure from a
> kernel module. If I gather correctly, module_list is the symbol that
> is the head pointer of this list.

can you explain what you want to do with this symbol ?



2005-04-15 05:24:11

by Allison

[permalink] [raw]
Subject: Re: Kernel module_list

Right now , I am just learn. trying a test module that lists out all the modules

Allison

Arjan van de Ven wrote:
> On Thu, 2005-04-14 at 19:53 +0000, Allison wrote:
> >
> > I am trying to access the module list kernel data structure from a
> > kernel module. If I gather correctly, module_list is the symbol that
> > is the head pointer of this list.
>
> can you explain what you want to do with this symbol ?
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/