Lines Matching refs:tk
137 task_t *tk; in cfork() local
280 tk = cp->p_task; in cfork()
285 pid_exit(cp, tk); in cfork()
287 task_rele(tk); in cfork()
637 tk = cp->p_task; in cfork()
653 pid_exit(cp, tk); in cfork()
656 task_rele(tk); in cfork()
714 task_t *tk; in forklwp_fail() local
732 tk = p->p_task; in forklwp_fail()
734 tk->tk_nlwps--; in forklwp_fail()
735 tk->tk_proj->kpj_nlwps--; in forklwp_fail()
844 task_t *tk, *tk_old; in newproc() local
853 tk = task_create(0, p->p_zone); in newproc()
854 mutex_enter(&tk->tk_zone->zone_nlwps_lock); in newproc()
855 tk->tk_proj->kpj_ntasks++; in newproc()
856 tk->tk_nprocs++; in newproc()
857 mutex_exit(&tk->tk_zone->zone_nlwps_lock); in newproc()
868 task_begin(tk, p); in newproc()
888 task_t *tk; in newproc() local
892 tk = p->p_task; in newproc()
897 pid_exit(p, tk); in newproc()
899 task_rele(tk); in newproc()