Lines Matching refs:snapbuf
777 struct buf *snapbuf;
815 snapbuf = getrbuf(KM_SLEEP);
826 snapbuf->b_bcount = len;
827 snapbuf->b_lblkno = lbtodb(chunk * cmap->cmap_chunksz + offset);
828 snapbuf->b_un.b_addr = buffer;
830 snapbuf->b_iodone = NULL;
831 snapbuf->b_proc = NULL; /* i.e. the kernel */
832 snapbuf->b_flags = B_READ | B_BUSY;
833 snapbuf->b_edev = sidp->sid_fvp->v_vfsp->vfs_dev;
848 snapbuf->b_bcount = newlen;
849 snapbuf->b_un.b_addr = newbuffer;
852 (void) bdev_strategy(snapbuf);
853 (void) biowait(snapbuf);
855 error = geterror(snapbuf);
868 freerbuf(snapbuf);