Lines Matching refs:fd
13 #include "spdk/fd.h"
56 int fd;
86 int fd;
88 fd = open(bdev->filename, O_RDWR | O_DIRECT | O_NOATIME);
89 if (fd < 0) {
91 fd = open(bdev->filename, O_RDWR | O_NOATIME);
92 if (fd < 0) {
95 bdev->fd = -1;
100 bdev->fd = fd;
131 uring_size = spdk_fd_get_size(uring->fd);
159 if (bdev->fd == -1) {
163 rc = close(bdev->fd);
165 SPDK_ERRLOG("close() failed (fd=%d), errno %d: %s\n",
166 bdev->fd, errno, spdk_strerror(errno));
170 bdev->fd = -1;
190 io_uring_prep_readv(sqe, uring->fd, iov, iovcnt, offset);
217 io_uring_prep_writev(sqe, uring->fd, iov, iovcnt, offset);
440 if (ioctl(uring->fd, zone_mgmt_op, &range)) {
483 if (ioctl(uring->fd, BLKREPORTZONE, rep)) {
555 if (ioctl(uring->fd, BLKGETNRZONES, &zinfo)) {
561 if (ioctl(uring->fd, BLKGETZONESZ, &zinfo)) {
787 SPDK_ERRLOG("Unable to open file %s. fd: %d errno: %d\n", opts->filename, uring->fd, errno);
791 bdev_size = spdk_fd_get_size(uring->fd);
802 detected_block_size = spdk_fd_get_blocklen(uring->fd);