* 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(). */
| 59 | * to be called from SYSINIT(). |
| 60 | */ |
| 61 | void |
| 62 | kproc_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 |
no test coverage detected