Lines Matching refs:buf

47 #include <sys/buf.h>
74 static struct buf *bhdrlist; /* buf header free list */
81 #define EMPTY_LIST ((struct buf *)-1)
137 static struct buf *bio_getfreeblk(long);
139 static void bio_bhdr_free(struct buf *);
140 static struct buf *bio_bhdr_alloc(void);
142 static void bio_pageio_done(struct buf *);
200 struct buf *
211 struct buf *
215 struct buf *bp;
248 struct buf *
251 struct buf *bp, *rabp;
295 bwrite_common(void *arg, struct buf *bp, int force_wait,
345 bwrite(struct buf *bp)
357 bwrite2(struct buf *bp)
371 bdwrite(struct buf *bp)
391 bawrite(struct buf *bp)
405 brelse(struct buf *bp)
407 struct buf **backp;
410 struct buf *dp;
433 kmem_free(bp, sizeof (struct buf));
461 dp = (struct buf *)hp;
476 dp = (struct buf *)&dwbuf[index];
525 struct buf *bp, *dp;
532 dp = (struct buf *)&hbuf[i];
557 struct buf *
569 struct buf *
573 struct buf *bp;
574 struct buf *dp;
575 struct buf *nbp = NULL;
576 struct buf *errbp;
588 dp = (struct buf *)hp;
670 * Destroy buf identity, and place on avail list
750 struct buf *
753 struct buf *bp;
755 bp = kmem_alloc(sizeof (struct buf), KM_SLEEP);
773 struct buf *
782 struct buf *
785 struct buf *bp;
786 struct buf *dp;
798 dp = (struct buf *)hp;
828 iowait(struct buf *bp)
839 iodone(struct buf *bp)
849 clrbuf(struct buf *bp)
864 struct buf *bp, *dp;
866 struct buf *delwri_list = EMPTY_LIST;
892 dp = (struct buf *)&dwbuf[i];
926 dp = (struct buf *)hp;
959 struct buf *bp, *dp;
961 struct buf *sbp = NULL;
967 dp = (struct buf *)hp;
1019 struct buf *dp;
1020 struct buf *bp;
1021 struct buf *binval_list = EMPTY_LIST;
1025 struct buf **backp;
1040 dp = (struct buf *)&hbuf[i];
1066 dp = (struct buf *)&hbuf[index];
1121 struct buf *bp;
1192 hbuf[i].b_forw = hbuf[i].b_back = (struct buf *)&hbuf[i];
1193 hbuf[i].av_forw = hbuf[i].av_back = (struct buf *)&hbuf[i];
1198 dwbuf[i].b_forw = dwbuf[i].b_back = (struct buf *)&dwbuf[i];
1199 dwbuf[i].av_forw = dwbuf[i].av_back = (struct buf *)&dwbuf[i];
1209 biowait(struct buf *bp)
1218 DTRACE_IO1(wait__start, struct buf *, bp);
1229 DTRACE_IO1(wait__done, struct buf *, bp);
1241 biodone_tnf_probe(struct buf *bp)
1247 tnf_opaque, buf, bp);
1255 biodone(struct buf *bp)
1258 DTRACE_IO1(done, struct buf *, bp);
1290 geterror(struct buf *bp)
1311 * Allocate and initialize a buf struct for use with pageio.
1313 struct buf *
1316 struct buf *bp;
1369 bp = kmem_zalloc(sizeof (struct buf), KM_SLEEP);
1393 pageio_done(struct buf *bp)
1405 kmem_free(bp, sizeof (struct buf));
1414 bcheck(dev_t dev, struct buf *sbp)
1416 struct buf *bp;
1417 struct buf *dp;
1425 dp = (struct buf *)&hbuf[i];
1431 * if buf is busy or dirty, then filesystem is busy
1472 * Returns a locked buf that has no id and is not on any hash or free
1475 static struct buf *
1478 struct buf *bp, *dp;
1492 bp = bio_bhdr_alloc(); /* Get a buf hdr */
1505 struct buf *save;
1519 dp = (struct buf *)hp;
1588 static struct buf *
1591 struct buf *dp, *sdp;
1592 struct buf *bp;
1610 dp = kmem_zalloc(sizeof (struct buf) * v.v_buf, KM_NOSLEEP);
1648 bio_bhdr_free(struct buf *bp)
1691 bio_flushlist(struct buf *delwri_list)
1693 struct buf *bp;
1718 struct buf *bp, *dp, *dwp, *nbp;
1723 struct buf *delwri_list = EMPTY_LIST;
1733 dp = (struct buf *)hp;
1809 dwp = (struct buf *)&dwbuf[start];
1894 struct buf *bp;
1895 struct buf *dp;
1900 dp = (struct buf *)&hbuf[index];
1916 bio_pageio_done(struct buf *bp)
1940 bioerror(struct buf *bp, int error)
1958 bioreset(struct buf *bp)
1972 return (sizeof (struct buf));
1979 biomodified(struct buf *bp)
2009 bioinit(struct buf *bp)
2011 bzero(bp, sizeof (struct buf));
2021 biofini(struct buf *bp)
2030 struct buf *
2031 bioclone(struct buf *bp, off_t off, size_t len, dev_t dev, daddr_t blkno,
2032 int (*iodone)(struct buf *), struct buf *bp_mem, int sleep)
2034 struct buf *bufp;
2038 bufp = kmem_alloc(sizeof (struct buf), sleep);