Lines Matching refs:buf
154 LIST_HEAD(bufhashhdr, buf) *bufhashtbl, invalhash;
167 static TAILQ_HEAD(delayqueue, buf) delaybufqueue;
169 static TAILQ_HEAD(ioqueue, buf) iobufqueue;
170 static TAILQ_HEAD(bqueues, buf) bufqueues[BQUEUES];
215 if ((bp)->b_hash.le_prev != (struct buf **)0xdeadbeef) \
219 (bp)->b_hash.le_next = (struct buf *)0; \
220 (bp)->b_hash.le_prev = (struct buf **)0xdeadbeef;
253 if (bp->b_hash.le_prev == (struct buf **)0xdeadbeef)
270 panic("buf already in hashlist");
280 if (bp->b_hash.le_prev == (struct buf **)0xdeadbeef)
831 struct buf my_buf;
1187 * struct buf *a_bp;
1651 * buf acquisition failed above.
1963 panic("couldn't create buf mutex");
2012 {NULL, (MINMETA * 1), 128 * (MINMETA * 1), "buf.512" },
2013 {NULL, (MINMETA * 2), 64 * (MINMETA * 2), "buf.1024" },
2014 {NULL, (MINMETA * 4), 16 * (MINMETA * 4), "buf.2048" },
2015 {NULL, (MINMETA * 8), 512 * (MINMETA * 8), "buf.4096" },
2016 {NULL, (MINMETA * 16), 512 * (MINMETA * 16), "buf.8192" },
2036 buf_hdr_zone = zinit(sizeof(struct buf), 32, PAGE_SIZE, "buf headers");
2058 static struct buf *
2216 * sure the buf is on the correct vnode queue. We have
2454 * so transfer it to the first shadow buf left in the chain
2565 void (*iodone_func)(struct buf *, void *) = bp->b_iodone;
2813 struct buf *bp;
3315 * returns with buf_mtxp locked if new buf available
3316 * returns with buf_mtxp UNlocked if new buf NOT available
3384 bp = (struct buf *)zalloc(buf_hdr_zone);
3616 if ((bp = incore_locked(vp, lblkno, dp)) == (struct buf *)0) {
3875 void (*iodone_func)(struct buf *, void *) = bp->b_iodone;
3913 * the buf owner calling buf_biowait so that we'll
3978 struct buf *bp;
4141 struct buf *bp;
4464 qsort(flush_table, buf_count, sizeof(struct buf *), bp_cmp);
4476 qsort(flush_table, buf_count, sizeof(struct buf *), bp_cmp);
4758 struct buf *bp = bufqueues[q].tqh_first;
4784 * When struct buf are allocated dynamically, this would
4785 * reclaim upto 'n' struct buf from the empty queue.