RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Macros | Functions | Variables
kern_sysctl.c File Reference
#include "opt_compat.h"
#include "opt_mac.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/sysctl.h>
#include <sys/malloc.h>
#include <sys/proc.h>
#include <sys/mac.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/sx.h>
#include <sys/sysproto.h>
#include <vm/vm.h>
#include <vm/vm_extern.h>
Include dependency graph for kern_sysctl.c:

Data Structures

struct  sysctl_args
 

Macros

#define SYSCTL_LOCK()   sx_xlock(&sysctllock)
 
#define SYSCTL_UNLOCK()   sx_xunlock(&sysctllock)
 
#define SYSCTL_INIT()   sx_init(&sysctllock, "sysctl lock")
 

Functions

void sysctl_register_oid (struct sysctl_oid *oidp)
 
void sysctl_unregister_oid (struct sysctl_oid *oidp)
 
int sysctl_ctx_init (struct sysctl_ctx_list *c)
 
int sysctl_ctx_free (struct sysctl_ctx_list *clist)
 
struct sysctl_ctx_entry * sysctl_ctx_entry_add (struct sysctl_ctx_list *clist, struct sysctl_oid *oidp)
 
struct sysctl_ctx_entry * sysctl_ctx_entry_find (struct sysctl_ctx_list *clist, struct sysctl_oid *oidp)
 
int sysctl_ctx_entry_del (struct sysctl_ctx_list *clist, struct sysctl_oid *oidp)
 
int sysctl_remove_oid (struct sysctl_oid *oidp, int del, int recurse)
 
struct sysctl_oid * sysctl_add_oid (struct sysctl_ctx_list *clist, struct sysctl_oid_list *parent, int number, const char *name, int kind, void *arg1, int arg2, int(*handler)(SYSCTL_HANDLER_ARGS), const char *fmt, const char *descr)
 
 SET_DECLARE (sysctl_set, struct sysctl_oid)
 
 SYSINIT (sysctl, SI_SUB_KMEM, SI_ORDER_ANY, sysctl_register_all, 0)
 
 SYSCTL_PROC (_sysctl, 0, debug, CTLTYPE_STRING|CTLFLAG_RD, 0, 0, sysctl_sysctl_debug, "-", "")
 
 SYSCTL_NODE (_sysctl, 1, name, CTLFLAG_RD, sysctl_sysctl_name, "")
 
 SYSCTL_NODE (_sysctl, 2, next, CTLFLAG_RD, sysctl_sysctl_next, "")
 
 SYSCTL_PROC (_sysctl, 3, name2oid, CTLFLAG_RW|CTLFLAG_ANYBODY, 0, 0, sysctl_sysctl_name2oid, "I", "")
 
 SYSCTL_NODE (_sysctl, 4, oidfmt, CTLFLAG_RD, sysctl_sysctl_oidfmt, "")
 
 SYSCTL_NODE (_sysctl, 5, oiddescr, CTLFLAG_RD, sysctl_sysctl_oiddescr, "")
 
int sysctl_handle_int (SYSCTL_HANDLER_ARGS)
 
int sysctl_handle_long (SYSCTL_HANDLER_ARGS)
 
int sysctl_handle_string (SYSCTL_HANDLER_ARGS)
 
int sysctl_handle_opaque (SYSCTL_HANDLER_ARGS)
 
int kernel_sysctl (struct thread *td, int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen, size_t *retval)
 
int kernel_sysctlbyname (struct thread *td, char *name, void *old, size_t *oldlenp, void *new, size_t newlen, size_t *retval)
 
int sysctl_wire_old_buffer (struct sysctl_req *req, size_t len)
 
int sysctl_find_oid (int *name, u_int namelen, struct sysctl_oid **noid, int *nindx, struct sysctl_req *req)
 
int __sysctl (struct thread *td, struct sysctl_args *uap)
 
int userland_sysctl (struct thread *td, int *name, u_int namelen, void *old, size_t *oldlenp, int inkernel, void *new, size_t newlen, size_t *retval)
 

Variables

struct sysctl_oid_list sysctl__children