kern_sysctl.c (111883) | kern_sysctl.c (112107) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Mike Karels at Berkeley Software Design, Inc. 7 * 8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD --- 23 unchanged lines hidden (view full) --- 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Mike Karels at Berkeley Software Design, Inc. 7 * 8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD --- 23 unchanged lines hidden (view full) --- 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 |
40 * $FreeBSD: head/sys/kern/kern_sysctl.c 111883 2003-03-04 21:03:05Z jhb $ | 40 * $FreeBSD: head/sys/kern/kern_sysctl.c 112107 2003-03-11 20:01:51Z jhb $ |
41 */ 42 43#include "opt_compat.h" 44#include "opt_mac.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/kernel.h> --- 14 unchanged lines hidden (view full) --- 63 64/* 65 * Locking - this locks the sysctl tree in memory. 66 */ 67static struct sx sysctllock; 68 69#define SYSCTL_LOCK() sx_xlock(&sysctllock) 70#define SYSCTL_UNLOCK() sx_xunlock(&sysctllock) | 41 */ 42 43#include "opt_compat.h" 44#include "opt_mac.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> 48#include <sys/kernel.h> --- 14 unchanged lines hidden (view full) --- 63 64/* 65 * Locking - this locks the sysctl tree in memory. 66 */ 67static struct sx sysctllock; 68 69#define SYSCTL_LOCK() sx_xlock(&sysctllock) 70#define SYSCTL_UNLOCK() sx_xunlock(&sysctllock) |
71#define SYSCTL_INIT() sx_init(&sysctllock, "sysctl sysctllock") | 71#define SYSCTL_INIT() sx_init(&sysctllock, "sysctl lock") |
72 73static int sysctl_root(SYSCTL_HANDLER_ARGS); 74 75struct sysctl_oid_list sysctl__children; /* root list */ 76 77static struct sysctl_oid * 78sysctl_find_oidname(const char *name, struct sysctl_oid_list *list) 79{ --- 1414 unchanged lines hidden --- | 72 73static int sysctl_root(SYSCTL_HANDLER_ARGS); 74 75struct sysctl_oid_list sysctl__children; /* root list */ 76 77static struct sysctl_oid * 78sysctl_find_oidname(const char *name, struct sysctl_oid_list *list) 79{ --- 1414 unchanged lines hidden --- |