Searched refs:bufq (Results 1 – 3 of 3) sorted by relevance
107 struct bufq { struct108 void (*bufq_free)(struct bufq *); argument109 void (*bufq_add)(struct bufq *, struct buf *); argument110 struct buf *(*bufq_get)(struct bufq *); argument114 struct bufq bufq; member123 struct bufq *bufq_default_alloc(void);124 void bufq_default_free(struct bufq *);125 void bufq_default_add(struct bufq *, struct buf *);126 struct buf *bufq_default_get(struct bufq *);
533 struct bufq *543 bq->bufq.bufq_free = bufq_default_free; in bufq_default_alloc()544 bq->bufq.bufq_add = bufq_default_add; in bufq_default_alloc()545 bq->bufq.bufq_get = bufq_default_get; in bufq_default_alloc()547 return ((struct bufq *)bq); in bufq_default_alloc()551 bufq_default_free(struct bufq *bq) in bufq_default_free()557 bufq_default_add(struct bufq *bq, struct buf *bp) in bufq_default_add()559 struct bufq_default *bufq = (struct bufq_default *)bq; in bufq_default_add() local564 head = &bufq->bufq_head[0]; in bufq_default_add()566 head = &bufq->bufq_head[1]; in bufq_default_add()[all …]
478 struct bqueues *bufq; in brelse() local513 bufq = &bufqueues[BQ_EMPTY]; in brelse()517 bufq = &bufqueues[BQ_CLEAN]; in brelse()521 binsheadfree(bp, bufq); in brelse()529 bufq = &bufqueues[BQ_LOCKED]; in brelse()534 bufq = &bufqueues[BQ_CLEAN]; in brelse()537 bufq = &bufqueues[BQ_DIRTY]; in brelse()541 binsheadfree(bp, bufq); in brelse()543 binstailfree(bp, bufq); in brelse()