Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/proc.h
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | |||||
* s - see sleepq_switch(), sleeping_on_old_rtc(), and sleep(9) | * s - see sleepq_switch(), sleeping_on_old_rtc(), and sleep(9) | ||||
* t - thread lock | * t - thread lock | ||||
* u - process stat lock | * u - process stat lock | ||||
* w - process timer lock | * w - process timer lock | ||||
* x - created at fork, only changes during single threading in exec | * x - created at fork, only changes during single threading in exec | ||||
* y - created at first aio, doesn't change until exit or exec at which | * y - created at first aio, doesn't change until exit or exec at which | ||||
* point we are single-threaded and only curthread changes it | * point we are single-threaded and only curthread changes it | ||||
* z - zombie threads lock | * z - zombie threads lock | ||||
* A - atomic ops | |||||
* | * | ||||
* If the locking key specifies two identifiers (for example, p_pptr) then | * If the locking key specifies two identifiers (for example, p_pptr) then | ||||
* either lock is sufficient for read access, but both locks must be held | * either lock is sufficient for read access, but both locks must be held | ||||
* for write access. | * for write access. | ||||
*/ | */ | ||||
struct cpuset; | struct cpuset; | ||||
struct filecaps; | struct filecaps; | ||||
struct filemon; | struct filemon; | ||||
▲ Show 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | #define td_retval td_uretoff.tdu_retval | ||||
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 */ | 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 | ||||
int td_aio_count; /* (A) number of AIOs in flight */ | |||||
}; | }; | ||||
struct thread0_storage { | struct thread0_storage { | ||||
struct thread t0st_thread; | struct thread t0st_thread; | ||||
uint64_t t0st_sched[10]; | uint64_t t0st_sched[10]; | ||||
}; | }; | ||||
struct mtx *thread_lock_block(struct thread *); | struct mtx *thread_lock_block(struct thread *); | ||||
▲ Show 20 Lines • Show All 913 Lines • Show Last 20 Lines |