Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/proc.h
Show First 20 Lines • Show All 636 Lines • ▼ Show 20 Lines | |||||
/* End area that is zeroed on creation. */ | /* End area that is zeroed on creation. */ | ||||
#define p_endzero p_magic | #define p_endzero p_magic | ||||
/* The following fields are all copied upon creation in fork. */ | /* The following fields are all copied upon creation in fork. */ | ||||
#define p_startcopy p_endzero | #define p_startcopy p_endzero | ||||
u_int p_magic; /* (b) Magic number. */ | u_int p_magic; /* (b) Magic number. */ | ||||
int p_osrel; /* (x) osreldate for the | int p_osrel; /* (x) osreldate for the | ||||
binary (from ELF note, if any) */ | binary (from ELF note, if any) */ | ||||
uint32_t p_fctl0; /* (x) ABI feature control, ELF note */ | |||||
char p_comm[MAXCOMLEN + 1]; /* (x) Process name. */ | char p_comm[MAXCOMLEN + 1]; /* (x) Process name. */ | ||||
struct sysentvec *p_sysent; /* (b) Syscall dispatch info. */ | struct sysentvec *p_sysent; /* (b) Syscall dispatch info. */ | ||||
struct pargs *p_args; /* (c) Process arguments. */ | struct pargs *p_args; /* (c) Process arguments. */ | ||||
rlim_t p_cpulimit; /* (c) Current CPU limit in seconds. */ | rlim_t p_cpulimit; /* (c) Current CPU limit in seconds. */ | ||||
signed char p_nice; /* (c) Process "nice" value. */ | signed char p_nice; /* (c) Process "nice" value. */ | ||||
int p_fibnum; /* in this routing domain XXX MRT */ | int p_fibnum; /* in this routing domain XXX MRT */ | ||||
pid_t p_reapsubtree; /* (e) Pid of the direct child of the | pid_t p_reapsubtree; /* (e) Pid of the direct child of the | ||||
reaper which spawned | reaper which spawned | ||||
▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | |||||
/* These flags are kept in p_flag2. */ | /* These flags are kept in p_flag2. */ | ||||
#define P2_INHERIT_PROTECTED 0x00000001 /* New children get P_PROTECTED. */ | #define P2_INHERIT_PROTECTED 0x00000001 /* New children get P_PROTECTED. */ | ||||
#define P2_NOTRACE 0x00000002 /* No ptrace(2) attach or coredumps. */ | #define P2_NOTRACE 0x00000002 /* No ptrace(2) attach or coredumps. */ | ||||
#define P2_NOTRACE_EXEC 0x00000004 /* Keep P2_NOPTRACE on exec(2). */ | #define P2_NOTRACE_EXEC 0x00000004 /* Keep P2_NOPTRACE on exec(2). */ | ||||
#define P2_AST_SU 0x00000008 /* Handles SU ast for kthreads. */ | #define P2_AST_SU 0x00000008 /* Handles SU ast for kthreads. */ | ||||
#define P2_PTRACE_FSTP 0x00000010 /* SIGSTOP from PT_ATTACH not yet handled. */ | #define P2_PTRACE_FSTP 0x00000010 /* SIGSTOP from PT_ATTACH not yet handled. */ | ||||
#define P2_TRAPCAP 0x00000020 /* SIGTRAP on ENOTCAPABLE */ | #define P2_TRAPCAP 0x00000020 /* SIGTRAP on ENOTCAPABLE */ | ||||
#define P2_ASLR_ENABLE 0x00000040 /* Force enable ASLR. */ | |||||
#define P2_ASLR_DISABLE 0x00000080 /* Force disable ASLR. */ | |||||
#define P2_ASLR_IGNSTART 0x00000100 /* Enable ASLR to consume sbrk area. */ | |||||
/* Flags protected by proctree_lock, kept in p_treeflags. */ | /* Flags protected by proctree_lock, kept in p_treeflags. */ | ||||
#define P_TREE_ORPHANED 0x00000001 /* Reparented, on orphan list */ | #define P_TREE_ORPHANED 0x00000001 /* Reparented, on orphan list */ | ||||
#define P_TREE_FIRST_ORPHAN 0x00000002 /* First element of orphan | #define P_TREE_FIRST_ORPHAN 0x00000002 /* First element of orphan | ||||
list */ | list */ | ||||
#define P_TREE_REAPER 0x00000004 /* Reaper of subtree */ | #define P_TREE_REAPER 0x00000004 /* Reaper of subtree */ | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 402 Lines • Show Last 20 Lines |