[lkml]   [2000]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Where is __this_module actually defined?

Does this mean that the module structure (struct module) and it's various
substructures are filled in by insmod?


On Sun, 5 Nov 2000, Tigran Aivazian wrote:

> On Sun, 5 Nov 2000, Naren Devaiah wrote:
> >
> > I've looked in the 2.4.0-pre10 source tree and found it defined as
> > extern struct module __this_module;
> > in module.h (among other files), but where is it actually defined?
> >
> it isn't -- it's magic, of course :). The way it works is for insmod to
> arrange things in such a manner that &__this_module resolves to point to
> the beginning of module's address space, which happens to contain 'struct
> module' at the beginning.
> Regards,
> Tigran

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.045 / U:3.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site