patch-2.3.32 linux/include/linux/module.h
Next file: linux/include/linux/nfsd/nfsd.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Dec 14 00:55:04 1999
- Orig file:
v2.3.31/linux/include/linux/module.h
- Orig date:
Thu Nov 11 20:11:53 1999
diff -u --recursive --new-file v2.3.31/linux/include/linux/module.h linux/include/linux/module.h
@@ -102,6 +102,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. */
@@ -110,6 +111,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)