/illumos-gate/usr/src/uts/common/disp/ |
H A D | sysclass.c | 59 static int sys_fork(kthread_t *, kthread_t *, void *); 60 static int sys_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 61 static int sys_canexit(kthread_t *, cred_t *); 63 static int sys_donice(kthread_t *, cred_t *, int, int *); 64 static int sys_doprio(kthread_t *, cred_t *, int, int *); 65 static void sys_forkret(kthread_t *, kthread_t *); 67 static pri_t sys_swappri(kthread_t *, int); 68 static pri_t sys_globpri(kthread_t *); 140 kthread_t *t; in sys_enterclass() 151 sys_canexit(kthread_t *t, cred_t *reqpcredp) in sys_canexit() [all …]
|
H A D | rt.c | 114 static int rt_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 115 static int rt_fork(kthread_t *, kthread_t *, void *); 122 static int rt_parmsset(kthread_t *, void *, id_t, cred_t *); 123 static int rt_donice(kthread_t *, cred_t *, int, int *); 124 static int rt_doprio(kthread_t *, cred_t *, int, int *); 126 static int rt_canexit(kthread_t *, cred_t *); 127 static void rt_forkret(kthread_t *, kthread_t *); 129 static void rt_parmsget(kthread_t *, void *); 130 static void rt_preempt(kthread_t *); 131 static void rt_setrun(kthread_t *); [all …]
|
H A D | thread.c | 88 kthread_t *allthreads = &t0; /* circular list of all threads */ 91 kthread_t *thread_deathrow; /* circular list of reapable threads */ 92 kthread_t *lwp_deathrow; /* circular list of reapable threads */ 142 static void stkinfo_begin(kthread_t *); 143 static void stkinfo_end(kthread_t *); 170 kthread_t *tp; in thread_init() 186 thread_cache = kmem_cache_create("thread_cache", sizeof (kthread_t), in thread_init() 202 thread_cache = kmem_cache_create("thread_cache", sizeof (kthread_t), in thread_init() 324 kthread_t * 335 kthread_t *t; in thread_create() [all …]
|
H A D | fx.c | 174 static int fx_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 176 static int fx_canexit(kthread_t *, cred_t *); 177 static int fx_fork(kthread_t *, kthread_t *, void *); 178 static void fx_forkret(kthread_t *, kthread_t *); 179 static void fx_parmsget(kthread_t *, void *); 180 static int fx_parmsset(kthread_t *, void *, id_t, cred_t *); 181 static void fx_stop(kthread_t *, int, int); 182 static void fx_exit(kthread_t *); 183 static pri_t fx_swapin(kthread_t *, int); 184 static pri_t fx_swapout(kthread_t *, int); [all …]
|
H A D | disp.c | 105 void disp_swapped_enq(kthread_t *tp); 106 static void disp_swapped_setrun(kthread_t *tp); 118 static void setkpdq(kthread_t *tp, int borf); 156 #define T_DONTSTEAL (kthread_t *)(-1) /* returned by disp_getwork/getbest */ 158 static kthread_t *disp_getwork(cpu_t *to); 159 static kthread_t *disp_getbest(disp_t *from); 160 static kthread_t *disp_ratify(kthread_t *tp, disp_t *kpq); 162 void swtch_to(kthread_t *); 605 kthread_t *t; /* taken thread */ in idle() 682 kthread_t *t = curthread; in preempt() [all …]
|
H A D | ts.c | 184 static int ts_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 185 static int ts_fork(kthread_t *, kthread_t *, void *); 192 static int ts_parmsset(kthread_t *, void *, id_t, cred_t *); 193 static void ts_exit(kthread_t *); 194 static int ts_donice(kthread_t *, cred_t *, int, int *); 195 static int ts_doprio(kthread_t *, cred_t *, int, int *); 197 static int ts_canexit(kthread_t *, cred_t *); 198 static void ts_forkret(kthread_t *, kthread_t *); 200 static void ts_parmsget(kthread_t *, void *); 201 static void ts_preempt(kthread_t *); [all …]
|
H A D | fss.c | 358 static void fss_change_priority(kthread_t *, fssproc_t *); 370 static int fss_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 372 static int fss_canexit(kthread_t *, cred_t *); 373 static int fss_fork(kthread_t *, kthread_t *, void *); 374 static void fss_forkret(kthread_t *, kthread_t *); 375 static void fss_parmsget(kthread_t *, void *); 376 static int fss_parmsset(kthread_t *, void *, id_t, cred_t *); 377 static void fss_stop(kthread_t *, int, int); 378 static void fss_exit(kthread_t *); 379 static void fss_active(kthread_t *); [all …]
|
H A D | sysdc.c | 415 kthread_t *const t = sdc->sdc_thread; in sysdc_update_times() 537 kthread_t *const t = sdc->sdc_thread; in sysdc_compute_pri() 573 kthread_t *, t, pri_t, sdc->sdc_epri, uint_t, sdc->sdc_cur_DC, in sysdc_compute_pri() 629 kthread_t *t = sdc->sdc_thread; in sysdc_update_pri() 649 kthread_t *t = sdc->sdc_thread; in sysdc_activate() 729 kthread_t *const t = sdc->sdc_thread; in sysdc_update() 838 sysdc_preempt(kthread_t *t) in sysdc_preempt() 847 sysdc_tick(kthread_t *t) in sysdc_tick() 878 sysdc_setrun(kthread_t *t) in sysdc_setrun() 903 sysdc_wakeup(kthread_t *t) in sysdc_wakeup() [all …]
|
H A D | shuttle.c | 47 shuttle_unsleep(kthread_t *t) in shuttle_unsleep() 60 static kthread_t * 68 shuttle_change_pri(kthread_t *t, pri_t p, pri_t *t_prip) in shuttle_change_pri() 85 shuttle_resume(kthread_t *t, kmutex_t *l) in shuttle_resume() 115 DTRACE_SCHED1(wakeup, kthread_t *, t); in shuttle_resume() 215 shuttle_sleep(kthread_t *t) in shuttle_sleep()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | disp.h | 49 kthread_t *dq_first; /* first thread on queue or NULL */ 50 kthread_t *dq_last; /* last thread on queue or NULL */ 139 extern int dispdeq(kthread_t *); 145 extern void setbackdq(kthread_t *); 146 extern void setfrontdq(kthread_t *); 148 extern void swtch_to(kthread_t *); 151 extern void dq_sruninc(kthread_t *); 152 extern void dq_srundec(kthread_t *); 153 extern void cpu_rechoose(kthread_t *); 154 extern void cpu_surrender(kthread_t *); [all …]
|
H A D | class.h | 75 int (*cl_enterclass)(kthread_t *, id_t, void *, cred_t *, void *); 77 int (*cl_canexit)(kthread_t *, cred_t *); 78 int (*cl_fork)(kthread_t *, kthread_t *, void *); 79 void (*cl_forkret)(kthread_t *, kthread_t *); 80 void (*cl_parmsget)(kthread_t *, void *); 81 int (*cl_parmsset)(kthread_t *, void *, id_t, cred_t *); 82 void (*cl_stop)(kthread_t *, int, int); 83 void (*cl_exit)(kthread_t *); 84 void (*cl_active)(kthread_t *); 85 void (*cl_inactive)(kthread_t *); [all …]
|
H A D | proc.h | 76 kthread_t *le_thread; /* the active lwp, NULL if zombie */ 226 kthread_t *p_tlist; /* circular list of threads */ 247 kthread_t *p_agenttp; /* thread ptr for /proc agent lwp */ 615 extern void setrun(kthread_t *); 616 extern void setrun_locked(kthread_t *); 634 extern int fsig(k_sigset_t *, kthread_t *); 641 extern void tsignal(kthread_t *, int); 642 extern void sigtoproc(proc_t *, kthread_t *, int); 645 extern int eat_signal(kthread_t *, int); 646 extern int signal_is_blocked(kthread_t *, int); [all …]
|
H A D | schedctl.h | 92 void schedctl_lwp_cleanup(kthread_t *); 94 int schedctl_get_nopreempt(kthread_t *); 95 void schedctl_set_nopreempt(kthread_t *, short); 96 void schedctl_set_yield(kthread_t *, short); 97 void schedctl_set_cidpri(kthread_t *); 98 int schedctl_sigblock(kthread_t *); 99 void schedctl_finish_sigblock(kthread_t *);
|
H A D | thread.h | 357 } kthread_t; typedef 543 extern kthread_t *threadp(void); /* inline, returns thread pointer */ 573 extern void thread_free_prevent(kthread_t *); 574 extern void thread_free_allow(kthread_t *); 580 extern int thread_change_pri(kthread_t *t, pri_t disp_pri, int front); 581 extern void thread_change_epri(kthread_t *t, pri_t disp_pri); 588 void thread_transition(kthread_t *); /* move to transition lock */ 589 void thread_stop(kthread_t *); /* move to stop lock */ 590 void thread_lock(kthread_t *); /* lock thread and its queue */ 591 void thread_lock_high(kthread_t *); /* lock thread and its queue */ [all …]
|
H A D | pg.h | 66 kthread_t *, kthread_t *); 68 kthread_t *); 192 void pg_ev_thread_swtch(cpu_t *, hrtime_t, kthread_t *, kthread_t *); 193 void pg_ev_thread_remain(cpu_t *, kthread_t *);
|
H A D | waitq.h | 41 kthread_t *wq_first; /* first thread on the queue */ 54 extern int waitq_enqueue(waitq_t *, kthread_t *); 59 extern void waitq_setrun(kthread_t *t); 64 extern void waitq_change_pri(kthread_t *, pri_t);
|
H A D | prsystm.h | 77 extern void prgetlwpstatus(kthread_t *, struct lwpstatus *, zone_t *); 79 extern void prgetlwpsinfo(kthread_t *, struct lwpsinfo *); 93 extern void prlwpexit(kthread_t *); 135 extern void prgetlwpstatus32(kthread_t *, struct lwpstatus32 *, zone_t *); 137 extern void prgetlwpsinfo32(kthread_t *, struct lwpsinfo32 *);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sleepq.c | 98 sleepq_unlink(kthread_t **tpp, kthread_t *tp) in sleepq_unlink() 130 sleepq_insert(sleepq_t *spq, kthread_t *t) in sleepq_insert() 132 kthread_t *next_tp; in sleepq_insert() 133 kthread_t *last_tp; in sleepq_insert() 134 kthread_t **tpp; in sleepq_insert() 170 sleepq_unsleep(kthread_t *t) in sleepq_unsleep() 193 sleepq_dequeue(kthread_t *t) in sleepq_dequeue() 195 kthread_t *nt; in sleepq_dequeue() 196 kthread_t **ptl; in sleepq_dequeue() 217 kthread_t * [all …]
|
H A D | semaphore.c | 52 static void sema_unsleep(kthread_t *t); 53 static void sema_change_pri(kthread_t *t, pri_t pri, pri_t *t_prip); 54 static kthread_t *sema_owner(ksema_t *); 69 kthread_t *tp; \ 70 kthread_t **tpp; \ 118 sema_queue(ksema_t *sp, kthread_t *t) in sema_queue() 120 kthread_t **tpp; in sema_queue() 121 kthread_t *tp; in sema_queue() 143 sema_dequeue(ksema_t *sp, kthread_t *t) in sema_dequeue() 145 kthread_t **tpp; in sema_dequeue() [all …]
|
H A D | waitq.c | 119 waitq_link(waitq_t *wq, kthread_t *t) in waitq_link() 121 kthread_t *next_tp; in waitq_link() 122 kthread_t *last_tp = NULL; in waitq_link() 123 kthread_t **tpp; in waitq_link() 154 waitq_unlink(waitq_t *wq, kthread_t *t) in waitq_unlink() 156 kthread_t *nt; in waitq_unlink() 157 kthread_t **ptl; in waitq_unlink() 203 waitq_enqueue(waitq_t *wq, kthread_t *t) in waitq_enqueue() 231 DTRACE_SCHED1(cpucaps__sleep, kthread_t *, t); in waitq_enqueue() 243 waitq_change_pri(kthread_t *t, pri_t new_pri) in waitq_change_pri() [all …]
|
H A D | turnstile.c | 182 turnstile_pi_inherit(turnstile_t *ts, kthread_t *inheritor, pri_t epri) in turnstile_pi_inherit() 216 turnstile_pi_tsdelete(turnstile_t *ts, kthread_t *inheritor) in turnstile_pi_tsdelete() 242 kthread_t *inheritor = ts->ts_inheritor; in turnstile_pi_waive() 265 kthread_t *inheritor = curthread; in turnstile_pi_recalc() 409 kthread_t *owner; in turnstile_block() 410 kthread_t *t = curthread; in turnstile_block() 658 turnstile_dequeue(kthread_t *t) in turnstile_dequeue() 718 turnstile_wakeup(turnstile_t *ts, int qnum, int nthreads, kthread_t *owner) in turnstile_wakeup() 732 kthread_t *t = sqp->sq_first; in turnstile_wakeup() 735 DTRACE_SCHED1(wakeup, kthread_t *, t); in turnstile_wakeup() [all …]
|
/illumos-gate/usr/src/lib/libfakekernel/common/ |
H A D | thread.c | 29 kthread_t * 35 return ((kthread_t *)(uintptr_t)tid); in _curthread() 44 kthread_t * 106 tsignal(kthread_t *kt, int sig) in tsignal() 115 kthread_t * 124 kthread_t *t; in zthread_create()
|
/illumos-gate/usr/src/lib/libfakekernel/common/sys/ |
H A D | thread.h | 79 typedef struct _kthread kthread_t; typedef 81 extern kthread_t *_curthread(void); /* returns thread pointer */ 96 extern kthread_t *thread_create( 108 extern kthread_t *zthread_create(caddr_t, size_t, void (*)(), void *, size_t,
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lwpsys.c | 46 kthread_t * 63 static kthread_t * 67 kthread_t *t; in idtot_and_lock() 83 kthread_t *t; in syslwp_suspend() 101 kthread_t *t; in syslwp_continue() 118 kthread_t *t; in lwp_kill() 207 kthread_t *t; in lwp_wait() 362 kthread_t *t; in lwp_detach() 397 kthread_t *t; in lwp_unpark() 429 kthread_t *t; in lwp_unpark_cancel() [all …]
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | syscall.c | 141 syscall_entry(kthread_t *t, long *argp) in syscall_entry() 204 syscall_exit(kthread_t *t, long rval1, long rval2) in syscall_exit() 238 kthread_t *t = curthread; in pre_syscall() 427 kthread_t *t = curthread; in post_syscall() 897 kthread_t *t = lwptot(lwp); in get_syscall_args() 990 kthread_t *t = curthread; in save_syscall_args() 1074 kthread_t *t = curthread; in syscall_ap() 1246 kthread_t *t; in set_proc_pre_sys() 1247 kthread_t *first; in set_proc_pre_sys() 1263 kthread_t *t; in set_proc_post_sys() [all …]
|