FreeBSD/sys/kern/subr_kdb.c
/*
 * Set/change the current backend.
 */
Set/change the current backend.
Set / change the current backend .
int
kdb_dbbe_select(const char *name)
{
	struct kdb_dbbe *be, **iter;
	SET_FOREACH(iter, kdb_dbbe_set) {
		be = *iter;
		if (be->dbbe_active == 0 && strcmp(be->dbbe_name, name) == 0) {
			kdb_dbbe = be;
			return (0);
		}
	}
	return (EINVAL);
}
int kdb_dbbe_select ( const char * name ) { struct kdb_dbbe * be , * * iter ; SET_FOREACH ( iter , kdb_dbbe_set ) { be = * iter ; if ( be -> dbbe_active == 0 && strcmp ( be -> dbbe_name , name ) == 0 ) { kdb_dbbe = be ; return ( 0 ) ; } } return ( EINVAL ) ; }
Set/change the current backend.
Set / change the current backend .