summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2002-06-09 22:03:45 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2002-06-09 22:03:45 +0000
commitee52a703f630b39a566adc7f30e35c7bf90c9db9 (patch)
treec0fe39a30be9e7fe34d7afd0f21b346d821bcf6f /share/man
parenta2a621d8c588e64b7ec22be20a6d35921382dd26 (diff)
bio is a driver that can delegate ioctls to other drivers which
otherwise do not deserve a /dev-node of their own. Will be used for RAID mgmt among other things. Initially only i386 gets the device, but other platforms will follow in a few hours. MAKEDEV stuff coming soon too.
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man4/Makefile4
-rw-r--r--share/man/man4/bio.482
2 files changed, 84 insertions, 2 deletions
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile
index 96e4957194c..288ae50f806 100644
--- a/share/man/man4/Makefile
+++ b/share/man/man4/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.212 2002/06/08 00:39:59 drahn Exp $
+# $OpenBSD: Makefile,v 1.213 2002/06/09 22:03:42 niklas Exp $
MAN= aac.4 ac97.4 addcom.4 adv.4 aha.4 ahb.4 ahc.4 aic.4 \
ami.4 amdpm.4 amphy.4 an.4 aria.4 ast.4 atalk.4 atapiscsi.4 \
audio.4 aue.4 auich.4 autri.4 auvia.4 awi.4 az.4 bpf.4 bridge.4 \
- bge.4 bmtphy.4 brgphy.4 bha.4 cac.4 cardbus.4 ccd.4 cd.4 \
+ bge.4 bmtphy.4 brgphy.4 bha.4 bio.4 cac.4 cardbus.4 ccd.4 cd.4 \
ch.4 clnp.4 clcs.4 clct.4 cltp.4 \
cmpci.4 cnw.4 com.4 crypto.4 \
cue.4 cy.4 cz.4 dc.4 ddb.4 de.4 dpt.4 drum.4 eap.4 ec.4 \
diff --git a/share/man/man4/bio.4 b/share/man/man4/bio.4
new file mode 100644
index 00000000000..9eda1548889
--- /dev/null
+++ b/share/man/man4/bio.4
@@ -0,0 +1,82 @@
+.\" $OpenBSD: bio.4,v 1.1 2002/06/09 22:03:43 niklas Exp $
+.\"
+.\" Copyright (c) 2002 Niklas Hallqvist
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. The name of the author may not be used to endorse or promote products
+.\" derived from this software without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+.\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd Jun 8, 2002
+.Dt BIO 4
+.Os
+.Sh NAME
+.Nm bio
+.Nd ioctl tunnel pseudo-device
+.Sh SYNOPSIS
+.Nm pseudo-device bio
+.Op Ar count
+.Sh DESCRIPTION
+The
+.Nm
+driver provides userland applications ioctl access to devices otherwise not
+found as
+.Pa /dev
+nodes.
+The
+.Pa /dev/bio
+device node operates by delegating
+.Xr ioctl 2
+calls to a requested device driver. Only drivers which have registered
+with the
+.Nm
+device can be accessed via this interface.
+.Pp
+If
+.Ar count
+given in the specification, and is greater than 0, a maximum of one
+.Nm bio
+device is created.
+.Pp
+The following
+.Xr ioctl 2
+call apply to the
+.Nm bio
+device:
+.Bl -tag -width BIOCLOCATE
+.It Dv BIOCLOCATE
+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.
+.El
+.Sh FILES
+.Bl -tag -width /dev/bio -compact
+.It Pa /dev/bio
+ioctl tunnel device
+.El
+.Sh SEE ALSO
+.Xr gdt 4
+.Sh HISTORY
+The
+.Nm
+driver appeared in
+.Ox 3.2 .