FreeBSD/sys/dev/fb/fb.c
/*
 * Generic frame buffer cdev driver functions
 * Frame buffer subdrivers may call these functions to implement common
 * driver functions.
 */
Generic frame buffer cdev driver functions
Frame buffer subdrivers may call these functions to implement common
driver functions.
Generic frame buffer cdev driver functions Frame buffer subdrivers may call these functions to implement common driver functions .
int genfbopen(genfb_softc_t *sc, video_adapter_t *adp, int flag, int mode,
	      struct thread *td)
{
	int s;
	s = spltty();
	if (!(sc->gfb_flags & FB_OPEN))
		sc->gfb_flags |= FB_OPEN;
	splx(s);
	return 0;
}
int genfbopen ( genfb_softc_t * sc , video_adapter_t * adp , int flag , int mode , struct thread * td ) { int s ; s = spltty ( ) ; if ( ! ( sc -> gfb_flags & FB_OPEN ) ) sc -> gfb_flags |= FB_OPEN ; splx ( s ) ; return 0 ; }
Generic frame buffer cdev driver functions
 Frame buffer subdrivers may call these functions to implement common
 driver functions.
Generic frame buffer cdev driver functions Frame buffer subdrivers may call these functions to implement common driver functions .