FreeBSD/sys/dev/usb/usb_process.c
/*------------------------------------------------------------------------*
 *	usb_proc_rewakeup
 *
 * This function is called to re-wakeup the given USB
 * process. This usually happens after that the USB system has been in
 * polling mode, like during a panic. This function must be called
 * having "up->up_mtx" locked.
 *------------------------------------------------------------------------*/
usb_proc_rewakeup
This function is called to re-wakeup the given USB
process. This usually happens after that the USB system has been in
polling mode, like during a panic. This function must be called
having "up->up_mtx" locked.
usb_proc_rewakeup This function is called to re - wakeup the given USB process . This usually happens after that the USB system has been in polling mode like during a panic . This function must be called having " up - > up_mtx " locked .
void
usb_proc_rewakeup(struct usb_process *up)
{
	if (up->up_mtx == NULL)
		return;
	if (up->up_gone)
		return;
	mtx_assert(up->up_mtx, MA_OWNED);
	if (up->up_msleep == 0) {
		cv_signal(&up->up_cv);
	}
}
void usb_proc_rewakeup ( struct usb_process * up ) { if ( up -> up_mtx == NULL ) return ; if ( up -> up_gone ) return ; mtx_assert ( up -> up_mtx , MA_OWNED ) ; if ( up -> up_msleep == 0 ) { cv_signal ( & up -> up_cv ) ; } }
usb_proc_rewakeup
 This function is called to re-wakeup the given USB
 process.
usb_proc_rewakeup This function is called to re - wakeup the given USB process .
/* check if not initialised */ /* check if gone */ /* re-wakeup */