FreeBSD/sys/dev/vkbd/vkbd.c
/* Check if we have data in the input queue */
Check if we have data in the input queue
Check if we have data in the input queue
static int
vkbd_data_ready(vkbd_state_t *state)
{
	VKBD_LOCK_ASSERT(state, MA_OWNED);
	return (state->ks_inq.cc > 0);
}
static int vkbd_data_ready ( vkbd_state_t * state ) { VKBD_LOCK_ASSERT ( state , MA_OWNED ) ; return ( state -> ks_inq . cc > 0 ) ; }
Check if we have data in the input queue
Check if we have data in the input queue