MCPcopy Create free account
hub / github.com/F-Stack/f-stack / proc_linkup

Function proc_linkup

freebsd/kern/kern_thread.c:466–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466void
467proc_linkup(struct proc *p, struct thread *td)
468{
469
470 sigqueue_init(&p->p_sigqueue, p);
471 p->p_ksi = ksiginfo_alloc(1);
472 if (p->p_ksi != NULL) {
473 /* XXX p_ksi may be null if ksiginfo zone is not ready */
474 p->p_ksi->ksi_flags = KSI_EXT | KSI_INS;
475 }
476 LIST_INIT(&p->p_mqnotifier);
477 p->p_numthreads = 0;
478 thread_link(td, p);
479}
480
481extern int max_threads_per_proc;
482

Callers 2

fork1Function · 0.85
proc_linkup0Function · 0.85

Calls 3

sigqueue_initFunction · 0.85
ksiginfo_allocFunction · 0.85
thread_linkFunction · 0.85

Tested by

no test coverage detected