Lines Matching refs:task0p
986 task0p = kmem_cache_alloc(task_cache, KM_SLEEP); in task_init()
987 bzero(task0p, sizeof (task_t)); in task_init()
989 task0p->tk_tkid = id_alloc(taskid_space); in task_init()
990 task0p->tk_usage = kmem_zalloc(sizeof (task_usage_t), KM_SLEEP); in task_init()
991 task0p->tk_inherited = kmem_zalloc(sizeof (task_usage_t), KM_SLEEP); in task_init()
992 task0p->tk_proj = project_hold_by_id(0, &zone0, in task_init()
994 task0p->tk_flags = TASK_NORMAL; in task_init()
995 task0p->tk_nlwps = p->p_lwpcnt; in task_init()
996 task0p->tk_nprocs = 1; in task_init()
997 task0p->tk_zone = global_zone; in task_init()
998 task0p->tk_commit_next = NULL; in task_init()
1003 e.rcep_p.task = task0p; in task_init()
1005 task0p->tk_rctls = rctl_set_init(RCENTITY_TASK, curproc, &e, set, gp); in task_init()
1011 ASSERT(task_find(task0p->tk_tkid, GLOBAL_ZONEID) == NULL); in task_init()
1013 (mod_hash_key_t)(uintptr_t)task0p->tk_tkid, in task_init()
1014 (mod_hash_val_t *)task0p, hndl) != 0) { in task_init()
1016 panic("unable to insert task %d(%p)", task0p->tk_tkid, in task_init()
1017 (void *)task0p); in task_init()
1021 task0p->tk_memb_list = p; in task_init()
1023 task0p->tk_nprocs_kstat = task_kstat_create(task0p, task0p->tk_zone); in task_init()
1029 p->p_task = task0p; in task_init()
1031 task_hold(task0p); in task_init()