|
FreeBSD kernel kern code
|
#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>
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] |
| #define P1B_SYSCTL | ( | num, | |
| name | |||
| ) |
Definition at line 59 of file posix4_mib.c.
| #define P1B_SYSCTL_RW | ( | num, | |
| name | |||
| ) |
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().
| __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().

| 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().

|
static |
Definition at line 166 of file posix4_mib.c.
References p31b_iscfg(), and p31b_setcfg().

| 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().

|
static |
Definition at line 110 of file posix4_mib.c.
References facility, facility_initialized, P31B_VALID, and sysctl_handle_int().

| void p31b_unsetcfg | ( | int | num | ) |
Definition at line 137 of file posix4_mib.c.
References facility, and facility_initialized.
Referenced by ksem_module_destroy().

| SYSCTL_DECL | ( | _p1003_1b | ) |
| SYSCTL_INT | ( | _p1003_1b | , |
| CTL_P1003_1B_ASYNCHRONOUS_IO | , | ||
| asynchronous_io | , | ||
| CTLFLAG_RD | , | ||
| & | async_io_version, | ||
| 0 | , | ||
| "" | |||
| ) |
| SYSINIT | ( | p31b_set_standard | , |
| SI_SUB_P1003_1B | , | ||
| SI_ORDER_ANY | , | ||
| p31b_set_standard | , | ||
| 0 | |||
| ) |
|
static |
Definition at line 45 of file posix4_mib.c.
Referenced by p31b_getcfg(), p31b_setcfg(), p31b_sysctl_proc(), and p31b_unsetcfg().
|
static |
Definition at line 46 of file posix4_mib.c.
Referenced by p31b_iscfg(), p31b_setcfg(), p31b_sysctl_proc(), and p31b_unsetcfg().