FreeBSD/sys/boot/userboot/userboot/devicename.c
/*
 * Set currdev to suit the value being supplied in (value)
 */
Set currdev to suit the value being supplied in (value)
Set currdev to suit the value being supplied in ( value )
int
userboot_setcurrdev(struct env_var *ev, int flags, const void *value)
{
    struct disk_devdesc	*ncurr;
    int			rv;
    if ((rv = userboot_parsedev(&ncurr, value, NULL)) != 0)
	return(rv);
    free(ncurr);
    env_setenv(ev->ev_name, flags | EV_NOHOOK, value, NULL, NULL);
    return(0);
}
int userboot_setcurrdev ( struct env_var * ev , int flags , const void * value ) { struct disk_devdesc * ncurr ; int rv ; if ( ( rv = userboot_parsedev ( & ncurr , value , NULL ) ) != 0 ) return ( rv ) ; free ( ncurr ) ; env_setenv ( ev -> ev_name , flags | EV_NOHOOK , value , NULL , NULL ) ; return ( 0 ) ; }
Set currdev to suit the value being supplied in (value)
Set currdev to suit the value being supplied in ( value )