All of lore.kernel.org
 help / color / mirror / Atom feed
* referencing other modules
@ 2002-10-17  3:25 dijital1
  2002-10-18 16:46 ` Gianni Tedesco
  0 siblings, 1 reply; 2+ messages in thread
From: dijital1 @ 2002-10-17  3:25 UTC (permalink / raw)
  To: linux-kernel

Does anyone have any ideas as to why this following 3 lines of code
don't work? The kernel version is 2.5.43 and I have several other modules
loaded before I load the module containing this code. From what I can
discern in linux/kernel/module.c new modules are added to the head of the
list to it seems that my code would work. Any help or suggestions would be
appreciated. Incidentally, this code is being called from the module
initialisation function.

    struct module *next_mod;
    next_mod=THIS_MODULE->next;
    printk(KERN_DEBUG"%s\n", next_mod->name);


Ron Henry

"the illiterate of the future are not those who can neither read
or write; but those who cannot learn, unlearn, and relearn..."


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-18 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-17  3:25 referencing other modules dijital1
2002-10-18 16:46 ` Gianni Tedesco

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.