Deleted Added
full compact
sysctl.h (77968) sysctl.h (78161)
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

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)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

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)sysctl.h 8.1 (Berkeley) 6/2/93
37 * $FreeBSD: head/sys/sys/sysctl.h 77968 2001-06-10 10:54:29Z des $
37 * $FreeBSD: head/sys/sys/sysctl.h 78161 2001-06-13 10:58:39Z peter $
38 */
39
40#ifndef _SYS_SYSCTL_H_
41#define _SYS_SYSCTL_H_
42
43#include <sys/_posix.h>
44#include <sys/queue.h>
45

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

552SYSCTL_DECL(_machdep);
553SYSCTL_DECL(_user);
554SYSCTL_DECL(_compat);
555
556extern char machine[];
557extern char osrelease[];
558extern char ostype[];
559
38 */
39
40#ifndef _SYS_SYSCTL_H_
41#define _SYS_SYSCTL_H_
42
43#include <sys/_posix.h>
44#include <sys/queue.h>
45

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

552SYSCTL_DECL(_machdep);
553SYSCTL_DECL(_user);
554SYSCTL_DECL(_compat);
555
556extern char machine[];
557extern char osrelease[];
558extern char ostype[];
559
560struct linker_set;
561
562/* Dynamic oid handling */
563struct sysctl_oid *sysctl_add_oid(struct sysctl_ctx_list *clist,
564 struct sysctl_oid_list *parent, int nbr, const char *name,
565 int kind, void *arg1, int arg2,
566 int (*handler) (SYSCTL_HANDLER_ARGS),
567 const char *fmt, const char *descr);
568int sysctl_remove_oid(struct sysctl_oid *oidp, int del, int recurse);
569int sysctl_ctx_init(struct sysctl_ctx_list *clist);
570int sysctl_ctx_free(struct sysctl_ctx_list *clist);
571struct sysctl_ctx_entry *sysctl_ctx_entry_add(struct sysctl_ctx_list *clist,
572 struct sysctl_oid *oidp);
573struct sysctl_ctx_entry *sysctl_ctx_entry_find(struct sysctl_ctx_list *clist,
574 struct sysctl_oid *oidp);
575int sysctl_ctx_entry_del(struct sysctl_ctx_list *clist,
576 struct sysctl_oid *oidp);
577
560/* Dynamic oid handling */
561struct sysctl_oid *sysctl_add_oid(struct sysctl_ctx_list *clist,
562 struct sysctl_oid_list *parent, int nbr, const char *name,
563 int kind, void *arg1, int arg2,
564 int (*handler) (SYSCTL_HANDLER_ARGS),
565 const char *fmt, const char *descr);
566int sysctl_remove_oid(struct sysctl_oid *oidp, int del, int recurse);
567int sysctl_ctx_init(struct sysctl_ctx_list *clist);
568int sysctl_ctx_free(struct sysctl_ctx_list *clist);
569struct sysctl_ctx_entry *sysctl_ctx_entry_add(struct sysctl_ctx_list *clist,
570 struct sysctl_oid *oidp);
571struct sysctl_ctx_entry *sysctl_ctx_entry_find(struct sysctl_ctx_list *clist,
572 struct sysctl_oid *oidp);
573int sysctl_ctx_entry_del(struct sysctl_ctx_list *clist,
574 struct sysctl_oid *oidp);
575
578/* Linker set based oid handling */
579void sysctl_register_set(struct linker_set *lsp);
580void sysctl_unregister_set(struct linker_set *lsp);
581
582int kernel_sysctl(struct proc *p, int *name, u_int namelen, void *old,
583 size_t *oldlenp, void *new, size_t newlen,
584 size_t *retval);
585int kernel_sysctlbyname(struct proc *p, char *name,
586 void *old, size_t *oldlenp, void *new, size_t newlen,
587 size_t *retval);
588int userland_sysctl(struct proc *p, int *name, u_int namelen, void *old,
589 size_t *oldlenp, int inkernel, void *new, size_t newlen,

--- 15 unchanged lines hidden ---
576int kernel_sysctl(struct proc *p, int *name, u_int namelen, void *old,
577 size_t *oldlenp, void *new, size_t newlen,
578 size_t *retval);
579int kernel_sysctlbyname(struct proc *p, char *name,
580 void *old, size_t *oldlenp, void *new, size_t newlen,
581 size_t *retval);
582int userland_sysctl(struct proc *p, int *name, u_int namelen, void *old,
583 size_t *oldlenp, int inkernel, void *new, size_t newlen,

--- 15 unchanged lines hidden ---