Lines Matching refs:lwpid
67 /* hash function for the lwpid hash table, p->p_tidhash[] */
97 int state, int pri, const k_sigset_t *smask, int cid, id_t lwpid)
289 * Grow the lwp (thread) directory and lwpid hash table if necessary.
296 * The size of the lwpid hash table must be a power of two
299 * the lwpid hash table size is computed as:
597 * If we were given an lwpid then use it, else allocate one.
599 if (lwpid != 0)
600 t->t_tid = lwpid;
610 do { /* avoid lwpid duplication */
714 * and into the lwpid hash table.
1798 forklwp(klwp_t *lwp, proc_t *cp, id_t lwpid)
1823 NULL, 0, cp, TS_STOPPED, t->t_pri, &t->t_hold, NOCLASS, lwpid);
1926 * Add a new lwp entry to the lwp directory and to the lwpid hash table.
1950 * Insert it into the lwpid hash table.
1969 * Remove an lwp from the lwpid hash table and free its directory entry.
1975 lwp_hash_out(proc_t *p, id_t lwpid)
1977 tidhash_t *thp = &p->p_tidhash[TIDHASH(lwpid, p->p_tidhash_sz)];
1986 if (lep->le_lwpid == lwpid) {
2000 * Lookup an lwp in the lwpid hash table by lwpid.
2003 lwp_hash_lookup(proc_t *p, id_t lwpid)
2016 thp = &p->p_tidhash[TIDHASH(lwpid, p->p_tidhash_sz)];
2018 if (ldp->ld_entry->le_lwpid == lwpid)
2030 lwp_hash_lookup_and_lock(proc_t *p, id_t lwpid, kmutex_t **mpp)
2043 thp = &tidhash[TIDHASH(lwpid, tidhash_sz)];
2057 if (ldp->ld_entry->le_lwpid == lwpid) {