patch-1.3.57 linux/include/linux/module.h
Next file: linux/include/linux/pagemap.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Tue Jan 9 12:26:53 1996
- Orig file:
v1.3.56/linux/include/linux/module.h
- Orig date:
Tue Dec 26 04:45:41 1995
diff -u --recursive --new-file v1.3.56/linux/include/linux/module.h linux/include/linux/module.h
@@ -26,6 +26,9 @@
/* maximum length of module name */
#define MOD_MAX_NAME 64
+/* magic marker for modules inserted from kerneld, to be auto-reaped */
+#define MOD_AUTOCLEAN 0x40000000 /* big enough, but no sign problems... */
+
/* maximum length of symbol name */
#define SYM_MAX_NAME 60
@@ -90,7 +93,7 @@
extern long mod_use_count_;
#define MOD_INC_USE_COUNT mod_use_count_++
#define MOD_DEC_USE_COUNT mod_use_count_--
-#define MOD_IN_USE (mod_use_count_ != 0)
+#define MOD_IN_USE ((mod_use_count_ & ~MOD_AUTOCLEAN) != 0)
#ifndef __NO_VERSION__
#include <linux/version.h>
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this