diff options
author | Ian Gulliver <git@flamingcow.io> | 2019-05-18 00:00:19 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-05-18 12:49:55 -0600 |
commit | 3200e997d0692398088c944836add7c331677f29 (patch) | |
tree | 9e118ebb90254bc83a3fb013cdc133e0cc71f112 /man | |
parent | 6350583c6f9aca2ce0ffea448204e16e82a83b81 (diff) |
Fix manpage mmap() syntax
The examples in the io_uring_setup.2 man patch erroneously ORs
the protection bits and mmap flags, fix it up.
Signed-off-by: Ian Gulliver <git@flamingcow.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'man')
-rw-r--r-- | man/io_uring_setup.2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/man/io_uring_setup.2 b/man/io_uring_setup.2 index 6814397..9e66cbd 100644 --- a/man/io_uring_setup.2 +++ b/man/io_uring_setup.2 @@ -172,7 +172,7 @@ submission queue can be mapped with a call like: .in +4n .EX ptr = mmap(0, sq_off.array + sq_entries * sizeof(__u32), - PROT_READ|PROT_WRITE|MAP_SHARED|MAP_POPULATE, + PROT_READ|PROT_WRITE, MAP_SHARED|MAP_POPULATE, ring_fd, IORING_OFF_SQ_RING); .EE .in @@ -229,7 +229,7 @@ The array of submission queue entries is mapped with: .in +4n .EX sqentries = mmap(0, sq_entries * sizeof(struct io_uring_sqe), - PROT_READ|PROT_WRITE|MAP_SHARED|MAP_POPULATE, + PROT_READ|PROT_WRITE, MAP_SHARED|MAP_POPULATE, ring_fd, IORING_OFF_SQES); .EE .in @@ -260,7 +260,7 @@ from the queue itself, and can be mapped with: .in +4n .EX ptr = mmap(0, cq_off.cqes + cq_entries * sizeof(struct io_uring_cqe), - PROT_READ|PROT_WRITE|MAP_SHARED|MAP_POPULATE, ring_fd, + PROT_READ|PROT_WRITE, MAP_SHARED|MAP_POPULATE, ring_fd, IORING_OFF_CQ_RING); .EE .in |