| 239 | */ |
| 240 | |
| 241 | void |
| 242 | kthread_start(const void *udata) |
| 243 | { |
| 244 | const struct kthread_desc *kp = udata; |
| 245 | int error; |
| 246 | |
| 247 | error = kthread_add((void (*)(void *))kp->func, NULL, |
| 248 | NULL, kp->global_threadpp, 0, 0, "%s", kp->arg0); |
| 249 | if (error) |
| 250 | panic("kthread_start: %s: error %d", kp->arg0, error); |
| 251 | } |
| 252 | |
| 253 | /* |
| 254 | * Create a kernel thread. It shares its address space |
nothing calls this directly
no test coverage detected