FreeBSD kernel kern code
kern_syscalls.c File Reference
#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>
Include dependency graph for kern_syscalls.c:

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)
 

Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

int lkmressys ( struct thread *  td,
struct nosys_args args 
)

Definition at line 55 of file kern_syscalls.c.

References nosys().

Referenced by syscall_register().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

int syscall_register ( int *  offset,
struct sysent new_sysent,
struct sysent old_sysent 
)

Definition at line 107 of file kern_syscalls.c.

References lkmnosys(), lkmressys(), and sysent.

Referenced by syscall_helper_register(), and syscall_module_handler().

Here is the call graph for this function:

Here is the caller graph for this function:

static void syscall_thread_drain ( struct sysent se)
static

Definition at line 62 of file kern_syscalls.c.

References hz, and pause().

Referenced by syscall_deregister().

Here is the call graph for this function:

Here is the caller graph for this function:

int syscall_thread_enter ( struct thread *  td,
struct sysent se 
)

Definition at line 78 of file kern_syscalls.c.

Referenced by syscallenter().

Here is the caller graph for this function:

void syscall_thread_exit ( struct thread *  td,
struct sysent se 
)

Definition at line 94 of file kern_syscalls.c.

Referenced by syscallenter().

Here is the caller graph for this function: