| /titanic_53/usr/src/uts/common/disp/ |
| H A D | sysclass.c | 61 static int sys_fork(kthread_t *, kthread_t *, void *); 62 static int sys_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 63 static int sys_canexit(kthread_t *, cred_t *); 65 static int sys_donice(kthread_t *, cred_t *, int, int *); 66 static int sys_doprio(kthread_t *, cred_t *, int, int *); 67 static void sys_forkret(kthread_t *, kthread_t *); 69 static pri_t sys_swappri(kthread_t *, int); 141 kthread_t *t; in sys_enterclass() 152 sys_canexit(kthread_t *t, cred_t *reqpcredp) in sys_canexit() 160 kthread_t *t; in sys_fork() [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 | 86 kthread_t *allthreads = &t0; /* circular list of all threads */ 89 kthread_t *thread_deathrow; /* circular list of reapable threads */ 90 kthread_t *lwp_deathrow; /* circular list of reapable threads */ 140 static void stkinfo_begin(kthread_t *); 141 static void stkinfo_end(kthread_t *); 168 kthread_t *tp; in thread_init() 184 thread_cache = kmem_cache_create("thread_cache", sizeof (kthread_t), in thread_init() 200 thread_cache = kmem_cache_create("thread_cache", sizeof (kthread_t), in thread_init() 322 kthread_t * 333 kthread_t *t; in thread_create() [all …]
|
| H A D | fx.c | 175 static int fx_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 177 static int fx_canexit(kthread_t *, cred_t *); 178 static int fx_fork(kthread_t *, kthread_t *, void *); 179 static void fx_forkret(kthread_t *, kthread_t *); 180 static void fx_parmsget(kthread_t *, void *); 181 static int fx_parmsset(kthread_t *, void *, id_t, cred_t *); 182 static void fx_stop(kthread_t *, int, int); 183 static void fx_exit(kthread_t *); 184 static pri_t fx_swapin(kthread_t *, int); 185 static pri_t fx_swapout(kthread_t *, int); [all …]
|
| H A D | disp.c | 101 void disp_swapped_enq(kthread_t *tp); 102 static void disp_swapped_setrun(kthread_t *tp); 114 static void setkpdq(kthread_t *tp, int borf); 152 #define T_DONTSTEAL (kthread_t *)(-1) /* returned by disp_getwork/getbest */ 154 static kthread_t *disp_getwork(cpu_t *to); 155 static kthread_t *disp_getbest(disp_t *from); 156 static kthread_t *disp_ratify(kthread_t *tp, disp_t *kpq); 158 void swtch_to(kthread_t *); 601 kthread_t *t; /* taken thread */ in idle() 678 kthread_t *t = curthread; in preempt() [all …]
|
| H A D | ts.c | 185 static int ts_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 186 static int ts_fork(kthread_t *, kthread_t *, void *); 193 static int ts_parmsset(kthread_t *, void *, id_t, cred_t *); 194 static void ts_exit(kthread_t *); 195 static int ts_donice(kthread_t *, cred_t *, int, int *); 196 static int ts_doprio(kthread_t *, cred_t *, int, int *); 198 static int ts_canexit(kthread_t *, cred_t *); 199 static void ts_forkret(kthread_t *, kthread_t *); 201 static void ts_parmsget(kthread_t *, void *); 202 static void ts_preempt(kthread_t *); [all …]
|
| H A D | fss.c | 359 static void fss_change_priority(kthread_t *, fssproc_t *); 371 static int fss_enterclass(kthread_t *, id_t, void *, cred_t *, void *); 373 static int fss_canexit(kthread_t *, cred_t *); 374 static int fss_fork(kthread_t *, kthread_t *, void *); 375 static void fss_forkret(kthread_t *, kthread_t *); 376 static void fss_parmsget(kthread_t *, void *); 377 static int fss_parmsset(kthread_t *, void *, id_t, cred_t *); 378 static void fss_stop(kthread_t *, int, int); 379 static void fss_exit(kthread_t *); 380 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 | 49 shuttle_unsleep(kthread_t *t) in shuttle_unsleep() 62 static kthread_t * 70 shuttle_change_pri(kthread_t *t, pri_t p, pri_t *t_prip) in shuttle_change_pri() 87 shuttle_resume(kthread_t *t, kmutex_t *l) in shuttle_resume() 117 DTRACE_SCHED1(wakeup, kthread_t *, t); in shuttle_resume() 217 shuttle_sleep(kthread_t *t) in shuttle_sleep()
|
| /titanic_53/usr/src/uts/common/sys/ |
| H A D | disp.h | 47 kthread_t *dq_first; /* first thread on queue or NULL */ 48 kthread_t *dq_last; /* last thread on queue or NULL */ 137 extern int dispdeq(kthread_t *); 143 extern void setbackdq(kthread_t *); 144 extern void setfrontdq(kthread_t *); 146 extern void swtch_to(kthread_t *); 149 extern void dq_sruninc(kthread_t *); 150 extern void dq_srundec(kthread_t *); 151 extern void cpu_rechoose(kthread_t *); 152 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 | 73 kthread_t *le_thread; /* the active lwp, NULL if zombie */ 223 kthread_t *p_tlist; /* circular list of threads */ 244 kthread_t *p_agenttp; /* thread ptr for /proc agent lwp */ 597 extern void setrun(kthread_t *); 598 extern void setrun_locked(kthread_t *); 616 extern int fsig(k_sigset_t *, kthread_t *); 623 extern void tsignal(kthread_t *, int); 624 extern void sigtoproc(proc_t *, kthread_t *, int); 627 extern int eat_signal(kthread_t *, int); 628 extern int signal_is_blocked(kthread_t *, int); [all …]
|
| H A D | schedctl.h | 94 void schedctl_lwp_cleanup(kthread_t *); 96 int schedctl_get_nopreempt(kthread_t *); 97 void schedctl_set_nopreempt(kthread_t *, short); 98 void schedctl_set_yield(kthread_t *, short); 99 void schedctl_set_cidpri(kthread_t *); 100 int schedctl_sigblock(kthread_t *); 101 void schedctl_finish_sigblock(kthread_t *);
|
| H A D | waitq.h | 43 kthread_t *wq_first; /* first thread on the queue */ 56 extern int waitq_enqueue(waitq_t *, kthread_t *); 61 extern void waitq_setrun(kthread_t *t); 66 extern void waitq_change_pri(kthread_t *, pri_t);
|
| 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 | tnf.h | 107 extern void tnf_thread_create(kthread_t *); 108 extern void tnf_thread_queue(kthread_t *, cpu_t *, pri_t); 109 extern void tnf_thread_switch(kthread_t *); 111 extern void tnf_thread_free(kthread_t *);
|
| H A D | prsystm.h | 73 extern void prgetlwpstatus(kthread_t *, struct lwpstatus *, zone_t *); 75 extern void prgetlwpsinfo(kthread_t *, struct lwpsinfo *); 90 extern void prlwpexit(kthread_t *); 132 extern void prgetlwpstatus32(kthread_t *, struct lwpstatus32 *, zone_t *); 134 extern void prgetlwpsinfo32(kthread_t *, struct lwpsinfo32 *);
|
| H A D | thread.h | 346 } kthread_t; typedef 528 extern kthread_t *threadp(void); /* inline, returns thread pointer */ 558 extern void thread_free_prevent(kthread_t *); 559 extern void thread_free_allow(kthread_t *); 565 extern int thread_change_pri(kthread_t *t, pri_t disp_pri, int front); 566 extern void thread_change_epri(kthread_t *t, pri_t disp_pri); 573 void thread_transition(kthread_t *); /* move to transition lock */ 574 void thread_stop(kthread_t *); /* move to stop lock */ 575 void thread_lock(kthread_t *); /* lock thread and its queue */ 576 void thread_lock_high(kthread_t *); /* lock thread and its queue */ [all …]
|
| /titanic_53/usr/src/uts/common/os/ |
| H A D | sleepq.c | 100 sleepq_unlink(kthread_t **tpp, kthread_t *tp) in sleepq_unlink() 132 sleepq_insert(sleepq_t *spq, kthread_t *t) in sleepq_insert() 134 kthread_t *next_tp; in sleepq_insert() 135 kthread_t *last_tp; in sleepq_insert() 136 kthread_t **tpp; in sleepq_insert() 171 sleepq_unsleep(kthread_t *t) in sleepq_unsleep() 194 sleepq_dequeue(kthread_t *t) in sleepq_dequeue() 196 kthread_t *nt; in sleepq_dequeue() 197 kthread_t **ptl; in sleepq_dequeue() 218 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; 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 …]
|
| H A D | schedctl.c | 85 static void schedctl_fork(kthread_t *, kthread_t *); 101 kthread_t *t = curthread; in schedctl() 135 schedctl_lwp_cleanup(kthread_t *t) in schedctl_lwp_cleanup() 232 schedctl_fork(kthread_t *pt, kthread_t *ct) in schedctl_fork() 260 schedctl_get_nopreempt(kthread_t *t) in schedctl_get_nopreempt() 272 schedctl_set_nopreempt(kthread_t *t, short val) in schedctl_set_nopreempt() 287 schedctl_set_yield(kthread_t *t, short val) in schedctl_set_yield() 300 schedctl_set_cidpri(kthread_t *t) in schedctl_set_cidpri() 319 schedctl_sigblock(kthread_t *t) in schedctl_sigblock() 338 schedctl_finish_sigblock(kthread_t *t) in schedctl_finish_sigblock()
|
| /titanic_53/usr/src/lib/libfakekernel/common/ |
| H A D | thread.c | 26 kthread_t * 32 return ((kthread_t *)(uintptr_t)tid); in _curthread() 41 kthread_t * 95 tsignal(kthread_t *kt, int sig) in tsignal() 104 kthread_t * 113 kthread_t *t; in zthread_create()
|
| /titanic_53/usr/src/lib/libfakekernel/common/sys/ |
| H A D | thread.h | 78 typedef struct _kthread kthread_t; typedef 80 extern kthread_t *_curthread(void); /* returns thread pointer */ 94 extern kthread_t *thread_create( 106 extern kthread_t *zthread_create(caddr_t, size_t, void (*)(), void *, size_t,
|