patch-1.3.52 linux/fs/proc/array.c
Next file: linux/fs/proc/inode.c
Previous file: linux/fs/proc/Makefile
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Fri Dec 29 15:15:16 1995
- Orig file:
v1.3.51/linux/fs/proc/array.c
- Orig date:
Wed Dec 27 09:12:14 1995
diff -u --recursive --new-file v1.3.51/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -770,10 +770,12 @@
return destptr-buf;
}
+#ifdef CONFIG_MODULES
extern int get_module_list(char *);
+extern int get_ksyms_list(char *, char **, off_t, int);
+#endif
extern int get_device_list(char *);
extern int get_filesystem_list(char *);
-extern int get_ksyms_list(char *, char **, off_t, int);
extern int get_irq_list(char *);
extern int get_dma_list(char *);
extern int get_cpuinfo(char *);
@@ -807,9 +809,14 @@
return get_malloc(page);
#endif
+#ifdef CONFIG_MODULES
case PROC_MODULES:
return get_module_list(page);
+ case PROC_KSYMS:
+ return get_ksyms_list(page, start, offset, length);
+#endif
+
case PROC_STAT:
return get_kstat(page);
@@ -821,9 +828,6 @@
case PROC_FILESYSTEMS:
return get_filesystem_list(page);
-
- case PROC_KSYMS:
- return get_ksyms_list(page, start, offset, length);
case PROC_DMA:
return get_dma_list(page);
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