FreeBSD kernel kern code
posix4_mib.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/queue.h>
#include <sys/sysctl.h>
#include <sys/vnode.h>
#include <sys/proc.h>
#include <sys/posix4.h>
Include dependency graph for posix4_mib.c:

Go to the source code of this file.

Macros

#define P1B_SYSCTL(num, name)
 
#define P1B_SYSCTL_RW(num, name)
 
#define P31B_VALID(num)   ((num) >= 1 && (num) < CTL_P1003_1B_MAXID)
 

Functions

 __FBSDID ("$BSDSUniX$")
 
static int p31b_sysctl_proc (SYSCTL_HANDLER_ARGS)
 
 SYSCTL_DECL (_p1003_1b)
 
 SYSCTL_INT (_p1003_1b, CTL_P1003_1B_ASYNCHRONOUS_IO, asynchronous_io, CTLFLAG_RD,&async_io_version, 0,"")
 
 P1B_SYSCTL (CTL_P1003_1B_MAPPED_FILES, mapped_files)
 
 P1B_SYSCTL (CTL_P1003_1B_MEMLOCK, memlock)
 
 P1B_SYSCTL (CTL_P1003_1B_MEMLOCK_RANGE, memlock_range)
 
 P1B_SYSCTL (CTL_P1003_1B_MEMORY_PROTECTION, memory_protection)
 
 P1B_SYSCTL (CTL_P1003_1B_MESSAGE_PASSING, message_passing)
 
 P1B_SYSCTL (CTL_P1003_1B_PRIORITIZED_IO, prioritized_io)
 
 P1B_SYSCTL (CTL_P1003_1B_PRIORITY_SCHEDULING, priority_scheduling)
 
 P1B_SYSCTL (CTL_P1003_1B_REALTIME_SIGNALS, realtime_signals)
 
 P1B_SYSCTL (CTL_P1003_1B_SEMAPHORES, semaphores)
 
 P1B_SYSCTL (CTL_P1003_1B_FSYNC, fsync)
 
 P1B_SYSCTL (CTL_P1003_1B_SHARED_MEMORY_OBJECTS, shared_memory_objects)
 
 P1B_SYSCTL (CTL_P1003_1B_SYNCHRONIZED_IO, synchronized_io)
 
 P1B_SYSCTL (CTL_P1003_1B_TIMERS, timers)
 
 P1B_SYSCTL (CTL_P1003_1B_AIO_LISTIO_MAX, aio_listio_max)
 
 P1B_SYSCTL (CTL_P1003_1B_AIO_MAX, aio_max)
 
 P1B_SYSCTL (CTL_P1003_1B_AIO_PRIO_DELTA_MAX, aio_prio_delta_max)
 
 P1B_SYSCTL (CTL_P1003_1B_DELAYTIMER_MAX, delaytimer_max)
 
 P1B_SYSCTL (CTL_P1003_1B_MQ_OPEN_MAX, mq_open_max)
 
 P1B_SYSCTL (CTL_P1003_1B_PAGESIZE, pagesize)
 
 P1B_SYSCTL (CTL_P1003_1B_RTSIG_MAX, rtsig_max)
 
 P1B_SYSCTL_RW (CTL_P1003_1B_SEM_NSEMS_MAX, sem_nsems_max)
 
 P1B_SYSCTL (CTL_P1003_1B_SEM_VALUE_MAX, sem_value_max)
 
 P1B_SYSCTL (CTL_P1003_1B_SIGQUEUE_MAX, sigqueue_max)
 
 P1B_SYSCTL (CTL_P1003_1B_TIMER_MAX, timer_max)
 
void p31b_setcfg (int num, int value)
 
void p31b_unsetcfg (int num)
 
int p31b_getcfg (int num)
 
int p31b_iscfg (int num)
 
static void p31b_set_standard (void *dummy)
 
 SYSINIT (p31b_set_standard, SI_SUB_P1003_1B, SI_ORDER_ANY, p31b_set_standard, 0)
 

Variables

static int facility [CTL_P1003_1B_MAXID-1]
 
static int facility_initialized [CTL_P1003_1B_MAXID-1]
 

Macro Definition Documentation

#define P1B_SYSCTL (   num,
  name 
)
Value:
SYSCTL_INT(_p1003_1b, num, name, CTLFLAG_RD | CTLFLAG_CAPRD, \
facility + num - 1, 0, "");
const char * name
Definition: kern_fail.c:97
static int facility[CTL_P1003_1B_MAXID-1]
Definition: posix4_mib.c:45
SYSCTL_INT(_p1003_1b, CTL_P1003_1B_ASYNCHRONOUS_IO, asynchronous_io, CTLFLAG_RD,&async_io_version, 0,"")

Definition at line 59 of file posix4_mib.c.

#define P1B_SYSCTL_RW (   num,
  name 
)
Value:
SYSCTL_PROC(_p1003_1b, num, name, CTLTYPE_INT | CTLFLAG_RW, NULL, num, \
p31b_sysctl_proc, "I", "");
const char * name
Definition: kern_fail.c:97
static int p31b_sysctl_proc(SYSCTL_HANDLER_ARGS)
Definition: posix4_mib.c:110
SYSCTL_PROC(_kern, OID_AUTO, acct_chkfreq, CTLTYPE_INT|CTLFLAG_RW,&acctchkfreq, 0, sysctl_acct_chkfreq,"I","frequency for checking the free space")

Definition at line 62 of file posix4_mib.c.

