| 34 | static char *buffer; |
| 35 | |
| 36 | static void prep_blk_cmd(struct io_uring_sqe *sqe, int fd, |
| 37 | uint64_t from, uint64_t len, |
| 38 | int cmd_op) |
| 39 | { |
| 40 | assert(cmd_op == BLOCK_URING_CMD_DISCARD); |
| 41 | |
| 42 | io_uring_prep_cmd_discard(sqe, fd, from, len); |
| 43 | } |
| 44 | |
| 45 | static int queue_cmd_range(struct io_uring *ring, int bdev_fd, |
| 46 | uint64_t from, uint64_t len, int cmd_op) |
no outgoing calls