Searched defs:lwp (Results 1 - 25 of 112) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/syscall/
H A Dyield.c51 klwp_t *lwp = ttolwp(t); local
54 lwp->lwp_ru.nvcsw++;
H A Dlwp_info.c52 klwp_t *lwp = ttolwp(curthread); local
54 hrutime = lwp->lwp_mstate.ms_acct[LMS_USER];
55 hrstime = lwp->lwp_mstate.ms_acct[LMS_SYSTEM] +
56 lwp->lwp_mstate.ms_acct[LMS_TRAP];
H A Dsigaltstack.c46 klwp_t *lwp = ttolwp(curthread); local
54 if (lwp->lwp_sigaltstack.ss_flags & SS_ONSTACK)
65 if (copyout(&lwp->lwp_sigaltstack,
71 lwp->lwp_sigaltstack = ss;
80 klwp_t *lwp = ttolwp(curthread); local
89 if (lwp->lwp_sigaltstack.ss_flags & SS_ONSTACK)
103 ss = &lwp->lwp_sigaltstack;
113 ss = &lwp->lwp_sigaltstack;
H A Dlwp_create.c49 * System call to create an lwp.
53 * A detached lwp (LWP_DETACHED) cannot be the specific target of
56 * returning EDEADLK because a detached lwp might create a non-detached lwp
59 * A daemon lwp (LWP_DAEMON) is a detached lwp that has the additional
61 * process: The last non-daemon lwp to call lwp_exit() causes the process
68 klwp_t *lwp; local
84 * lwp_create() is disallowed for the /proc agent lwp.
120 * Tell machine specific code that we are creating a new lwp
[all...]
H A Drusagesys.c44 klwp_t *lwp; local
70 lwp = ttolwp(t);
72 r.ru_majflt += lwp->lwp_ru.majflt;
73 r.ru_minflt += lwp->lwp_ru.minflt;
74 r.ru_nswap += lwp->lwp_ru.nswap;
75 r.ru_inblock += lwp->lwp_ru.inblock;
76 r.ru_oublock += lwp->lwp_ru.oublock;
77 r.ru_msgsnd += lwp->lwp_ru.msgsnd;
78 r.ru_msgrcv += lwp->lwp_ru.msgrcv;
79 r.ru_nsignals += lwp
189 klwp_t *lwp; local
[all...]
H A Dsigtimedwait.c98 klwp_t *lwp = ttolwp(t); local
172 if (lwp->lwp_cursig == 0 ||
173 !sigismember(&t->t_sigwait, lwp->lwp_cursig)) {
184 if (lwp->lwp_curinfo)
185 infop = &lwp->lwp_curinfo->sq_info;
189 infop->si_signo = lwp->lwp_cursig;
193 lwp->lwp_ru.nsignals++;
194 ret = lwp->lwp_cursig;
196 lwp->lwp_cursig = 0;
197 lwp
[all...]
H A Dsignotify.c145 /* another lwp allocated the pool, free ours */
232 klwp_t *lwp = ttolwp(t); local
267 if (lwp->lwp_cursig || lwp->lwp_curinfo) {
272 lwp->lwp_cursig = sig;
273 lwp->lwp_curinfo = sqp;
H A Dstrcalls.c198 klwp_t *lwp = ttolwp(curthread); local
253 if (lwp != NULL)
254 lwp->lwp_ru.msgrcv++;
281 if (error == 0 && lwp != NULL)
282 lwp->lwp_ru.msgsnd++;
428 klwp_t *lwp = ttolwp(curthread); local
491 if (lwp != NULL)
492 lwp->lwp_ru.msgrcv++;
532 if (error == 0 && lwp != NULL)
533 lwp
[all...]
/illumos-gate/usr/src/cmd/mdb/intel/modules/genunix/
H A Dgcore_isadep.c29 gcore_prfetchinstr(mdb_klwp_t *lwp, ulong_t *ip) argument
31 *ip = (ulong_t)(instr_t)lwp->lwp_pcb.pcb_instr;
32 return (lwp->lwp_pcb.pcb_flags & INSTR_VALID);
36 gcore_prisstep(mdb_klwp_t *lwp) argument
38 return ((lwp->lwp_pcb.pcb_flags &
43 gcore_getgregs(mdb_klwp_t *lwp, gregset_t grp) argument
48 if (mdb_vread(&rgs, sizeof (rgs), lwp->lwp_regs) != sizeof (rgs)) {
49 mdb_warn("Failed to read regs from %p\n", lwp->lwp_regs);
55 struct pcb *pcb = &lwp->lwp_pcb;
98 gcore_prgetrvals(mdb_klwp_t *lwp, lon argument
[all...]
/illumos-gate/usr/src/cmd/mdb/sparc/modules/genunix/
H A Dgcore_isadep.c33 gcore_prfetchinstr(mdb_klwp_t *lwp, ulong_t *ip) argument
40 gcore_prisstep(mdb_klwp_t *lwp) argument
47 gcore_getgregs(mdb_klwp_t *lwp, gregset_t grp) argument
53 gcore_prgetrvals(mdb_klwp_t *lwp, long *rval1, long *rval2) argument
/illumos-gate/usr/src/uts/common/disp/
H A Dshuttle.c89 klwp_t *lwp = ttolwp(curthread); local
95 if (lwp != NULL) {
96 lwp->lwp_asleep = 1; /* /proc */
97 lwp->lwp_sysabort = 0; /* /proc */
98 lwp->lwp_ru.nvcsw++;
164 if (lwp && (ISSIG(curthread, JUSTLOOKING) ||
171 * and clear lwp->lwp_asleep/lwp->lwp_sysabort
183 klwp_t *lwp = ttolwp(curthread); local
187 lwp
219 klwp_t *lwp = ttolwp(t); local
[all...]
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_rwlock.c81 klwp_t *lwp = ttolwp(curthread); local
83 if (lwp != NULL)
84 lwp->lwp_nostop++;
86 if (lwp != NULL)
87 lwp->lwp_nostop--;
91 if (lwp != NULL)
92 lwp->lwp_nostop--;
116 klwp_t *lwp = ttolwp(curthread); local
118 if (lwp != NULL)
119 lwp
[all...]
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kspoll.c87 klwp_t *lwp = ttolwp(curthread); local
107 * Indicate that the lwp is not to be stopped while doing
111 if (lwp != NULL)
112 lwp->lwp_nostop++;
121 if (lwp != NULL)
122 lwp->lwp_nostop--;
/illumos-gate/usr/src/uts/sparc/os/
H A Dsundep.c195 * Return the datamodel of the given lwp.
198 lwp_getdatamodel(klwp_t *lwp) argument
200 return (lwp->lwp_procp->p_model);
/illumos-gate/usr/src/uts/intel/ia32/syscall/
H A Dlwp_private.c35 #include <sys/lwp.h>
41 lwp_setprivate(klwp_t *lwp, int which, uintptr_t base) argument
43 pcb_t *pcb = &lwp->lwp_pcb;
44 struct regs *rp = lwptoregs(lwp);
45 kthread_t *t = lwptot(lwp);
56 * descriptors that are virtualized to the lwp. That allows 32-bit
68 * virtualized to the lwp. However the descriptor base is forced
87 if (lwp_getdatamodel(lwp) == DATAMODEL_NATIVE) {
102 if (lwp_getdatamodel(lwp) == DATAMODEL_NATIVE) {
125 * descriptors that are virtualized to the lwp
158 lwp_getprivate(klwp_t *lwp, int which, uintptr_t base) argument
262 klwp_t *lwp = ttolwp(curthread); local
[all...]
H A Dgetcontext.c57 klwp_t *lwp = ttolwp(curthread); local
58 struct regs *rp = lwptoregs(lwp);
69 ucp->uc_link = (struct ucontext *)lwp->lwp_oldcontext;
77 if (lwp->lwp_ustack == NULL ||
78 copyin((void *)lwp->lwp_ustack, &ucp->uc_stack,
82 if (lwp->lwp_sigaltstack.ss_flags == SS_ONSTACK) {
83 ucp->uc_stack = lwp->lwp_sigaltstack;
95 if ((rp->r_ps & PS_T) || (lwp->lwp_pcb.pcb_flags & REQUEST_STEP)) {
102 if (!(lwp->lwp_pcb.pcb_flags & REQUEST_NOSTEP)) {
103 lwp
138 klwp_t *lwp = ttolwp(t); local
185 klwp_t *lwp = ttolwp(curthread); local
260 klwp_t *lwp = ttolwp(curthread); local
323 klwp_t *lwp = ttolwp(curthread); local
[all...]
/illumos-gate/usr/src/uts/common/exec/elf/
H A Dold_notes.c119 klwp_t *lwp; local
162 lwp = ttolwp(t);
177 oldsig = lwp->lwp_cursig;
178 lwp->lwp_cursig = (uchar_t)sig;
185 lwp->lwp_cursig = oldsig;
198 prgetprfpregs(lwp, &bigwad->fpregs);
211 size_t size = prnwindows(lwp);
217 prgetwindows(lwp, &bigwad->gwindows);
228 prgetprxregs(lwp, bigwad->xregs);
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_start.c128 klwp_t *lwp)
123 audit_start( unsigned type, unsigned scid, uint32_t audit_state, int error, klwp_t *lwp) argument
/illumos-gate/usr/src/uts/common/io/1394/targets/dcam1394/
H A Ddcam_ring_buff.c259 size_t lrp, lwp; /* linear read, write positions */ local
306 lwp = ring_buff_p->num_buffs +
309 if (lrp < lwp) {
/illumos-gate/usr/src/uts/sparc/v9/os/
H A Dxregs.c54 xregs_clrptr(klwp_id_t lwp, ucontext_t *uc) argument
66 xregs_hasptr(klwp_id_t lwp, ucontext_t *uc) argument
76 xregs_getptr(klwp_id_t lwp, ucontext_t *uc) argument
88 xregs_setptr(klwp_id_t lwp, ucontext_t *uc, caddr_t xrp) argument
98 xregs_clrptr32(klwp_id_t lwp, ucontext32_t *uc) argument
106 xregs_hasptr32(klwp_id_t lwp, ucontext32_t *uc) argument
113 xregs_getptr32(klwp_id_t lwp, ucontext32_t *uc) argument
122 xregs_setptr32(klwp_id_t lwp, ucontext32_t *uc, caddr32_t xrp) argument
132 * NOTE: 'lwp' might not correspond to 'curthread' in any of the
134 * or set the extra registers of another lwp
150 xregs_getgregs(klwp_id_t lwp, caddr_t xrp) argument
188 xregs_getfpregs(klwp_id_t lwp, caddr_t xrp) argument
243 xregs_get(klwp_id_t lwp, caddr_t xrp) argument
257 xregs_setgregs(klwp_id_t lwp, caddr_t xrp) argument
323 xregs_setfpregs(klwp_id_t lwp, caddr_t xrp) argument
384 xregs_set(klwp_id_t lwp, caddr_t xrp) argument
[all...]
/illumos-gate/usr/src/cmd/prstat/
H A Dprsort.c60 get_cpu_from_psinfo(void *lwp) argument
63 FRC2PCT((((lwp_info_t *)lwp)->li_info.pr_lwp.pr_pctcpu)*1000));
67 get_cpu_from_usage(void *lwp) argument
69 lwp_info_t *p = (lwp_info_t *)lwp;
78 get_time(void *lwp) argument
80 return ((ulong_t)TIME2SEC(((lwp_info_t *)lwp)->li_info.pr_lwp.pr_time));
84 get_size(void *lwp) argument
86 return ((ulong_t)((lwp_info_t *)lwp)->li_info.pr_size);
90 get_rssize(void *lwp) argument
92 return ((ulong_t)((lwp_info_t *)lwp)
96 get_pri(void *lwp) argument
218 lwp_info_t *lwp = list->l_head; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/lofs/
H A Dlofs.c46 lnode_walk_t *lwp; local
61 lwp = mdb_alloc(sizeof (lnode_walk_t), UM_SLEEP);
64 lwp->lw_tabsz = 0;
67 mdb_free(lwp, sizeof (lnode_walk_t));
80 lwp->lw_tabsz += loinfo.li_htsize;
84 if (lwp->lw_tabsz == 0) {
88 mdb_free(lwp, sizeof (lnode_walk_t));
91 lwp->lw_table = mdb_alloc(lwp->lw_tabsz *
104 if (htsize + loinfo.li_htsize > lwp
155 lnode_walk_t *lwp = wsp->walk_data; local
184 lnode_walk_t *lwp = wsp->walk_data; local
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dmain.c107 * Process 0's lwp directory and lwpid hash table.
159 klwp_t *lwp = ttolwp(curthread); local
257 lwp->lwp_ap = lwp->lwp_arg;
258 lwp->lwp_arg[0] = (uintptr_t)exec_fnamep;
259 lwp->lwp_arg[1] = (uintptr_t)uap;
260 lwp->lwp_arg[2] = NULL;
534 * Initialize process 0's lwp directory and lwpid hash table.
H A Drctl_proc.c124 klwp_t *lwp = ttolwp(curthread); local
135 * we copyin() the lwp's ustack, and compare it to the rlimit we
148 if (lwp != NULL && lwp->lwp_procp == e->rcep_p.proc &&
149 lwp->lwp_ustack && lwp->lwp_old_stk_ctl == 0) {
150 lwp->lwp_old_stk_ctl = (size_t)e->rcep_p.proc->p_stk_ctl;
H A Dsemaphore.c70 klwp_t *lwp = ttolwp(curthread); \
82 if (lwp != NULL) { \
83 lwp->lwp_ru.nvcsw++; \
257 klwp_t *lwp = ttolwp(t); local
263 if (lwp == NULL) {
278 lwp->lwp_asleep = 1;
279 lwp->lwp_sysabort = 0;
285 if (ISSIG(t, FORREAL) || lwp->lwp_sysabort ||
288 lwp->lwp_asleep = 0;
289 lwp
[all...]

Completed in 134 milliseconds

12345