Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/sysent.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
#ifdef KDTRACE_HOOKS | #ifdef KDTRACE_HOOKS | ||||
#define SYSTRACE_ENABLED() (systrace_enabled) | #define SYSTRACE_ENABLED() (systrace_enabled) | ||||
#else | #else | ||||
#define SYSTRACE_ENABLED() (0) | #define SYSTRACE_ENABLED() (0) | ||||
#endif | #endif | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
struct sysent { /* system call table */ | struct sysent { /* system call table */ | ||||
int sy_narg; /* number of arguments */ | |||||
sy_call_t *sy_call; /* implementing function */ | sy_call_t *sy_call; /* implementing function */ | ||||
au_event_t sy_auevent; /* audit event associated with syscall */ | |||||
systrace_args_func_t sy_systrace_args_func; | systrace_args_func_t sy_systrace_args_func; | ||||
/* optional argument conversion function. */ | /* optional argument conversion function. */ | ||||
u_int8_t sy_narg; /* number of arguments */ | |||||
u_int8_t sy_flags; /* General flags for system calls. */ | |||||
au_event_t sy_auevent; /* audit event associated with syscall */ | |||||
u_int32_t sy_entry; /* DTrace entry ID for systrace. */ | u_int32_t sy_entry; /* DTrace entry ID for systrace. */ | ||||
u_int32_t sy_return; /* DTrace return ID for systrace. */ | u_int32_t sy_return; /* DTrace return ID for systrace. */ | ||||
u_int32_t sy_flags; /* General flags for system calls. */ | |||||
u_int32_t sy_thrcnt; | u_int32_t sy_thrcnt; | ||||
}; | }; | ||||
/* | /* | ||||
* A system call is permitted in capability mode. | * A system call is permitted in capability mode. | ||||
*/ | */ | ||||
#define SYF_CAPENABLED 0x00000001 | #define SYF_CAPENABLED 0x00000001 | ||||
▲ Show 20 Lines • Show All 246 Lines • Show Last 20 Lines |