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/kernfs Pull up revision 1.23 (requested by a...



details:   https://anonhg.NetBSD.org/src/rev/bbb4bddb9e03
branches:  netbsd-2-0
changeset: 561082:bbb4bddb9e03
user:      tron <tron%NetBSD.org@localhost>
date:      Sun May 23 10:46:05 2004 +0000

description:
Pull up revision 1.23 (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/kernfs/kernfs.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 10dd87f6ab39 -r bbb4bddb9e03 sys/miscfs/kernfs/kernfs.h
--- a/sys/miscfs/kernfs/kernfs.h        Sun May 23 10:45:59 2004 +0000
+++ b/sys/miscfs/kernfs/kernfs.h        Sun May 23 10:46:05 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernfs.h,v 1.20.2.2 2004/05/15 13:33:46 tron Exp $     */
+/*     $NetBSD: kernfs.h,v 1.20.2.3 2004/05/23 10:46:05 tron Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -192,4 +192,8 @@
 #define        KERNFS_ENTOPARENTDIR(dkt) &(dkt)->dkt_kt
 int kernfs_addentry __P((kernfs_parentdir_t *, kernfs_entry_t *));
 
+#ifdef SYSCTL_SETUP_PROTO
+SYSCTL_SETUP_PROTO(sysctl_vfs_kernfs_setup);
+#endif /* SYSCTL_SETUP_PROTO */
+
 #endif /* _KERNEL */



Home | Main Index | Thread Index | Old Index