BIO(4) | Device Drivers Manual | BIO(4) |
bio
— block I/O
ioctl tunnel pseudo-device
pseudo-device bio
[count]
The bio
driver provides userland
applications ioctl(2) access
to devices otherwise not found as /dev nodes. The
/dev/bio device node operates by delegating ioctl
calls to a requested device driver. Only drivers which have registered with
the bio
device can be accessed via this
interface.
If count is given in the specification, and
is greater than 0, a maximum of one bio
device is
created.
The following device drivers register with
bio
for volume management:
The following device drivers register with
bio
to provide enclosure management:
The following ioctl calls apply to the bio
device:
BIOCLOCATE
struct bio_locate *BIOCINQ
struct bioc_inq *BIOCDISK
struct bioc_disk *BIOCVOL
struct bioc_vol *BIOCALARM
struct bioc_alarm *Note: These options might not be supported on all hardware.
BIOCBLINK
struct bioc_blink *Note: This option is only supported if the disk is governed by ses(4) or safte(4) and the hardware supports hardware blinking.
BIOCSETSTATE
struct bioc_setstate *The following ioctl calls apply to the bio
device only when talking to a
softraid(4) device:
BIOCCREATERAID
struct bioc_createraid *BIOCDELETERAID
struct bioc_deleteraid *BIOCDISCIPLINE
struct bioc_discipline *BIOCINSTALLBOOT
struct bioc_installboot *The bio
driver first appeared in
OpenBSD 3.2.
The bio
driver was written by
Niklas Hallqvist
<niklas@openbsd.org>.
The API was written by Marco Peereboom
<marco@openbsd.org>.
November 26, 2016 | OpenBSD-6.5 |