#define P31B_VALID (   num)    ((num) >= 1 && (num) < CTL_P1003_1B_MAXID)

Definition at line 107 of file posix4_mib.c.

Referenced by p31b_getcfg(), p31b_iscfg(), p31b_setcfg(), and p31b_sysctl_proc().

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
P1B_SYSCTL ( CTL_P1003_1B_MAPPED_FILES  ,
mapped_files   
)
P1B_SYSCTL ( CTL_P1003_1B_MEMLOCK  ,
memlock   
)
P1B_SYSCTL ( CTL_P1003_1B_MEMLOCK_RANGE  ,
memlock_range   
)
P1B_SYSCTL ( CTL_P1003_1B_MEMORY_PROTECTION  ,
memory_protection   
)
P1B_SYSCTL ( CTL_P1003_1B_MESSAGE_PASSING  ,
message_passing   
)
P1B_SYSCTL ( CTL_P1003_1B_PRIORITIZED_IO  ,
prioritized_io   
)
P1B_SYSCTL ( CTL_P1003_1B_PRIORITY_SCHEDULING  ,
priority_scheduling   
)
P1B_SYSCTL ( CTL_P1003_1B_REALTIME_SIGNALS  ,
realtime_signals   
)
P1B_SYSCTL ( CTL_P1003_1B_SEMAPHORES  ,
semaphores   
)
P1B_SYSCTL ( CTL_P1003_1B_FSYNC  ,
fsync   
)
P1B_SYSCTL ( CTL_P1003_1B_SHARED_MEMORY_OBJECTS  ,
shared_memory_objects   
)
P1B_SYSCTL ( CTL_P1003_1B_SYNCHRONIZED_IO  ,
synchronized_io   
)
P1B_SYSCTL ( CTL_P1003_1B_TIMERS  ,
timers   
)
P1B_SYSCTL ( CTL_P1003_1B_AIO_LISTIO_MAX  ,
aio_listio_max   
)
P1B_SYSCTL ( CTL_P1003_1B_AIO_MAX  ,
aio_max   
)
P1B_SYSCTL ( CTL_P1003_1B_AIO_PRIO_DELTA_MAX  ,
aio_prio_delta_max   
)
P1B_SYSCTL ( CTL_P1003_1B_DELAYTIMER_MAX  ,
delaytimer_max   
)
P1B_SYSCTL ( CTL_P1003_1B_MQ_OPEN_MAX  ,
mq_open_max   
)
P1B_SYSCTL ( CTL_P1003_1B_PAGESIZE  ,
pagesize   
)
P1B_SYSCTL ( CTL_P1003_1B_RTSIG_MAX  ,
rtsig_max   
)
P1B_SYSCTL ( CTL_P1003_1B_SEM_VALUE_MAX  ,
sem_value_max   
)
P1B_SYSCTL ( CTL_P1003_1B_SIGQUEUE_MAX  ,
sigqueue_max   
)
P1B_SYSCTL ( CTL_P1003_1B_TIMER_MAX  ,
timer_max   
)
P1B_SYSCTL_RW ( CTL_P1003_1B_SEM_NSEMS_MAX  ,
sem_nsems_max   
)
int p31b_getcfg ( int  num)

Definition at line 145 of file posix4_mib.c.

References facility, and P31B_VALID.

Referenced by ksem_alloc().

Here is the caller graph for this function:

int p31b_iscfg ( int  num)

Definition at line 154 of file posix4_mib.c.

References facility_initialized, and P31B_VALID.

Referenced by p31b_set_standard().

Here is the caller graph for this function:

static void p31b_set_standard ( void *  dummy)
static

Definition at line 166 of file posix4_mib.c.

References p31b_iscfg(), and p31b_setcfg().

Here is the call graph for this function:

void p31b_setcfg ( int  num,
int  value 
)

Definition at line 127 of file posix4_mib.c.

References facility, facility_initialized, P31B_VALID, and value.

Referenced by aio_onceonly(), aio_unload(), itimer_start(), ksem_module_destroy(), ksem_module_init(), mqfs_init(), p31b_set_standard(), p31binit(), and sigqueue_start().

Here is the caller graph for this function:

static int p31b_sysctl_proc ( SYSCTL_HANDLER_ARGS  )
static

Definition at line 110 of file posix4_mib.c.

References facility, facility_initialized, P31B_VALID, and sysctl_handle_int().

Here is the call graph for this function:

void p31b_unsetcfg ( int  num)

Definition at line 137 of file posix4_mib.c.

References facility, and facility_initialized.

Referenced by ksem_module_destroy().

Here is the caller graph for this function:

SYSCTL_DECL ( _p1003_1b  )
SYSCTL_INT ( _p1003_1b  ,
CTL_P1003_1B_ASYNCHRONOUS_IO  ,
asynchronous_io  ,
CTLFLAG_RD  ,
async_io_version,
,
""   
)
SYSINIT ( p31b_set_standard  ,
SI_SUB_P1003_1B  ,
SI_ORDER_ANY  ,
p31b_set_standard  ,
 
)

Variable Documentation

int facility[CTL_P1003_1B_MAXID-1]
static

Definition at line 45 of file posix4_mib.c.

Referenced by p31b_getcfg(), p31b_setcfg(), p31b_sysctl_proc(), and p31b_unsetcfg().

int facility_initialized[CTL_P1003_1B_MAXID-1]
static

Definition at line 46 of file posix4_mib.c.

Referenced by p31b_iscfg(), p31b_setcfg(), p31b_sysctl_proc(), and p31b_unsetcfg().