FreeBSD kernel kern code
subr_trap.c File Reference
#include <sys/cdefs.h>
#include "opt_capsicum.h"
#include "opt_hwpmc_hooks.h"
#include "opt_ktrace.h"
#include "opt_kdtrace.h"
#include "opt_sched.h"
#include <sys/param.h>
#include <sys/bus.h>
#include <sys/capability.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/pmckern.h>
#include <sys/proc.h>
#include <sys/ktr.h>
#include <sys/pioctl.h>
#include <sys/ptrace.h>
#include <sys/resourcevar.h>
#include <sys/sched.h>
#include <sys/signalvar.h>
#include <sys/syscall.h>
#include <sys/syscallsubr.h>
#include <sys/sysent.h>
#include <sys/systm.h>
#include <sys/vmmeter.h>
#include <security/audit/audit.h>
#include <machine/cpu.h>
#include <security/mac/mac_framework.h>
Include dependency graph for subr_trap.c:

Go to the source code of this file.

Functions

 __FBSDID ("$BSDSUniX$")
 
void userret (struct thread *td, struct trapframe *frame)
 
void ast (struct trapframe *framep)
 
const char * syscallname (struct proc *p, u_int code)
 

Function Documentation

__FBSDID ( "$BSDSUniX$"  )
void ast ( struct trapframe *  framep)

Definition at line 172 of file subr_trap.c.

References addupc_task(), cred_update_thread(), cursig(), Giant, kern_psignal(), kern_sigprocmask(), mi_switch(), postsig(), sched_prio(), thread_suspend_check(), and userret().

Here is the call graph for this function:

const char* syscallname ( struct proc *  p,
u_int  code 
)

Definition at line 280 of file subr_trap.c.

Referenced by syscallenter(), and syscallret().

Here is the caller graph for this function:

void userret ( struct thread *  td,
struct trapframe *  frame 
)

Definition at line 101 of file subr_trap.c.

References addupc_task(), printf(), psratio, and sched_userret().

Referenced by ast(), fork_return(), and syscallret().

Here is the call graph for this function:

Here is the caller graph for this function: