diff --git a/man/io_uring_enter.2 b/man/io_uring_enter.2 index 8c797716e..b7ae5302d 100644 --- a/man/io_uring_enter.2 +++ b/man/io_uring_enter.2 @@ -1262,6 +1262,27 @@ is a pointer to siginfo_t, if any, being filled in. See also .BR waitid(2) for the general description of the related system call. Available since 6.5. +.TP +.B BLOCK_URING_CMD_DISCARD +Issue a discard command to the block device file. +.I fd +should point to a block device, +.I addr +is the offset in bytes to start the command from, and +.I addr3 +should be set to the length of the discard in bytes. +It is an asynchronous equivalent of +.B BLOCK_URING_CMD_DISCARD. +It allows multiple parallel discards as well as other operations, +as a result it may result in races for the data on the disk, and it's the user's +responsible to take care of it. Furthermore, we only do the best effort page +cache invalidation, the user has to make sure there are no other inflight +requests modifying or reading the range, otherwise it might lead to stale +page cache and data inconsistencies. + +Available since 6.1*. + + .PP The .I flags