Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/miscfs/procfs Pull up revision 1.53 (requested by a...
details: https://anonhg.NetBSD.org/src/rev/1c800e06bbf1
branches: netbsd-2-0
changeset: 561069:1c800e06bbf1
user: tron <tron%NetBSD.org@localhost>
date: Sun May 23 10:44:45 2004 +0000
description:
Pull up revision 1.53 (requested by atatat in ticket #374):
Tweak sysctl setup functions (the macros, actually) for use in lkms,
and tweak lkminit_*.c (where applicable) to call them, and to call
sysctl_teardown() when being unloaded.
This consists of (1) making setup functions not be static when being
compiled as lkms (change to sys/sysctl.h), (2) making prototypes
visible for the various setup functions in header files (changes to
various header files), and (3) making simple "load" and "unload"
functions in the actual lkminit stuff.
linux_sysctl.c also needs its root exposed (ie, made not static) for
this (when built as an lkm).
diffstat:
sys/miscfs/procfs/procfs.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 42bcb4de5401 -r 1c800e06bbf1 sys/miscfs/procfs/procfs.h
--- a/sys/miscfs/procfs/procfs.h Sun May 23 10:44:39 2004 +0000
+++ b/sys/miscfs/procfs/procfs.h Sun May 23 10:44:45 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs.h,v 1.52 2003/12/10 14:19:02 drochner Exp $ */
+/* $NetBSD: procfs.h,v 1.52.2.1 2004/05/23 10:44:45 tron Exp $ */
/*
* Copyright (c) 1993
@@ -235,4 +235,7 @@
int procfs_machdep_getattr(struct vnode *, struct vattr *, struct proc *);
#endif
+#ifdef SYSCTL_SETUP_PROTO
+SYSCTL_SETUP_PROTO(sysctl_vfs_procfs_setup);
+#endif /* SYSCTL_SETUP_PROTO */
#endif /* _KERNEL */
Home |
Main Index |
Thread Index |
Old Index