summaryrefslogtreecommitdiff
path: root/share/man/man9/disk.9
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-05-01 23:20:02 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-05-01 23:20:02 +0000
commit1030ab4a347b3755e2fdab6a3cb5c82792dff31c (patch)
treeef54d89e766ea9069ac6a07f69a5fbe08e21db12 /share/man/man9/disk.9
parent80638508708a433c5efea33d401cca5eaee59a3a (diff)
Update description of disk_unbusy(); from NetBSD
Diffstat (limited to 'share/man/man9/disk.9')
-rw-r--r--share/man/man9/disk.99
1 files changed, 7 insertions, 2 deletions
diff --git a/share/man/man9/disk.9 b/share/man/man9/disk.9
index 901dd00d117..df027200851 100644
--- a/share/man/man9/disk.9
+++ b/share/man/man9/disk.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: disk.9,v 1.21 2003/06/06 20:56:32 jmc Exp $
+.\" $OpenBSD: disk.9,v 1.22 2004/05/01 23:20:01 millert Exp $
.\" $NetBSD: disk.9,v 1.2 1996/04/08 20:41:25 jtc Exp $
.\"
.\" Copyright (c) 1995, 1996 Jason R. Thorpe.
@@ -50,7 +50,7 @@
.Ft void
.Fn disk_busy "struct disk *"
.Ft void
-.Fn disk_unbusy "struct disk *"
+.Fn disk_unbusy "struct disk *" "long bcount" "int read"
.Ft void
.Fn disk_resetstat "struct disk *"
.Ft struct disk *
@@ -142,6 +142,11 @@ Set the disk's timestamp to the current time.
If the provided byte count is greater than 0,
add it to the disk's running total and increment the number of transfers
performed by the disk.
+The third argument
+.Ar read
+specifies the direction of I/O;
+if non-zero it means reading from the disk,
+otherwise it means writing to the disk.
.It Fn disk_resetstat
Reset the running byte, transfer, and time totals.
.It Fn disk_find