patch-2.2.15 linux/include/linux/module.h
Next file: linux/include/linux/pci.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Wed May  3 21:21:21 2000
-  Orig file: 
v2.2.14/include/linux/module.h
-  Orig date: 
Sun Mar 28 19:03:25 1999
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/include/linux/module.h linux/include/linux/module.h
@@ -101,6 +101,7 @@
 #define MOD_VISITED  		8
 #define MOD_USED_ONCE		16
 #define MOD_JUST_FREED		32
+#define MOD_INITIALIZING	64
 
 /* Values for query_module's which.  */
 
@@ -109,6 +110,9 @@
 #define QM_REFS		3
 #define QM_SYMBOLS	4
 #define QM_INFO		5
+
+/* Can the module be queried? */
+#define MOD_CAN_QUERY(mod) (((mod)->flags & (MOD_RUNNING | MOD_INITIALIZING)) && !((mod)->flags & MOD_DELETED))
 
 /* When struct module is extended, we must test whether the new member
    is present in the header received from insmod before we can use it.  
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)