]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/module.h
module: Make the 'usage' lists be two-way
[net-next-2.6.git] / include / linux / module.h
index 6914fcad46733974df83c76c5d7e2d96008793be..680db9e2ac365e4758abf45733493db3ac35044d 100644 (file)
@@ -359,7 +359,9 @@ struct module
 
 #ifdef CONFIG_MODULE_UNLOAD
        /* What modules depend on me? */
-       struct list_head modules_which_use_me;
+       struct list_head source_list;
+       /* What modules do I depend on? */
+       struct list_head target_list;
 
        /* Who is waiting for us to be unloaded */
        struct task_struct *waiter;