Lines Matching refs:lwp
55 lwp_info_t *lwp = list_next(&core->core_lwp_head); in getlwpcore() local
58 for (i = 0; i < core->core_nlwp; i++, lwp = list_next(lwp)) { in getlwpcore()
59 if (lwp->lwp_id == lwpid) in getlwpcore()
60 return (lwp); in getlwpcore()
99 lwp_info_t *lwp; in getlwpstatus() local
123 if (P->data != NULL && (lwp = getlwpcore(P, lwpid)) != NULL) { in getlwpstatus()
124 (void) memcpy(lps, &lwp->lwp_status, sizeof (lwpstatus_t)); in getlwpstatus()
230 lwp_info_t *lwp; in Plwp_getxregs() local
247 if ((lwp = getlwpcore(P, lwpid)) != NULL && lwp->lwp_xregs != NULL) { in Plwp_getxregs()
248 (void) memcpy(xregs, lwp->lwp_xregs, sizeof (prxregset_t)); in Plwp_getxregs()
252 if (lwp != NULL) in Plwp_getxregs()
266 lwp_info_t *lwp; in Plwp_getgwindows() local
283 if ((lwp = getlwpcore(P, lwpid)) != NULL && lwp->lwp_gwins != NULL) { in Plwp_getgwindows()
284 *gwins = *lwp->lwp_gwins; in Plwp_getgwindows()
288 if (lwp != NULL) in Plwp_getgwindows()
297 lwp_info_t *lwp; in Plwp_getasrs() local
313 if ((lwp = getlwpcore(P, lwpid)) != NULL && lwp->lwp_asrs != NULL) { in Plwp_getasrs()
314 (void) memcpy(asrs, lwp->lwp_asrs, sizeof (asrset_t)); in Plwp_getasrs()
318 if (lwp != NULL) in Plwp_getasrs()
335 lwp_info_t *lwp; in Plwp_getpsinfo() local
347 if ((lwp = getlwpcore(P, lwpid)) != NULL) { in Plwp_getpsinfo()
348 (void) memcpy(lps, &lwp->lwp_psinfo, sizeof (lwpsinfo_t)); in Plwp_getpsinfo()
404 lwp_info_t *lwp; in Plwp_stack() local
405 if ((lwp = getlwpcore(P, lwpid)) == NULL) in Plwp_stack()
407 addr = lwp->lwp_status.pr_ustack; in Plwp_stack()
443 lwp_info_t *lwp; in Plwp_main_stack() local
444 if ((lwp = getlwpcore(P, lwpid)) == NULL) in Plwp_main_stack()
446 ls = lwp->lwp_status; in Plwp_main_stack()
523 lwp_info_t *lwp; in Plwp_alt_stack() local
525 if ((lwp = getlwpcore(P, lwpid)) == NULL) in Plwp_alt_stack()
528 if (lwp->lwp_status.pr_altstack.ss_flags & SS_DISABLE) { in Plwp_alt_stack()
533 *stkp = lwp->lwp_status.pr_altstack; in Plwp_alt_stack()