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

Function kthread_start

freebsd/kern/kern_kthread.c:241–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 */
240
241void
242kthread_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

Callers

nothing calls this directly

Calls 2

kthread_addFunction · 0.70
panicFunction · 0.70

Tested by

no test coverage detected