dt_pq_walk
while (buf = dt_pq_walk(dtp->dt_bufq, &cookie))
extern void *dt_pq_walk(dt_pq_t *, uint_t *);