patch-1.3.46 linux/kernel/module.c

Next file: linux/kernel/printk.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.45/linux/kernel/module.c linux/kernel/module.c
@@ -547,8 +547,10 @@
 			*p++ = *q++;
 		if (mp->state == MOD_UNINITIALIZED)
 			q = "  (uninitialized)";
-		else if (mp->state == MOD_RUNNING)
-			q = "";
+		else if (mp->state == MOD_RUNNING) {
+			sprintf(size,"\t%ld",GET_USE_COUNT(mp));
+			q=size;
+		}
 		else if (mp->state == MOD_DELETED)
 			q = "  (deleted)";
 		else

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