lkml.org 
[lkml]   [2002]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectreferencing other modules
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..."

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

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