Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/proc.h
Show First 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | #define td_retval td_uretoff.tdu_retval | ||||
int td_ma_cnt; /* (k) size of *td_ma */ | int td_ma_cnt; /* (k) size of *td_ma */ | ||||
/* LP64 hole */ | /* LP64 hole */ | ||||
void *td_emuldata; /* Emulator state data */ | void *td_emuldata; /* Emulator state data */ | ||||
int td_lastcpu; /* (t) Last cpu we were on. */ | int td_lastcpu; /* (t) Last cpu we were on. */ | ||||
int td_oncpu; /* (t) Which cpu we are on. */ | int td_oncpu; /* (t) Which cpu we are on. */ | ||||
void *td_lkpi_task; /* LinuxKPI task struct pointer */ | void *td_lkpi_task; /* LinuxKPI task struct pointer */ | ||||
int td_pmcpend; | int td_pmcpend; | ||||
void *td_coredump; /* (c) coredump request. */ | void *td_coredump; /* (c) coredump request. */ | ||||
off_t td_ktr_io_lim; /* (k) limit for ktrace file size */ | |||||
#ifdef EPOCH_TRACE | #ifdef EPOCH_TRACE | ||||
SLIST_HEAD(, epoch_tracker) td_epochs; | SLIST_HEAD(, epoch_tracker) td_epochs; | ||||
#endif | #endif | ||||
}; | }; | ||||
struct thread0_storage { | struct thread0_storage { | ||||
struct thread t0st_thread; | struct thread t0st_thread; | ||||
uint64_t t0st_sched[10]; | uint64_t t0st_sched[10]; | ||||
▲ Show 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | |||||
#define TDP_NERRNO 0x08000000 /* Last errno is already in td_errno */ | #define TDP_NERRNO 0x08000000 /* Last errno is already in td_errno */ | ||||
#define TDP_UIOHELD 0x10000000 /* Current uio has pages held in td_ma */ | #define TDP_UIOHELD 0x10000000 /* Current uio has pages held in td_ma */ | ||||
#define TDP_FORKING 0x20000000 /* Thread is being created through fork() */ | #define TDP_FORKING 0x20000000 /* Thread is being created through fork() */ | ||||
#define TDP_EXECVMSPC 0x40000000 /* Execve destroyed old vmspace */ | #define TDP_EXECVMSPC 0x40000000 /* Execve destroyed old vmspace */ | ||||
#define TDP_SIGFASTPENDING 0x80000000 /* Pending signal due to sigfastblock */ | #define TDP_SIGFASTPENDING 0x80000000 /* Pending signal due to sigfastblock */ | ||||
#define TDP2_SBPAGES 0x00000001 /* Owns sbusy on some pages */ | #define TDP2_SBPAGES 0x00000001 /* Owns sbusy on some pages */ | ||||
#define TDP2_COMPAT32RB 0x00000002 /* compat32 ABI for robust lists */ | #define TDP2_COMPAT32RB 0x00000002 /* compat32 ABI for robust lists */ | ||||
#define TDP2_ACCT 0x00000004 /* Doing accounting */ | |||||
#define TDP2_KTRWRITE 0x00000008 /* Doing ktrace record write */ | |||||
/* | /* | ||||
* Reasons that the current thread can not be run yet. | * Reasons that the current thread can not be run yet. | ||||
* More than one may apply. | * More than one may apply. | ||||
*/ | */ | ||||
#define TDI_SUSPENDED 0x0001 /* On suspension queue. */ | #define TDI_SUSPENDED 0x0001 /* On suspension queue. */ | ||||
#define TDI_SLEEPING 0x0002 /* Actually asleep! (tricky). */ | #define TDI_SLEEPING 0x0002 /* Actually asleep! (tricky). */ | ||||
#define TDI_SWAPPED 0x0004 /* Stack not in mem. Bad juju if run. */ | #define TDI_SWAPPED 0x0004 /* Stack not in mem. Bad juju if run. */ | ||||
▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | #define p_startzero p_vmspace | ||||
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. */ | ||||
struct rusage p_ru; /* (a) Exit information. */ | struct rusage p_ru; /* (a) Exit information. */ | ||||
struct rusage_ext p_rux; /* (cu) Internal resource usage. */ | struct rusage_ext p_rux; /* (cu) Internal resource usage. */ | ||||
struct rusage_ext p_crux; /* (c) Internal child resource usage. */ | struct rusage_ext p_crux; /* (c) Internal child resource usage. */ | ||||
int p_profthreads; /* (c) Num threads in addupc_task. */ | int p_profthreads; /* (c) Num threads in addupc_task. */ | ||||
volatile int p_exitthreads; /* (j) Number of threads exiting */ | volatile int p_exitthreads; /* (j) Number of threads exiting */ | ||||
int p_traceflag; /* (o) Kernel trace points. */ | int p_traceflag; /* (o) Kernel trace points. */ | ||||
struct vnode *p_tracevp; /* (c + o) Trace to vnode. */ | struct ktr_io_params *p_ktrioparms; /* (c + o) Params for ktrace. */ | ||||
struct ucred *p_tracecred; /* (o) Credentials to trace with. */ | |||||
struct vnode *p_textvp; /* (b) Vnode of executable. */ | struct vnode *p_textvp; /* (b) Vnode of executable. */ | ||||
u_int p_lock; /* (c) Proclock (prevent swap) count. */ | u_int p_lock; /* (c) Proclock (prevent swap) count. */ | ||||
struct sigiolst p_sigiolst; /* (c) List of sigio sources. */ | struct sigiolst p_sigiolst; /* (c) List of sigio sources. */ | ||||
int p_sigparent; /* (c) Signal to parent on exit. */ | int p_sigparent; /* (c) Signal to parent on exit. */ | ||||
int p_sig; /* (n) For core dump/debugger XXX. */ | int p_sig; /* (n) For core dump/debugger XXX. */ | ||||
u_int p_ptevents; /* (c + e) ptrace() event mask. */ | u_int p_ptevents; /* (c + e) ptrace() event mask. */ | ||||
struct kaioinfo *p_aioinfo; /* (y) ASYNC I/O info. */ | struct kaioinfo *p_aioinfo; /* (y) ASYNC I/O info. */ | ||||
struct thread *p_singlethread;/* (c + j) If single threading this is it */ | struct thread *p_singlethread;/* (c + j) If single threading this is it */ | ||||
▲ Show 20 Lines • Show All 621 Lines • Show Last 20 Lines |