summaryrefslogtreecommitdiffstats
path: root/sys/sys/bio.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-04-15 05:54:02 +0000
committerphk <phk@FreeBSD.org>2000-04-15 05:54:02 +0000
commitaaaef0b54e307450b19dcd1fb6ec921cc62d1acf (patch)
tree175dac1aaf0d06b54deb889161091dbcf88c79c6 /sys/sys/bio.h
parentf2310ef109eccf99c872f4f90eb70f4fc26e39f1 (diff)
downloadFreeBSD-src-aaaef0b54e307450b19dcd1fb6ec921cc62d1acf.zip
FreeBSD-src-aaaef0b54e307450b19dcd1fb6ec921cc62d1acf.tar.gz
Complete the bio/buf divorce for all code below devfs::strategy
Exceptions: Vinum untouched. This means that it cannot be compiled. Greg Lehey is on the case. CCD not converted yet, casts to struct buf (still safe) atapi-cd casts to struct buf to examine B_PHYS
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r--sys/sys/bio.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index 5ac55a4..174851f 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -531,6 +531,14 @@ bioq_first(struct bio_queue_head *head)
(bp)->b_resid = 0; \
}
+/*
+ * Zero out the bio's data area.
+ */
+#define clrbio(bp) { \
+ bzero((bp)->bio_data, (u_int)(bp)->bio_bcount); \
+ (bp)->bio_resid = 0; \
+}
+
/* Flags to low-level allocation routines. */
#define B_CLRBUF 0x01 /* Request allocated buffer be cleared. */
#define B_SYNC 0x02 /* Do all allocations synchronously. */
@@ -572,7 +580,8 @@ int inmem __P((struct vnode *, daddr_t));
struct buf *getblk __P((struct vnode *, daddr_t, int, int, int));
struct buf *geteblk __P((int));
int biowait __P((struct buf *));
-void biodone __P((struct buf *));
+void bufdone __P((struct buf *));
+void biodone __P((struct bio *));
void cluster_callback __P((struct buf *));
int cluster_read __P((struct vnode *, u_quad_t, daddr_t, long,
OpenPOWER on IntegriCloud