Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/init_main.c
Show First 20 Lines • Show All 518 Lines • ▼ Show 20 Lines | proc0_init(void *dummy __unused) | ||||
LIST_INIT(&p->p_reaplist); | LIST_INIT(&p->p_reaplist); | ||||
strncpy(p->p_comm, "kernel", sizeof (p->p_comm)); | strncpy(p->p_comm, "kernel", sizeof (p->p_comm)); | ||||
strncpy(td->td_name, "swapper", sizeof (td->td_name)); | strncpy(td->td_name, "swapper", sizeof (td->td_name)); | ||||
callout_init_mtx(&p->p_itcallout, &p->p_mtx, 0); | callout_init_mtx(&p->p_itcallout, &p->p_mtx, 0); | ||||
callout_init_mtx(&p->p_limco, &p->p_mtx, 0); | callout_init_mtx(&p->p_limco, &p->p_mtx, 0); | ||||
callout_init(&td->td_slpcallout, 1); | callout_init(&td->td_slpcallout, 1); | ||||
TAILQ_INIT(&p->p_kqtim_stop); | |||||
/* Create credentials. */ | /* Create credentials. */ | ||||
newcred = crget(); | newcred = crget(); | ||||
newcred->cr_ngroups = 1; /* group 0 */ | newcred->cr_ngroups = 1; /* group 0 */ | ||||
/* A hack to prevent uifind from tripping over NULL pointers. */ | /* A hack to prevent uifind from tripping over NULL pointers. */ | ||||
curthread->td_ucred = newcred; | curthread->td_ucred = newcred; | ||||
tmpuinfo.ui_uid = 1; | tmpuinfo.ui_uid = 1; | ||||
newcred->cr_uidinfo = newcred->cr_ruidinfo = &tmpuinfo; | newcred->cr_uidinfo = newcred->cr_ruidinfo = &tmpuinfo; | ||||
▲ Show 20 Lines • Show All 360 Lines • Show Last 20 Lines |