|
FreeBSD kernel kern code
|
#include <sys/cdefs.h>#include <sys/param.h>#include <sys/kernel.h>#include <sys/lock.h>#include <sys/module.h>#include <sys/sx.h>#include <sys/syscall.h>#include <sys/sysent.h>#include <sys/sysproto.h>#include <sys/systm.h>#include <machine/atomic.h>
Go to the source code of this file.
Functions | |
| __FBSDID ("$BSDSUniX$") | |
| int | lkmnosys (struct thread *td, struct nosys_args *args) |
| int | lkmressys (struct thread *td, struct nosys_args *args) |
| static void | syscall_thread_drain (struct sysent *se) |
| int | syscall_thread_enter (struct thread *td, struct sysent *se) |
| void | syscall_thread_exit (struct thread *td, struct sysent *se) |
| int | syscall_register (int *offset, struct sysent *new_sysent, struct sysent *old_sysent) |
| int | syscall_deregister (int *offset, struct sysent *old_sysent) |
| int | syscall_module_handler (struct module *mod, int what, void *arg) |
| int | syscall_helper_register (struct syscall_helper_data *sd) |
| int | syscall_helper_unregister (struct syscall_helper_data *sd) |
| __FBSDID | ( | "$BSDSUniX$" | ) |
| int lkmnosys | ( | struct thread * | td, |
| struct nosys_args * | args | ||
| ) |
Definition at line 48 of file kern_syscalls.c.
References nosys().
Referenced by syscall_register().


| int lkmressys | ( | struct thread * | td, |
| struct nosys_args * | args | ||
| ) |
Definition at line 55 of file kern_syscalls.c.
References nosys().
Referenced by syscall_register().


| int syscall_deregister | ( | int * | offset, |
| struct sysent * | old_sysent | ||
| ) |
Definition at line 135 of file kern_syscalls.c.
References syscall_thread_drain(), and sysent.
Referenced by syscall_helper_unregister(), and syscall_module_handler().


| int syscall_helper_register | ( | struct syscall_helper_data * | sd | ) |
Definition at line 193 of file kern_syscalls.c.
References syscall_helper_unregister(), and syscall_register().
Referenced by aio_onceonly(), ksem_module_init(), mqinit(), msginit(), seminit(), and shminit().


| int syscall_helper_unregister | ( | struct syscall_helper_data * | sd | ) |
Definition at line 211 of file kern_syscalls.c.
References syscall_deregister().
Referenced by aio_unload(), ksem_module_destroy(), mqunload(), msgunload(), semunload(), shmunload(), and syscall_helper_register().


| int syscall_module_handler | ( | struct module * | mod, |
| int | what, | ||
| void * | arg | ||
| ) |
Definition at line 146 of file kern_syscalls.c.
References module_setspecific(), syscall_deregister(), and syscall_register().

Definition at line 107 of file kern_syscalls.c.
References lkmnosys(), lkmressys(), and sysent.
Referenced by syscall_helper_register(), and syscall_module_handler().


|
static |
Definition at line 62 of file kern_syscalls.c.
Referenced by syscall_deregister().


| int syscall_thread_enter | ( | struct thread * | td, |
| struct sysent * | se | ||
| ) |
Definition at line 78 of file kern_syscalls.c.
Referenced by syscallenter().

| void syscall_thread_exit | ( | struct thread * | td, |
| struct sysent * | se | ||
| ) |
Definition at line 94 of file kern_syscalls.c.
Referenced by syscallenter().
