FreeBSD/sys/dev/fb/fb.c
/* Get video I/O function table */
Get video I/O function table
Get video I / O function table
video_switch_t
*vid_get_switch(char *name)
{
	const video_driver_t **list;
	const video_driver_t *p;
	SET_FOREACH(list, videodriver_set) {
		p = *list;
		if (strcmp(p->name, name) == 0)
			return p->vidsw;
	}
	return NULL;
}
video_switch_t * vid_get_switch ( char * name ) { const video_driver_t * * list ; const video_driver_t * p ; SET_FOREACH ( list , videodriver_set ) { p = * list ; if ( strcmp ( p -> name , name ) == 0 ) return p -> vidsw ; } return NULL ; }
Get video I/O function table
Get video I / O function table