MCPcopy Create free account
hub / github.com/axboe/liburing / prep_blk_cmd

Function prep_blk_cmd

test/cmd-discard.c:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34static char *buffer;
35
36static 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
45static int queue_cmd_range(struct io_uring *ring, int bdev_fd,
46 uint64_t from, uint64_t len, int cmd_op)

Callers 2

queue_cmd_rangeFunction · 0.85
test_parallelFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_parallelFunction · 0.68