FreeBSD kernel kern code
subr_trap.c File Reference
#include <sys/cdefs.h>
#include "opt_hwpmc_hooks.h"
#include "opt_ktrace.h"
#include "opt_sched.h"
#include <sys/param.h>
#include <sys/bus.h>
#include <sys/capsicum.h>
#include <sys/event.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/msan.h>
#include <sys/mutex.h>
#include <sys/pmckern.h>
#include <sys/proc.h>
#include <sys/ktr.h>
#include <sys/ptrace.h>
#include <sys/racct.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 ("$FreeBSD$")
 
void userret (struct thread *td, struct trapframe *frame)
 
void ast (struct trapframe *framep)
 
const char * syscallname (struct proc *p, u_int code)
 

Variables

void(* softdep_ast_cleanup )(struct thread *)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ ast()

◆ syscallname()

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

Definition at line 387 of file subr_trap.c.

Referenced by syscallenter().

Here is the caller graph for this function:

◆ userret()

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

Definition at line 99 of file subr_trap.c.

References addupc_task(), panic(), and psratio.

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

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ softdep_ast_cleanup

void(* softdep_ast_cleanup) (struct thread *) ( struct thread *  )

Definition at line 92 of file subr_trap.c.