Home
last modified time | relevance | path

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

/freebsd/tests/sys/aio/
H A Dlio_test.c67 struct aiocb *aiocbs[2]; in ATF_TC_BODY() local
96 aiocbs[i] = calloc(ios_per_call, sizeof(struct aiocb)); in ATF_TC_BODY()
97 ATF_REQUIRE(aiocbs[i] != NULL); in ATF_TC_BODY()
105 aiocbs[i][j].aio_fildes = fd; in ATF_TC_BODY()
106 aiocbs[i][j].aio_offset = (i * ios_per_call + j) * 4096; in ATF_TC_BODY()
107 aiocbs[i][j].aio_buf = buffer; in ATF_TC_BODY()
108 aiocbs[i][j].aio_nbytes = 4096; in ATF_TC_BODY()
109 aiocbs[i][j].aio_lio_opcode = LIO_WRITE; in ATF_TC_BODY()
110 list[i][j] = &aiocbs[i][j]; in ATF_TC_BODY()
/freebsd/sys/contrib/openzfs/lib/libzutil/
H A Dzutil_import.c1013 struct aiocb aiocbs[VDEV_LABELS]; in zpool_read_label()
1031 memset(aiocbs, 0, sizeof (aiocbs)); in zpool_read_label()
1035 aiocbs[l].aio_fildes = fd; in zpool_read_label()
1036 aiocbs[l].aio_offset = offset; in zpool_read_label()
1037 aiocbs[l].aio_buf = &labels[l]; in zpool_read_label()
1038 aiocbs[l].aio_nbytes = sizeof (vdev_phys_t); in zpool_read_label()
1039 aiocbs[l].aio_lio_opcode = LIO_READ; in zpool_read_label()
1040 aiocbps[l] = &aiocbs[l]; in zpool_read_label()
1055 switch (aio_error(&aiocbs[l])) { in zpool_read_label()
1081 (void) aio_return(&aiocbs[l]); in zpool_read_label()
[all …]