FreeBSD/sys/kern/kern_ktrace.c
/*
 * Some trace generation environments don't permit direct access to VFS,
 * such as during a context switch where sleeping is not allowed.  Under these
 * circumstances, queue a request to the thread to be written asynchronously
 * later.
 */
Some trace generation environments don't permit direct access to VFS,
such as during a context switch where sleeping is not allowed.  Under these
circumstances, queue a request to the thread to be written asynchronously
later.
Some trace generation environments don ' t permit direct access to VFS such as during a context switch where sleeping is not allowed . Under these circumstances queue a request to the thread to be written asynchronously later .
static void
ktr_enqueuerequest(struct thread *td, struct ktr_request *req)
{
	mtx_lock(&ktrace_mtx);
	STAILQ_INSERT_TAIL(&td->td_proc->p_ktr, req, ktr_list);
	mtx_unlock(&ktrace_mtx);
}
static void ktr_enqueuerequest ( struct thread * td , struct ktr_request * req ) { mtx_lock ( & ktrace_mtx ) ; STAILQ_INSERT_TAIL ( & td -> td_proc -> p_ktr , req , ktr_list ) ; mtx_unlock ( & ktrace_mtx ) ; }
Some trace generation environments don't permit direct access to VFS,
 such as during a context switch where sleeping is not allowed.
Some trace generation environments don ' t permit direct access to VFS such as during a context switch where sleeping is not allowed .