Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/proc.h
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | |||||
struct mqueue_notifier; | struct mqueue_notifier; | ||||
struct nlminfo; | struct nlminfo; | ||||
struct p_sched; | struct p_sched; | ||||
struct proc; | struct proc; | ||||
struct procdesc; | struct procdesc; | ||||
struct racct; | struct racct; | ||||
struct sbuf; | struct sbuf; | ||||
struct sleepqueue; | struct sleepqueue; | ||||
struct syscall_args; | |||||
struct td_sched; | struct td_sched; | ||||
struct thread; | struct thread; | ||||
struct trapframe; | struct trapframe; | ||||
struct turnstile; | struct turnstile; | ||||
/* | /* | ||||
* XXX: Does this belong in resource.h or resourcevar.h instead? | * XXX: Does this belong in resource.h or resourcevar.h instead? | ||||
* Resource usage extension. The times in rusage structs in the kernel are | * Resource usage extension. The times in rusage structs in the kernel are | ||||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | #define td_startzero td_flags | ||||
int td_ng_outbound; /* (k) Thread entered ng from above. */ | int td_ng_outbound; /* (k) Thread entered ng from above. */ | ||||
struct osd td_osd; /* (k) Object specific data. */ | struct osd td_osd; /* (k) Object specific data. */ | ||||
struct vm_map_entry *td_map_def_user; /* (k) Deferred entries. */ | struct vm_map_entry *td_map_def_user; /* (k) Deferred entries. */ | ||||
pid_t td_dbg_forked; /* (c) Child pid for debugger. */ | pid_t td_dbg_forked; /* (c) Child pid for debugger. */ | ||||
u_int td_vp_reserv; /* (k) Count of reserved vnodes. */ | u_int td_vp_reserv; /* (k) Count of reserved vnodes. */ | ||||
int td_no_sleeping; /* (k) Sleeping disabled count. */ | int td_no_sleeping; /* (k) Sleeping disabled count. */ | ||||
int td_dom_rr_idx; /* (k) RR Numa domain selection. */ | int td_dom_rr_idx; /* (k) RR Numa domain selection. */ | ||||
void *td_su; /* (k) FFS SU private */ | void *td_su; /* (k) FFS SU private */ | ||||
u_int td_dbg_sc_code; /* (c) Syscall code to debugger. */ | |||||
u_int td_dbg_sc_narg; /* (c) Syscall arg count to debugger.*/ | |||||
#define td_endzero td_sigmask | #define td_endzero td_sigmask | ||||
/* Copied during fork1() or create_thread(). */ | /* Copied during fork1() or create_thread(). */ | ||||
#define td_startcopy td_endzero | #define td_startcopy td_endzero | ||||
sigset_t td_sigmask; /* (c) Current signal mask. */ | sigset_t td_sigmask; /* (c) Current signal mask. */ | ||||
u_char td_rqindex; /* (t) Run queue index. */ | u_char td_rqindex; /* (t) Run queue index. */ | ||||
u_char td_base_pri; /* (t) Thread base kernel priority. */ | u_char td_base_pri; /* (t) Thread base kernel priority. */ | ||||
u_char td_priority; /* (t) Thread active priority. */ | u_char td_priority; /* (t) Thread active priority. */ | ||||
▲ Show 20 Lines • Show All 681 Lines • ▼ Show 20 Lines | |||||
extern void (*cpu_idle_hook)(sbintime_t); /* Hook to machdep CPU idler. */ | extern void (*cpu_idle_hook)(sbintime_t); /* Hook to machdep CPU idler. */ | ||||
void cpu_switch(struct thread *, struct thread *, struct mtx *); | void cpu_switch(struct thread *, struct thread *, struct mtx *); | ||||
void cpu_throw(struct thread *, struct thread *) __dead2; | void cpu_throw(struct thread *, struct thread *) __dead2; | ||||
void unsleep(struct thread *); | void unsleep(struct thread *); | ||||
void userret(struct thread *, struct trapframe *); | void userret(struct thread *, struct trapframe *); | ||||
void cpu_exit(struct thread *); | void cpu_exit(struct thread *); | ||||
void exit1(struct thread *, int, int) __dead2; | void exit1(struct thread *, int, int) __dead2; | ||||
struct syscall_args; | |||||
int cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa); | int cpu_fetch_syscall_args(struct thread *td, struct syscall_args *sa); | ||||
void cpu_fork(struct thread *, struct proc *, struct thread *, int); | void cpu_fork(struct thread *, struct proc *, struct thread *, int); | ||||
void cpu_set_fork_handler(struct thread *, void (*)(void *), void *); | void cpu_set_fork_handler(struct thread *, void (*)(void *), void *); | ||||
void cpu_set_syscall_retval(struct thread *, int); | void cpu_set_syscall_retval(struct thread *, int); | ||||
void cpu_set_upcall(struct thread *td, struct thread *td0); | void cpu_set_upcall(struct thread *td, struct thread *td0); | ||||
void cpu_set_upcall_kse(struct thread *, void (*)(void *), void *, | void cpu_set_upcall_kse(struct thread *, void (*)(void *), void *, | ||||
stack_t *); | stack_t *); | ||||
int cpu_set_user_tls(struct thread *, void *tls_base); | int cpu_set_user_tls(struct thread *, void *tls_base); | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |