diff options
author | phk <phk@FreeBSD.org> | 2001-10-26 15:30:44 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-10-26 15:30:44 +0000 |
commit | 7d2f748d771cf9fe4472f3c29d7c61004f787eee (patch) | |
tree | 578b10a05b5bbab807cca74e91b17b28db0c3386 /sys | |
parent | bb660fde50204c90862bb86281afce93f669d297 (diff) | |
download | FreeBSD-src-7d2f748d771cf9fe4472f3c29d7c61004f787eee.zip FreeBSD-src-7d2f748d771cf9fe4472f3c29d7c61004f787eee.tar.gz |
Reporting device drivers by traversing cdevsw[] is at best a hack
which may or may not return something which is partially right.
Disable the "devices" file until we find out what this is needed for,
and what exactly those apps need.
This will allow cdevsw to become static again.
Approved by: DES
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 9e46466..bb38b51 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -96,8 +96,6 @@ extern int ncpus; #include <fs/pseudofs/pseudofs.h> #include <fs/procfs/procfs.h> -extern struct cdevsw *cdevsw[]; - /* * Various conversion macros */ @@ -736,6 +734,9 @@ linprocfs_donetdev(PFS_FILL_ARGS) return (0); } +#if 0 +extern struct cdevsw *cdevsw[]; + /* * Filler function for proc/devices */ @@ -754,6 +755,7 @@ linprocfs_dodevices(PFS_FILL_ARGS) return (0); } +#endif /* * Filler function for proc/cmdline @@ -798,7 +800,9 @@ linprocfs_init(PFS_INIT_ARGS) pfs_create_file(root, #name, &linprocfs_do##name, NULL, NULL, PFS_RD) PFS_CREATE_FILE(cmdline); PFS_CREATE_FILE(cpuinfo); +#if 0 PFS_CREATE_FILE(devices); +#endif PFS_CREATE_FILE(loadavg); PFS_CREATE_FILE(meminfo); #if 0 |