Expose sysctl_root node to kernel sources. It will be used by FreeBSD sysctl

emulation.
This commit is contained in:
heas 2005-02-20 19:43:46 +00:00
parent 9086769d81
commit 57cef74601
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_sysctl.c,v 1.177 2005/02/16 00:30:28 elric Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.178 2005/02/20 19:43:46 heas Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.177 2005/02/16 00:30:28 elric Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.178 2005/02/20 19:43:46 heas Exp $");
#include "opt_defcorename.h"
#include "opt_insecure.h"
@ -117,7 +117,7 @@ struct sysctllog {
/*
* the "root" of the new sysctl tree
*/
static struct sysctlnode sysctl_root = {
struct sysctlnode sysctl_root = {
.sysctl_flags = SYSCTL_VERSION|
CTLFLAG_ROOT|CTLFLAG_READWRITE|
CTLTYPE_NODE,

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysctl.h,v 1.128 2005/02/03 19:20:02 perry Exp $ */
/* $NetBSD: sysctl.h,v 1.129 2005/02/20 19:43:46 heas Exp $ */
/*
* Copyright (c) 1989, 1993
@ -850,6 +850,9 @@ struct buf_sysctl {
#include "opt_sysctl.h"
#endif
/* Root node of the kernel sysctl tree */
extern struct sysctlnode sysctl_root;
/*
* A log of nodes created by a setup function or set of setup
* functions so that they can be torn down in one "transaction"