Deleted Added
full compact
sysctl.h (302408) sysctl.h (324748)
1/*-
2 * Copyright (c) 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 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)sysctl.h 8.1 (Berkeley) 6/2/93
1/*-
2 * Copyright (c) 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 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)sysctl.h 8.1 (Berkeley) 6/2/93
33 * $FreeBSD: stable/11/sys/sys/sysctl.h 300718 2016-05-26 08:41:55Z hselasky $
33 * $FreeBSD: stable/11/sys/sys/sysctl.h 324748 2017-10-19 07:54:04Z avg $
34 */
35
36#ifndef _SYS_SYSCTL_H_
37#define _SYS_SYSCTL_H_
38
39#include <sys/queue.h>
40
41struct thread;

--- 36 unchanged lines hidden (view full) ---

78#define CTLTYPE_S8 0xc /* name describes a signed 8-bit number */
79#define CTLTYPE_S16 0xd /* name describes a signed 16-bit number */
80#define CTLTYPE_S32 0xe /* name describes a signed 32-bit number */
81#define CTLTYPE_U32 0xf /* name describes an unsigned 32-bit number */
82
83#define CTLFLAG_RD 0x80000000 /* Allow reads of variable */
84#define CTLFLAG_WR 0x40000000 /* Allow writes to the variable */
85#define CTLFLAG_RW (CTLFLAG_RD|CTLFLAG_WR)
34 */
35
36#ifndef _SYS_SYSCTL_H_
37#define _SYS_SYSCTL_H_
38
39#include <sys/queue.h>
40
41struct thread;

--- 36 unchanged lines hidden (view full) ---

78#define CTLTYPE_S8 0xc /* name describes a signed 8-bit number */
79#define CTLTYPE_S16 0xd /* name describes a signed 16-bit number */
80#define CTLTYPE_S32 0xe /* name describes a signed 32-bit number */
81#define CTLTYPE_U32 0xf /* name describes an unsigned 32-bit number */
82
83#define CTLFLAG_RD 0x80000000 /* Allow reads of variable */
84#define CTLFLAG_WR 0x40000000 /* Allow writes to the variable */
85#define CTLFLAG_RW (CTLFLAG_RD|CTLFLAG_WR)
86#define CTLFLAG_DORMANT 0x20000000 /* This sysctl is not active yet */
86#define CTLFLAG_ANYBODY 0x10000000 /* All users can set this var */
87#define CTLFLAG_SECURE 0x08000000 /* Permit set only if securelevel<=0 */
88#define CTLFLAG_PRISON 0x04000000 /* Prisoned roots can fiddle */
89#define CTLFLAG_DYN 0x02000000 /* Dynamic oid - can be freed */
90#define CTLFLAG_SKIP 0x01000000 /* Skip this sysctl when listing */
91#define CTLMASK_SECURE 0x00F00000 /* Secure level */
92#define CTLFLAG_TUN 0x00080000 /* Default value is loaded from getenv() */
93#define CTLFLAG_RDTUN (CTLFLAG_RD|CTLFLAG_TUN)

--- 119 unchanged lines hidden (view full) ---

213int sysctl_dpcpu_int(SYSCTL_HANDLER_ARGS);
214int sysctl_dpcpu_long(SYSCTL_HANDLER_ARGS);
215int sysctl_dpcpu_quad(SYSCTL_HANDLER_ARGS);
216
217/*
218 * These functions are used to add/remove an oid from the mib.
219 */
220void sysctl_register_oid(struct sysctl_oid *oidp);
87#define CTLFLAG_ANYBODY 0x10000000 /* All users can set this var */
88#define CTLFLAG_SECURE 0x08000000 /* Permit set only if securelevel<=0 */
89#define CTLFLAG_PRISON 0x04000000 /* Prisoned roots can fiddle */
90#define CTLFLAG_DYN 0x02000000 /* Dynamic oid - can be freed */
91#define CTLFLAG_SKIP 0x01000000 /* Skip this sysctl when listing */
92#define CTLMASK_SECURE 0x00F00000 /* Secure level */
93#define CTLFLAG_TUN 0x00080000 /* Default value is loaded from getenv() */
94#define CTLFLAG_RDTUN (CTLFLAG_RD|CTLFLAG_TUN)

--- 119 unchanged lines hidden (view full) ---

214int sysctl_dpcpu_int(SYSCTL_HANDLER_ARGS);
215int sysctl_dpcpu_long(SYSCTL_HANDLER_ARGS);
216int sysctl_dpcpu_quad(SYSCTL_HANDLER_ARGS);
217
218/*
219 * These functions are used to add/remove an oid from the mib.
220 */
221void sysctl_register_oid(struct sysctl_oid *oidp);
222void sysctl_register_disabled_oid(struct sysctl_oid *oidp);
223void sysctl_enable_oid(struct sysctl_oid *oidp);
221void sysctl_unregister_oid(struct sysctl_oid *oidp);
222
223/* Declare a static oid to allow child oids to be added to it. */
224#define SYSCTL_DECL(name) \
225 extern struct sysctl_oid sysctl__##name
226
227/* Hide these in macros. */
228#define SYSCTL_CHILDREN(oid_ptr) (&(oid_ptr)->oid_children)

--- 811 unchanged lines hidden ---
224void sysctl_unregister_oid(struct sysctl_oid *oidp);
225
226/* Declare a static oid to allow child oids to be added to it. */
227#define SYSCTL_DECL(name) \
228 extern struct sysctl_oid sysctl__##name
229
230/* Hide these in macros. */
231#define SYSCTL_CHILDREN(oid_ptr) (&(oid_ptr)->oid_children)

--- 811 unchanged lines hidden ---