Lines Matching refs:elm
246 plwp_t *elm = Zalloc(sizeof (plwp_t));
249 elm->l_pid = pid;
250 elm->l_lwpid = lwpid;
251 elm->l_lwp = lwp;
252 elm->l_next = plwp_tbl[hash]; /* add in front of chain */
253 plwp_tbl[hash] = elm;
259 plwp_t *elm, *elm_prev;
262 elm = plwp_tbl[hash];
265 while (elm) {
266 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid)) {
268 plwp_tbl[hash] = elm->l_next;
270 elm_prev->l_next = elm->l_next;
271 free(elm);
274 elm_prev = elm;
275 elm = elm->l_next;
283 plwp_t *elm = plwp_tbl[pid % PLWP_TBL_SZ];
284 while (elm) {
285 if ((elm->l_pid == pid) && (elm->l_lwpid == lwpid))
286 return (elm);
288 elm = elm->l_next;
296 plwp_t *elm = lwpid_getptr(pid, lwpid);
297 if (elm)
298 return (elm->l_lwp);
306 plwp_t *elm;
307 elm = plwp_tbl[pid % PLWP_TBL_SZ];
308 while (elm) {
309 if (elm->l_pid == pid)
312 elm = elm->l_next;
320 plwp_t *elm = lwpid_getptr(pid, lwpid);
321 if (elm)
322 return (elm->l_active);
330 plwp_t *elm = lwpid_getptr(pid, lwpid);
331 if (elm)
332 elm->l_active = LWP_ACTIVE;