patch-pre2.0.7 linux/include/linux/module.h
Next file: linux/include/linux/skbuff.h
Previous file: linux/include/linux/md.h
Back to the patch index
Back to the overall index
-  Lines: 25
-  Date:
Tue May 21 12:00:30 1996
-  Orig file: 
pre2.0.6/linux/include/linux/module.h
-  Orig date: 
Fri May 17 15:32:18 1996
diff -u --recursive --new-file pre2.0.6/linux/include/linux/module.h linux/include/linux/module.h
@@ -75,9 +75,6 @@
 	void (*cleanup)(void);		/* cleanup routine */
 };
 
-/* insert new symbol table */
-extern int register_symtab(struct symbol_table *);
-
 /*
  * The first word of the module contains the use count.
  */
@@ -108,6 +105,14 @@
 #define MOD_DEC_USE_COUNT	do { } while (0)
 #define MOD_IN_USE		1
 
+#endif
+
+/* insert new symbol table */
+extern int register_symtab_from(struct symbol_table *, long *);
+#ifdef MODULE
+#define register_symtab(symtab) register_symtab_from(symtab, &mod_use_count_)
+#else
+#define register_symtab(symtab) register_symtab_from(symtab, 0)
 #endif
 
 #endif
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