UbixOS  2.0
kern_sysctl.h File Reference
#include <sys/sysproto_posix.h>
#include <sys/thread.h>
Include dependency graph for kern_sysctl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sysctl_entry
 

Macros

#define CTL_DEBUG   5 /* debugging parameters */
 
#define CTL_HW   6 /* generic cpu/io */
 
#define CTL_KERN   1 /* "high kernel": proc, limits */
 
#define CTL_KERN_OPENFILES   1 /* kernel openfiles */
 
#define CTL_MACHDEP   7 /* machine dependent */
 
#define CTL_MAXNAME   24 /* largest number of components supported */
 
#define CTL_NET   4 /* network, see socket.h */
 
#define CTL_P1003_1B   9 /* POSIX 1003.1B */
 
#define CTL_UBIX   10 /* ubixos */
 
#define CTL_UNSPEC   0 /* unused */
 
#define CTL_USER   8 /* user-level */
 
#define CTL_VFS   3 /* filesystem, mount type is next */
 
#define CTL_VM   2 /* virtual memory */
 
#define EINVAL   -1 /* */
 

Functions

int kern_sysctl (int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen, size_t *retval, int flags)
 
int sysctl_add (int *, int, char *, void *, int)
 
int sysctl_init ()
 

Variables

bool sysctl_enabled
 

Macro Definition Documentation

◆ CTL_DEBUG

#define CTL_DEBUG   5 /* debugging parameters */

Definition at line 45 of file kern_sysctl.h.

◆ CTL_HW

#define CTL_HW   6 /* generic cpu/io */

Definition at line 46 of file kern_sysctl.h.

◆ CTL_KERN

#define CTL_KERN   1 /* "high kernel": proc, limits */

Definition at line 41 of file kern_sysctl.h.

◆ CTL_KERN_OPENFILES

#define CTL_KERN_OPENFILES   1 /* kernel openfiles */

Definition at line 52 of file kern_sysctl.h.

◆ CTL_MACHDEP

#define CTL_MACHDEP   7 /* machine dependent */

Definition at line 47 of file kern_sysctl.h.

◆ CTL_MAXNAME

#define CTL_MAXNAME   24 /* largest number of components supported */

Definition at line 35 of file kern_sysctl.h.

◆ CTL_NET

#define CTL_NET   4 /* network, see socket.h */

Definition at line 44 of file kern_sysctl.h.

◆ CTL_P1003_1B

#define CTL_P1003_1B   9 /* POSIX 1003.1B */

Definition at line 49 of file kern_sysctl.h.

◆ CTL_UBIX

#define CTL_UBIX   10 /* ubixos */

Definition at line 50 of file kern_sysctl.h.

◆ CTL_UNSPEC

#define CTL_UNSPEC   0 /* unused */

Definition at line 40 of file kern_sysctl.h.

◆ CTL_USER

#define CTL_USER   8 /* user-level */

Definition at line 48 of file kern_sysctl.h.

◆ CTL_VFS

#define CTL_VFS   3 /* filesystem, mount type is next */

Definition at line 43 of file kern_sysctl.h.

◆ CTL_VM

#define CTL_VM   2 /* virtual memory */

Definition at line 42 of file kern_sysctl.h.

◆ EINVAL

#define EINVAL   -1 /* */

Definition at line 54 of file kern_sysctl.h.

Function Documentation

◆ kern_sysctl()

int kern_sysctl ( int *  name,
u_int  namelen,
void *  old,
size_t oldlenp,
void *  new,
size_t  newlen,
size_t retval,
int  flags 
)

◆ sysctl_add()

int sysctl_add ( int *  ,
int  ,
char *  ,
void *  ,
int   
)

Definition at line 418 of file kern_sysctl.c.

◆ sysctl_init()

int sysctl_init ( )

Definition at line 147 of file kern_sysctl.c.

Variable Documentation

◆ sysctl_enabled

bool sysctl_enabled