FreeBSD kernel kern code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/syscallsubr.h>
#include <sys/sysent.h>
#include <sys/systm.h>
#include <sys/sysproto.h>
#include <sys/signalvar.h>
#include <sys/ucontext.h>
Go to the source code of this file.
Data Structures | |
struct | getcontext_args |
struct | swapcontext_args |
Macros | |
#define | UC_COPY_SIZE offsetof(ucontext_t, uc_link) |
Functions | |
__FBSDID ("$BSDSUniX$") | |
struct swapcontext_args | sys_getcontext (struct thread *td, struct getcontext_args *uap) |
int | sys_setcontext (struct thread *td, struct setcontext_args *uap) |
int | sys_swapcontext (struct thread *td, struct swapcontext_args *uap) |
Variables | |
struct getcontext_args * | ucp |
struct __ucontext * | oucp |
#define UC_COPY_SIZE offsetof(ucontext_t, uc_link) |
Definition at line 47 of file kern_context.c.
Referenced by sys_getcontext(), sys_setcontext(), and sys_swapcontext().
__FBSDID | ( | "$BSDSUniX$" | ) |
struct swapcontext_args sys_getcontext | ( | struct thread * | td, |
struct getcontext_args * | uap | ||
) |
Definition at line 63 of file kern_context.c.
References UC_COPY_SIZE, and getcontext_args::ucp.
int sys_setcontext | ( | struct thread * | td, |
struct setcontext_args * | uap | ||
) |
Definition at line 82 of file kern_context.c.
References kern_sigprocmask(), and UC_COPY_SIZE.
int sys_swapcontext | ( | struct thread * | td, |
struct swapcontext_args * | uap | ||
) |
Definition at line 103 of file kern_context.c.
References kern_sigprocmask(), swapcontext_args::oucp, UC_COPY_SIZE, and swapcontext_args::ucp.
struct __ucontext* oucp |
Definition at line 29 of file kern_context.c.
const struct __ucontext_t * ucp |
Definition at line 30 of file kern_context.c.
Referenced by start_init().