FreeBSD/sys/dev/gpio/gpiokeys.c
/*
 * Enable the access to the device; until this function is called,
 * the client cannot read from the keyboard.
 */
Enable the access to the device; until this function is called,
the client cannot read from the keyboard.
Enable the access to the device ; until this function is called the client cannot read from the keyboard .
static int
gpiokeys_enable(keyboard_t *kbd)
{
	struct gpiokeys_softc *sc;
	sc = kbd->kb_data;
	GPIOKEYS_LOCK(sc);
	KBD_ACTIVATE(kbd);
	GPIOKEYS_UNLOCK(sc);
	return (0);
}
static int gpiokeys_enable ( keyboard_t * kbd ) { struct gpiokeys_softc * sc ; sc = kbd -> kb_data ; GPIOKEYS_LOCK ( sc ) ; KBD_ACTIVATE ( kbd ) ; GPIOKEYS_UNLOCK ( sc ) ; return ( 0 ) ; }
Enable the access to the device; until this function is called,
 the client cannot read from the keyboard.
Enable the access to the device ; until this function is called the client cannot read from the keyboard .