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

Function kproc_start

freebsd/kern/kern_kthread.c:61–71  ·  view source on GitHub ↗

* Start a kernel process. This is called after a fork() call in * mi_startup() in the file kern/init_main.c. * * This function is used to start "internal" daemons and intended * to be called from SYSINIT(). */

Source from the content-addressed store, hash-verified

59 * to be called from SYSINIT().
60 */
61void
62kproc_start(const void *udata)
63{
64 const struct kproc_desc *kp = udata;
65 int error;
66
67 error = kproc_create((void (*)(void *))kp->func, NULL,
68 kp->global_procpp, 0, 0, "%s", kp->arg0);
69 if (error)
70 panic("kproc_start: %s: error %d", kp->arg0, error);
71}
72
73/*
74 * Create a kernel process/thread/whatever. It shares its address space

Callers 1

racctd_initFunction · 0.85

Calls 2

kproc_createFunction · 0.85
panicFunction · 0.70

Tested by

no test coverage detected