short form device open routine
() function opens a device using a
“short form” name or
UID (DUID). For
instance “sd0” or “sd0c” will be expanded to
on most architectures.
Device name lookup is done by first checking
for a ‘/’ and if one is
found attempting to open that file. If not,
is checked to see if it is a valid DUID.
If it is, the corresponding device is obtained via
has no ‘/’ and is not a
is searched for a matching device.
are the same as the
are specified by OR'ing the
OPENDEV_PART attempt to open the raw partition during expansion
OPENDEV_BLCK open the block device (default is character device)
, it is modified to point at the fully
expanded device name.
() return value and errors are the
same as the return value and errors of
() function first appeared in
, on return it will point to internal
static storage space that will be overwritten by subsequent calls.