Home
last modified time | relevance | path

Searched refs:bouncebuf (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/stand/efi/boot1/
H A Dzfs_module.c58 char *bouncebuf = NULL, *rb_buf; in vdev_read() local
76 bouncebuf = malloc(rb_size); in vdev_read()
77 if (bouncebuf == NULL) { in vdev_read()
81 rb_buf = bouncebuf; in vdev_read()
92 if (bouncebuf != NULL) in vdev_read()
101 free(bouncebuf); in vdev_read()
105 free(bouncebuf); in vdev_read()
/freebsd-12.1/stand/libsa/zfs/
H A Dzfs.c369 char *outbuf, *bouncebuf; in vdev_read() local
373 bouncebuf = NULL; in vdev_read()
421 bouncebuf = zfs_alloc(secsz); in vdev_read()
422 if (bouncebuf == NULL) { in vdev_read()
435 res = read(fd, bouncebuf, secsz); in vdev_read()
440 memcpy(outbuf, bouncebuf + head, min(secsz - head, bytes)); in vdev_read()
456 res = read(fd, bouncebuf, secsz); in vdev_read()
461 memcpy(outbuf, bouncebuf, secsz - tail); in vdev_read()
466 if (bouncebuf != NULL) in vdev_read()
467 zfs_free(bouncebuf, secsz); in vdev_read()