FreeBSD/sys/kern/kern_kthread.c
/*
 * Start a kernel thread.  
 *
 * This function is used to start "internal" daemons and intended
 * to be called from SYSINIT().
 */
Start a kernel thread.
This function is used to start "internal" daemons and intended
to be called from SYSINIT().
Start a kernel thread . This function is used to start " internal " daemons and intended to be called from SYSINIT () .
void
kthread_start(const void *udata)
{
	const struct kthread_desc	*kp = udata;
	int error;
	error = kthread_add((void (*)(void *))kp->func, NULL,
		    NULL, kp->global_threadpp, 0, 0, "%s", kp->arg0);
	if (error)
		panic("kthread_start: %s: error %d", kp->arg0, error);
}
void kthread_start ( const void * udata ) { const struct kthread_desc * kp = udata ; int error ; error = kthread_add ( ( void ( * ) ( void * ) ) kp -> func , NULL , NULL , kp -> global_threadpp , 0 , 0 , " " , kp -> arg0 ) ; if ( error ) panic ( " " , kp -> arg0 , error ) ; }
Start a kernel thread.
Start a kernel thread .