* Kernel module_list
@ 2005-04-14 19:53 Allison
2005-04-14 20:01 ` Arjan van de Ven
0 siblings, 1 reply; 4+ messages in thread
From: Allison @ 2005-04-14 19:53 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel module_list
2005-04-14 19:53 Allison
@ 2005-04-14 20:01 ` Arjan van de Ven
0 siblings, 0 replies; 4+ messages in thread
From: Arjan van de Ven @ 2005-04-14 20:01 UTC (permalink / raw)
To: Allison; +Cc: linux-kernel
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 ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel module_list
2005-04-14 20:48 Allison
@ 2005-04-15 2:31 ` Coywolf Qi Hunt
0 siblings, 0 replies; 4+ messages in thread
From: Coywolf Qi Hunt @ 2005-04-15 2:31 UTC (permalink / raw)
To: Allison; +Cc: linux-kernel, arjan
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 ?
> >
> >
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel module_list
@ 2005-04-15 5:24 Allison
0 siblings, 0 replies; 4+ messages in thread
From: Allison @ 2005-04-15 5:24 UTC (permalink / raw)
To: linux-kernel
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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-04-15 5:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-15 5:24 Kernel module_list Allison
-- strict thread matches above, loose matches on Subject: below --
2005-04-14 20:48 Allison
2005-04-15 2:31 ` Kernel module_list Coywolf Qi Hunt
2005-04-14 19:53 Allison
2005-04-14 20:01 ` Arjan van de Ven
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.