From 9f61a0bd6789ae6218d2e9e472abaee45f4ca829 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 30 Jan 2020 10:05:23 -0700 Subject: man/io_uring_enter.2: add fadvise/madvise Also fix a few typos. Signed-off-by: Jens Axboe --- man/io_uring_enter.2 | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) (limited to 'man') diff --git a/man/io_uring_enter.2 b/man/io_uring_enter.2 index fa4b476..248dc82 100644 --- a/man/io_uring_enter.2 +++ b/man/io_uring_enter.2 @@ -310,7 +310,7 @@ system call. .I fd must be set to the socket file descriptor, .I addr -must contains the pointer to the sockaddr structure, and +must contain the pointer to the sockaddr structure, and .I addr2 must contain a pointer to the socklen_t addrlen field. See also .BR accept4(2) @@ -366,7 +366,7 @@ system call. .I fd must be set to the socket file descriptor, .I addr -must contains the pointer to the sockaddr structure, and +must contain the pointer to the sockaddr structure, and .I off must contain the socklen_t addrlen field. See also .BR connect(2) @@ -382,10 +382,41 @@ must be set to the file descriptor, .I off must contain the offset on which to operate, and .I len -must the length. See also +must contain the length. See also .BR fallocate(2) for the general description of the related system call. Available since 5.6. +.TP +.B IORING_OP_FADVISE +Issue the equivalent of a +.BR posix_fallocate(2) +system call. +.I fd +must be set to the file descriptor, +.I off +must contain the offset on which to operate, +.I len +must contain the length, and +.I fadvise_advice +must contain the advice associated with the operation. See also +.BR posix_fadvise(2) +for the general description of the related system call. Available since 5.6. + +.TP +.B IORING_OP_MADVISE +Issue the equivalent of a +.BR madvise(2) +system call. +.I addr +must contain the address to operate on, +.I len +must contain the length on which to operate, +and +.I fadvise_advice +must contain the advice associated with the operation. See also +.BR madvise(2) +for the general description of the related system call. Available since 5.6. + .TP .B IORING_OP_OPENAT Issue the equivalent of a -- cgit v1.2.3