Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/sys/proc.h
Show First 20 Lines • Show All 561 Lines • ▼ Show 20 Lines | LIST_HEAD(, proc) p_reaplist; /* (e) List of my descendants | ||||
(if I am reaper). */ | (if I am reaper). */ | ||||
LIST_ENTRY(proc) p_reapsibling; /* (e) List of siblings - descendants of | LIST_ENTRY(proc) p_reapsibling; /* (e) List of siblings - descendants of | ||||
the same reaper. */ | the same reaper. */ | ||||
struct mtx p_mtx; /* (n) Lock for this struct. */ | struct mtx p_mtx; /* (n) Lock for this struct. */ | ||||
struct mtx p_statmtx; /* Lock for the stats */ | struct mtx p_statmtx; /* Lock for the stats */ | ||||
struct mtx p_itimmtx; /* Lock for the virt/prof timers */ | struct mtx p_itimmtx; /* Lock for the virt/prof timers */ | ||||
struct mtx p_profmtx; /* Lock for the profiling */ | struct mtx p_profmtx; /* Lock for the profiling */ | ||||
struct ksiginfo *p_ksi; /* Locked by parent proc lock */ | struct ksiginfo *p_ksi; /* Locked by parent proc lock */ | ||||
sigqueue_t p_sigqueue; /* (c) Sigs not delivered to a td. */ | uint64_t padding1[4]; | ||||
#define p_siglist p_sigqueue.sq_signals | void *padding2[4]; | ||||
/* The following fields are all zeroed upon creation in fork. */ | /* The following fields are all zeroed upon creation in fork. */ | ||||
#define p_startzero p_oppid | #define p_startzero p_oppid | ||||
pid_t p_oppid; /* (c + e) Save ppid in ptrace. XXX */ | pid_t p_oppid; /* (c + e) Save ppid in ptrace. XXX */ | ||||
struct vmspace *p_vmspace; /* (b) Address space. */ | struct vmspace *p_vmspace; /* (b) Address space. */ | ||||
u_int p_swtick; /* (c) Tick when swapped in or out. */ | u_int p_swtick; /* (c) Tick when swapped in or out. */ | ||||
u_int p_cowgen; /* (c) Generation of COW pointers. */ | u_int p_cowgen; /* (c) Generation of COW pointers. */ | ||||
struct itimerval p_realtimer; /* (c) Alarm timer. */ | struct itimerval p_realtimer; /* (c) Alarm timer. */ | ||||
▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | #define p_endcopy p_xexit | ||||
* track of them for parent to be able to collect the exit | * track of them for parent to be able to collect the exit | ||||
* status of what used to be children. | * status of what used to be children. | ||||
*/ | */ | ||||
LIST_ENTRY(proc) p_orphan; /* (e) List of orphan processes. */ | LIST_ENTRY(proc) p_orphan; /* (e) List of orphan processes. */ | ||||
LIST_HEAD(, proc) p_orphans; /* (e) Pointer to list of orphans. */ | LIST_HEAD(, proc) p_orphans; /* (e) Pointer to list of orphans. */ | ||||
u_int p_ptevents; /* (c) ptrace() event mask. */ | u_int p_ptevents; /* (c) ptrace() event mask. */ | ||||
uint16_t p_elf_machine; /* (x) ELF machine type */ | uint16_t p_elf_machine; /* (x) ELF machine type */ | ||||
uint64_t p_elf_flags; /* (x) ELF flags */ | uint64_t p_elf_flags; /* (x) ELF flags */ | ||||
sigqueue_t p_sigqueue; /* (c) Sigs not delivered to a td. */ | |||||
#define p_siglist p_sigqueue.sq_signals | |||||
}; | }; | ||||
#define p_session p_pgrp->pg_session | #define p_session p_pgrp->pg_session | ||||
#define p_pgid p_pgrp->pg_id | #define p_pgid p_pgrp->pg_id | ||||
#define NOCPU (-1) /* For when we aren't on a CPU. */ | #define NOCPU (-1) /* For when we aren't on a CPU. */ | ||||
#define NOCPU_OLD (255) | #define NOCPU_OLD (255) | ||||
#define MAXCPU_OLD (254) | #define MAXCPU_OLD (254) | ||||
▲ Show 20 Lines • Show All 463 Lines • Show Last 20 Lines |