summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2014-06-28 06:34:23 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2014-06-28 06:34:23 +0000
commitf4e873bd79bfab8de3ee9fb2f81f9d343a149930 (patch)
tree33f2098dfc914b20deb9a8ad61ab87530e9addc0
parent692fe766fdac01dfff16264b3a903414420cd195 (diff)
Add argument types for bio(4) ioctl() commands
-rw-r--r--share/man/man4/bio.430
1 files changed, 16 insertions, 14 deletions
diff --git a/share/man/man4/bio.4 b/share/man/man4/bio.4
index 76e30969dbd..d5ef954a4b6 100644
--- a/share/man/man4/bio.4
+++ b/share/man/man4/bio.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bio.4,v 1.30 2013/07/16 16:05:48 schwarze Exp $
+.\" $OpenBSD: bio.4,v 1.31 2014/06/28 06:34:22 matthew Exp $
.\"
.\" Copyright (c) 2002 Niklas Hallqvist
.\" Copyright (c) 2006 Marco Peereboom
@@ -27,7 +27,7 @@
.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: July 16 2013 $
+.Dd $Mdocdate: June 28 2014 $
.Dt BIO 4
.Os
.Sh NAME
@@ -96,28 +96,28 @@ SCSI Enclosure Services
The following ioctl calls apply to the
.Nm
device:
-.Bl -tag -width BIOCCAPABILITIES
-.It Dv BIOCLOCATE
+.Bl -tag -width BIOCINSTALLBOOT
+.It Dv BIOCLOCATE Fa "struct bio_locate *"
Locate a named device and give back a cookie to the application
for subsequent ioctl calls.
The cookie is used to tunnel further ioctls to the right device.
-.It Dv BIOCINQ
+.It Dv BIOCINQ Fa "struct bioc_inq *"
Retrieve number of volumes and physical disks for a specific device.
-.It Dv BIOCDISK
+.It Dv BIOCDISK Fa "struct bioc_disk *"
Retrieve detailed information for the specified physical disk.
Information returned can include status, size, channel, target, lun,
vendor name, serial number and processor device (ses or safte).
-.It Dv BIOCVOL
+.It Dv BIOCVOL Fa "struct bioc_vol *"
Retrieve detailed information for the specified volume.
Information returned can include status, size, RAID level, number of disks,
device name association (sd?) and vendor name.
-.It Dv BIOCALARM
+.It Dv BIOCALARM Fa "struct bioc_alarm *"
Control the alarm beeper on the device.
Supported states are: disable alarm, enable alarm, silence alarm, status and
test alarm.
.Pp
Note: These options might not be supported on all hardware.
-.It Dv BIOCBLINK
+.It Dv BIOCBLINK Fa "struct bioc_blink *"
Blink an LED of the specified physical disk.
Supported blink states are: blink LED, unblink LED and blink alarm LED.
.Pp
@@ -126,7 +126,7 @@ Note: This option is only supported if the disk is governed by
or
.Xr safte 4
and the hardware supports hardware blinking.
-.It Dv BIOCSETSTATE
+.It Dv BIOCSETSTATE Fa "struct bioc_setstate *"
Alter the state of specified physical disk.
Supported states are: create hot-spare, online disk and offline disk.
.El
@@ -136,17 +136,19 @@ The following ioctl calls apply to the
device only when talking to a
.Xr softraid 4
device:
-.Bl -tag -width BIOCCREATERAID
-.It Dv BIOCCREATERAID
+.Bl -tag -width BIOCINSTALLBOOT
+.It Dv BIOCCREATERAID Fa "struct bioc_createraid *"
Create a new volume or assemble an existing volume.
The volume will be attached as a system disk, if this capability is supported
by the volume discipline.
-.It Dv BIOCDELETERAID
+.It Dv BIOCDELETERAID Fa "struct bioc_deleteraid *"
Remove system disk (if present) and disassemble the
.Xr softraid 4
volume.
-.It Dv BIOCDISCIPLINE
+.It Dv BIOCDISCIPLINE Fa "struct bioc_discipline *"
Dispatch a discipline specific ioctl.
+.It Dv BIOCINSTALLBOOT Fa "struct bioc_installboot *"
+Install a boot loader.
.El
.Sh FILES
.Bl -tag -width /dev/bio -compact