[lkml]   [2002]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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;
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
More majordomo info at
Please read the FAQ at

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