FreeBSD/sys/dev/vnic/nicvf_queues.c
/* Refill RBs as soon as possible without waiting */
Refill RBs as soon as possible without waiting
Refill RBs as soon as possible without waiting
static void
nicvf_rbdr_task_nowait(void *arg, int pending)
{
	struct rbdr *rbdr;
	int err;
	rbdr = (struct rbdr *)arg;
	err = nicvf_refill_rbdr(rbdr, M_NOWAIT);
	if (err != 0) {
		taskqueue_enqueue(taskqueue_thread, &rbdr->rbdr_task);
	}
}
static void nicvf_rbdr_task_nowait ( void * arg , int pending ) { struct rbdr * rbdr ; int err ; rbdr = ( struct rbdr * ) arg ; err = nicvf_refill_rbdr ( rbdr , M_NOWAIT ) ; if ( err != 0 ) { taskqueue_enqueue ( taskqueue_thread , & rbdr -> rbdr_task ) ; } }
Refill RBs as soon as possible without waiting
Refill RBs as soon as possible without waiting
/*
		 * Schedule another, sleepable kernel thread
		 * that will for sure refill the buffers.
		 */