summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_sysctl.h
diff options
context:
space:
mode:
authoratatat <atatat@NetBSD.org>2004-05-20 06:34:24 +0000
committeratatat <atatat@NetBSD.org>2004-05-20 06:34:24 +0000
commit10a7ba9ef6bedd7f00fdb55bdc125b97dce35258 (patch)
tree0586196aca8565a8e8593c849aff4dc0d8797b16 /sys/compat/linux/common/linux_sysctl.h
parent1d3a6a329e70f804a4ee718c6a0f412c02a37fae (diff)
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 (limited to 'sys/compat/linux/common/linux_sysctl.h')
-rw-r--r--sys/compat/linux/common/linux_sysctl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_sysctl.h b/sys/compat/linux/common/linux_sysctl.h
index 55bd59417ed..d6695b3f342 100644
--- a/sys/compat/linux/common/linux_sysctl.h
+++ b/sys/compat/linux/common/linux_sysctl.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sysctl.h,v 1.1 2002/02/15 20:02:57 christos Exp $ */
+/* $NetBSD: linux_sysctl.h,v 1.2 2004/05/20 06:34:24 atatat Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -473,4 +473,8 @@
#define LINUX_BUS_ISA_PORT_BASE 2
#define LINUX_BUS_ISA_PORT_SHIFT 3
+#ifdef SYSCTL_SETUP_PROTO
+SYSCTL_SETUP_PROTO(linux_sysctl_setup);
+SYSCTL_SETUP_PROTO(sysctl_emul_linux_setup);
+#endif /* SYSCTL_SETUP_PROTO */
#endif /* !_LINUX_SYSCTL_H */