2005-04-14 20:49:06

by Allison

[permalink] [raw]
Subject:

I am trying to simply print out the module names and code sizes.
I am just learning how to rtraverse these data structures.

Also, on what basis is the decision made whether to export a symbol or not ?

thanks,
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/


2005-04-15 02:31:06

by Coywolf Qi Hunt

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

On Thu, Apr 14, 2005 at 08:48:42PM +0000, Allison wrote:
> I am trying to simply print out the module names and code sizes.
> I am just learning how to rtraverse these data structures.

Just read /proc/modules

Coywolf

>
> Also, on what basis is the decision made whether to export a symbol or not ?
>
> thanks,
> 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 ?
> >
> >
> >