Convert manpages to markdown
cover Convert manpages to markdown
Since rfc:
Since RFC, this had a few changes. The main one is that the conversion from groff to MD is now fully automated, and I suggest reviewers look at the script in the commit message. The patch can be recreated from that. This should make patch 3 more digestable. In addition, I've wrapped MD files to 72 collumns and splitted the alias handling into a separated patch.
Cover:
This has been discussed for a while due to the ongoing pain of writing groff. Now that we just had a release, convert the manpages to markdown and add infrastructure to generate back the groff automatically during compilation.
The conversion is not lossless, mostly due to groff being painful. You'll notice the conversion is not byte-per-byte accurate, but most of the differences are whitespace, which is not relevant. Other more tricky changes are in bold/italics, which I tried to preserve as much as possible. The rest seems solved.
This obviously adds a build dependency on pandoc, which is already packaged by any sane distro out there. The configure file is updated to check for that.
There are a few caveats worth mentioned:
1) Groff comments need to be preserved because of copyrights notices. This is done by a pre-processor python script.
2) A pandoc filter is applied during conversion to fix up code blocks. Default pandoc is not smart enough to preserve groff blocks under ```...``` marks, so we do that through a filter.
3) We have a large number of symlinks. These are now kept in an ALIAS file and also re-generated during compilation.
More details in patches the patch sumaries.
Gabriel Krisman Bertazi (3):
man: Generate aliases during compilation
man: Introduce rules to convert Markdown to groff
man: Convert manpages to markdown
Makefile | 2 + configure | 8 + man/.gitignore | 8 + man/ALIASES | 62 + man/IO_URING_CHECK_VERSION.3 | 1 - man/IO_URING_VERSION_MAJOR.3 | 1 - man/IO_URING_VERSION_MINOR.3 | 1 - man/Makefile | 17 + man/__io_uring_buf_ring_cq_advance.3 | 1 - man/io_uring.7 | 919 ------- man/io_uring.7.md | 779 ++++++ man/io_uring_buf_ring_add.3 | 64 - man/io_uring_buf_ring_add.3.md | 65 + man/io_uring_buf_ring_advance.3 | 31 - man/io_uring_buf_ring_advance.3.md | 41 + man/io_uring_buf_ring_available.3 | 47 - man/io_uring_buf_ring_available.3.md | 57 + man/io_uring_buf_ring_cq_advance.3 | 55 - man/io_uring_buf_ring_cq_advance.3.md | 56 + man/io_uring_buf_ring_init.3 | 36 - man/io_uring_buf_ring_init.3.md | 45 + man/io_uring_buf_ring_mask.3 | 27 - man/io_uring_buf_ring_mask.3.md | 37 + man/io_uring_cancelation.7 | 324 --- man/io_uring_cancelation.7.md | 288 +++ man/io_uring_check_version.3 | 72 - man/io_uring_check_version.3.md | 53 + man/io_uring_clone_buffers.3 | 165 -- man/io_uring_clone_buffers.3.md | 133 + man/io_uring_clone_buffers_offset.3 | 1 - man/io_uring_close_ring_fd.3 | 43 - man/io_uring_close_ring_fd.3.md | 55 + man/io_uring_cq_advance.3 | 49 - man/io_uring_cq_advance.3.md | 53 + man/io_uring_cq_eventfd_enabled.3 | 38 - man/io_uring_cq_eventfd_enabled.3.md | 45 + man/io_uring_cq_eventfd_toggle.3 | 48 - man/io_uring_cq_eventfd_toggle.3.md | 53 + man/io_uring_cq_has_overflow.3 | 31 - man/io_uring_cq_has_overflow.3.md | 46 + man/io_uring_cq_ready.3 | 26 - man/io_uring_cq_ready.3.md | 37 + man/io_uring_cqe_get_data.3 | 53 - man/io_uring_cqe_get_data.3.md | 50 + man/io_uring_cqe_get_data64.3 | 1 - man/io_uring_cqe_nr.3 | 35 - man/io_uring_cqe_nr.3.md | 42 + man/io_uring_cqe_seen.3 | 41 - man/io_uring_cqe_seen.3.md | 47 + man/io_uring_enable_rings.3 | 40 - man/io_uring_enable_rings.3.md | 48 + man/io_uring_enter.2 | 2208 ----------------- man/io_uring_enter.2.md | 1466 +++++++++++ man/io_uring_enter2.2 | 1 - man/io_uring_for_each_cqe.3 | 63 - man/io_uring_for_each_cqe.3.md | 68 + man/io_uring_free_buf_ring.3 | 53 - man/io_uring_free_buf_ring.3.md | 55 + man/io_uring_free_probe.3 | 27 - man/io_uring_free_probe.3.md | 36 + man/io_uring_get_events.3 | 33 - man/io_uring_get_events.3.md | 43 + man/io_uring_get_probe.3 | 30 - man/io_uring_get_probe.3.md | 43 + man/io_uring_get_probe_ring.3 | 39 - man/io_uring_get_probe_ring.3.md | 45 + man/io_uring_get_sqe.3 | 57 - man/io_uring_get_sqe.3.md | 55 + man/io_uring_get_sqe128.3 | 67 - man/io_uring_get_sqe128.3.md | 59 + man/io_uring_linked_requests.7 | 271 -- man/io_uring_linked_requests.7.md | 261 ++ man/io_uring_major_version.3 | 1 - man/io_uring_memory_size_params.3 | 45 - man/io_uring_memory_size_params.3.md | 51 + man/io_uring_minor_version.3 | 1 - man/io_uring_mlock_size.3 | 42 - man/io_uring_mlock_size.3.md | 47 + man/io_uring_mlock_size_params.3 | 48 - man/io_uring_mlock_size_params.3.md | 49 + man/io_uring_multishot.7 | 246 -- man/io_uring_multishot.7.md | 235 ++ man/io_uring_opcode_supported.3 | 30 - man/io_uring_opcode_supported.3.md | 39 + man/io_uring_peek_batch_cqe.3 | 1 - man/io_uring_peek_cqe.3 | 59 - man/io_uring_peek_cqe.3.md | 55 + man/io_uring_prep_accept.3 | 203 -- man/io_uring_prep_accept.3.md | 161 ++ man/io_uring_prep_accept_direct.3 | 1 - man/io_uring_prep_bind.3 | 54 - man/io_uring_prep_bind.3.md | 52 + man/io_uring_prep_cancel.3 | 136 - man/io_uring_prep_cancel.3.md | 138 ++ man/io_uring_prep_cancel64.3 | 1 - man/io_uring_prep_cancel_fd.3 | 1 - man/io_uring_prep_close.3 | 67 - man/io_uring_prep_close.3.md | 62 + man/io_uring_prep_close_direct.3 | 1 - man/io_uring_prep_cmd_discard.3 | 64 - man/io_uring_prep_cmd_discard.3.md | 62 + man/io_uring_prep_cmd_getsockname.3 | 79 - man/io_uring_prep_cmd_getsockname.3.md | 64 + man/io_uring_prep_cmd_sock.3 | 219 -- man/io_uring_prep_cmd_sock.3.md | 159 ++ man/io_uring_prep_connect.3 | 66 - man/io_uring_prep_connect.3.md | 65 + man/io_uring_prep_epoll_ctl.3 | 74 - man/io_uring_prep_epoll_ctl.3.md | 68 + man/io_uring_prep_epoll_wait.3 | 64 - man/io_uring_prep_epoll_wait.3.md | 61 + man/io_uring_prep_fadvise.3 | 76 - man/io_uring_prep_fadvise.3.md | 68 + man/io_uring_prep_fadvise64.3 | 1 - man/io_uring_prep_fallocate.3 | 59 - man/io_uring_prep_fallocate.3.md | 54 + man/io_uring_prep_fgetxattr.3 | 1 - man/io_uring_prep_files_update.3 | 92 - man/io_uring_prep_files_update.3.md | 93 + man/io_uring_prep_fixed_fd_install.3 | 70 - man/io_uring_prep_fixed_fd_install.3.md | 71 + man/io_uring_prep_fsetxattr.3 | 1 - man/io_uring_prep_fsync.3 | 70 - man/io_uring_prep_fsync.3.md | 62 + man/io_uring_prep_ftruncate.3 | 54 - man/io_uring_prep_ftruncate.3.md | 51 + man/io_uring_prep_futex_wait.3 | 94 - man/io_uring_prep_futex_wait.3.md | 79 + man/io_uring_prep_futex_waitv.3 | 78 - man/io_uring_prep_futex_waitv.3.md | 71 + man/io_uring_prep_futex_wake.3 | 86 - man/io_uring_prep_futex_wake.3.md | 71 + man/io_uring_prep_getxattr.3 | 61 - man/io_uring_prep_getxattr.3.md | 57 + man/io_uring_prep_link.3 | 1 - man/io_uring_prep_link_timeout.3 | 98 - man/io_uring_prep_link_timeout.3.md | 104 + man/io_uring_prep_linkat.3 | 91 - man/io_uring_prep_linkat.3.md | 80 + man/io_uring_prep_listen.3 | 52 - man/io_uring_prep_listen.3.md | 53 + man/io_uring_prep_madvise.3 | 72 - man/io_uring_prep_madvise.3.md | 66 + man/io_uring_prep_madvise64.3 | 1 - man/io_uring_prep_mkdir.3 | 1 - man/io_uring_prep_mkdirat.3 | 83 - man/io_uring_prep_mkdirat.3.md | 75 + man/io_uring_prep_msg_ring.3 | 92 - man/io_uring_prep_msg_ring.3.md | 85 + man/io_uring_prep_msg_ring_cqe_flags.3 | 1 - man/io_uring_prep_msg_ring_fd.3 | 83 - man/io_uring_prep_msg_ring_fd.3.md | 86 + man/io_uring_prep_msg_ring_fd_alloc.3 | 1 - man/io_uring_prep_multishot_accept.3 | 1 - man/io_uring_prep_multishot_accept_direct.3 | 1 - man/io_uring_prep_nop.3 | 28 - man/io_uring_prep_nop.3.md | 41 + man/io_uring_prep_nop128.3 | 30 - man/io_uring_prep_nop128.3.md | 42 + man/io_uring_prep_open.3 | 1 - man/io_uring_prep_open_direct.3 | 1 - man/io_uring_prep_openat.3 | 138 -- man/io_uring_prep_openat.3.md | 117 + man/io_uring_prep_openat2.3 | 119 - man/io_uring_prep_openat2.3.md | 104 + man/io_uring_prep_openat2_direct.3 | 1 - man/io_uring_prep_openat_direct.3 | 1 - man/io_uring_prep_pipe.3 | 91 - man/io_uring_prep_pipe.3.md | 76 + man/io_uring_prep_pipe_direct.3 | 1 - man/io_uring_prep_poll_add.3 | 72 - man/io_uring_prep_poll_add.3.md | 68 + man/io_uring_prep_poll_multishot.3 | 1 - man/io_uring_prep_poll_remove.3 | 55 - man/io_uring_prep_poll_remove.3.md | 66 + man/io_uring_prep_poll_update.3 | 101 - man/io_uring_prep_poll_update.3.md | 101 + man/io_uring_prep_provide_buffers.3 | 140 -- man/io_uring_prep_provide_buffers.3.md | 116 + man/io_uring_prep_read.3 | 76 - man/io_uring_prep_read.3.md | 72 + man/io_uring_prep_read_fixed.3 | 79 - man/io_uring_prep_read_fixed.3.md | 71 + man/io_uring_prep_read_multishot.3 | 107 - man/io_uring_prep_read_multishot.3.md | 92 + man/io_uring_prep_readv.3 | 92 - man/io_uring_prep_readv.3.md | 86 + man/io_uring_prep_readv2.3 | 118 - man/io_uring_prep_readv2.3.md | 110 + man/io_uring_prep_readv_fixed.3 | 74 - man/io_uring_prep_readv_fixed.3.md | 72 + man/io_uring_prep_recv.3 | 147 -- man/io_uring_prep_recv.3.md | 130 + man/io_uring_prep_recv_multishot.3 | 1 - man/io_uring_prep_recvmsg.3 | 130 - man/io_uring_prep_recvmsg.3.md | 113 + man/io_uring_prep_recvmsg_multishot.3 | 1 - man/io_uring_prep_remove_buffers.3 | 52 - man/io_uring_prep_remove_buffers.3.md | 59 + man/io_uring_prep_rename.3 | 1 - man/io_uring_prep_renameat.3 | 95 - man/io_uring_prep_renameat.3.md | 80 + man/io_uring_prep_send.3 | 197 -- man/io_uring_prep_send.3.md | 154 ++ man/io_uring_prep_send_bundle.3 | 1 - man/io_uring_prep_send_set_addr.3 | 38 - man/io_uring_prep_send_set_addr.3.md | 42 + man/io_uring_prep_send_zc.3 | 140 -- man/io_uring_prep_send_zc.3.md | 110 + man/io_uring_prep_send_zc_fixed.3 | 1 - man/io_uring_prep_sendmsg.3 | 136 - man/io_uring_prep_sendmsg.3.md | 111 + man/io_uring_prep_sendmsg_zc.3 | 1 - man/io_uring_prep_sendmsg_zc_fixed.3 | 69 - man/io_uring_prep_sendmsg_zc_fixed.3.md | 70 + man/io_uring_prep_sendto.3 | 1 - man/io_uring_prep_setxattr.3 | 64 - man/io_uring_prep_setxattr.3.md | 59 + man/io_uring_prep_shutdown.3 | 53 - man/io_uring_prep_shutdown.3.md | 51 + man/io_uring_prep_socket.3 | 118 - man/io_uring_prep_socket.3.md | 94 + man/io_uring_prep_socket_direct.3 | 1 - man/io_uring_prep_socket_direct_alloc.3 | 1 - man/io_uring_prep_splice.3 | 126 - man/io_uring_prep_splice.3.md | 88 + man/io_uring_prep_statx.3 | 74 - man/io_uring_prep_statx.3.md | 70 + man/io_uring_prep_symlink.3 | 1 - man/io_uring_prep_symlinkat.3 | 85 - man/io_uring_prep_symlinkat.3.md | 76 + man/io_uring_prep_sync_file_range.3 | 59 - man/io_uring_prep_sync_file_range.3.md | 54 + man/io_uring_prep_tee.3 | 80 - man/io_uring_prep_tee.3.md | 69 + man/io_uring_prep_timeout.3 | 121 - man/io_uring_prep_timeout.3.md | 124 + man/io_uring_prep_timeout_remove.3 | 1 - man/io_uring_prep_timeout_update.3 | 85 - man/io_uring_prep_timeout_update.3.md | 95 + man/io_uring_prep_unlink.3 | 1 - man/io_uring_prep_unlinkat.3 | 82 - man/io_uring_prep_unlinkat.3.md | 75 + man/io_uring_prep_uring_cmd.3 | 37 - man/io_uring_prep_uring_cmd.3.md | 47 + man/io_uring_prep_uring_cmd128.3 | 38 - man/io_uring_prep_uring_cmd128.3.md | 48 + man/io_uring_prep_waitid.3 | 67 - man/io_uring_prep_waitid.3.md | 60 + man/io_uring_prep_write.3 | 70 - man/io_uring_prep_write.3.md | 69 + man/io_uring_prep_write_fixed.3 | 75 - man/io_uring_prep_write_fixed.3.md | 69 + man/io_uring_prep_writev.3 | 89 - man/io_uring_prep_writev.3.md | 84 + man/io_uring_prep_writev2.3 | 115 - man/io_uring_prep_writev2.3.md | 108 + man/io_uring_prep_writev_fixed.3 | 71 - man/io_uring_prep_writev_fixed.3.md | 72 + man/io_uring_provided_buffers.7 | 266 -- man/io_uring_provided_buffers.7.md | 255 ++ man/io_uring_queue_exit.3 | 30 - man/io_uring_queue_exit.3.md | 44 + man/io_uring_queue_init.3 | 144 -- man/io_uring_queue_init.3.md | 109 + man/io_uring_queue_init_mem.3 | 1 - man/io_uring_queue_init_params.3 | 1 - man/io_uring_queue_mmap.3 | 49 - man/io_uring_queue_mmap.3.md | 48 + man/io_uring_recvmsg_cmsg_firsthdr.3 | 1 - man/io_uring_recvmsg_cmsg_nexthdr.3 | 1 - man/io_uring_recvmsg_name.3 | 1 - man/io_uring_recvmsg_out.3 | 82 - man/io_uring_recvmsg_out.3.md | 82 + man/io_uring_recvmsg_payload.3 | 1 - man/io_uring_recvmsg_payload_length.3 | 1 - man/io_uring_recvmsg_validate.3 | 1 - man/io_uring_register.2 | 1375 ---------- man/io_uring_register.2.md | 932 +++++++ man/io_uring_register_bpf_filter.3 | 411 --- man/io_uring_register_bpf_filter.3.md | 358 +++ man/io_uring_register_bpf_filter_task.3 | 1 - man/io_uring_register_buf_ring.3 | 165 -- man/io_uring_register_buf_ring.3.md | 135 + man/io_uring_register_buffers.3 | 105 - man/io_uring_register_buffers.3.md | 86 + man/io_uring_register_buffers_sparse.3 | 1 - man/io_uring_register_buffers_tags.3 | 1 - man/io_uring_register_buffers_update_tag.3 | 1 - man/io_uring_register_clock.3 | 72 - man/io_uring_register_clock.3.md | 71 + man/io_uring_register_eventfd.3 | 50 - man/io_uring_register_eventfd.3.md | 62 + man/io_uring_register_eventfd_async.3 | 1 - man/io_uring_register_file_alloc_range.3 | 52 - man/io_uring_register_file_alloc_range.3.md | 58 + man/io_uring_register_files.3 | 120 - man/io_uring_register_files.3.md | 99 + man/io_uring_register_files_sparse.3 | 1 - man/io_uring_register_files_tags.3 | 1 - man/io_uring_register_files_update.3 | 1 - man/io_uring_register_files_update_tag.3 | 1 - man/io_uring_register_ifq.3 | 49 - man/io_uring_register_ifq.3.md | 49 + man/io_uring_register_iowq_aff.3 | 67 - man/io_uring_register_iowq_aff.3.md | 68 + man/io_uring_register_iowq_max_workers.3 | 71 - man/io_uring_register_iowq_max_workers.3.md | 77 + man/io_uring_register_napi.3 | 40 - man/io_uring_register_napi.3.md | 43 + man/io_uring_register_personality.3 | 34 - man/io_uring_register_personality.3.md | 43 + man/io_uring_register_probe.3 | 47 - man/io_uring_register_probe.3.md | 51 + man/io_uring_register_query.3 | 114 - man/io_uring_register_query.3.md | 99 + man/io_uring_register_region.3 | 124 - man/io_uring_register_region.3.md | 101 + man/io_uring_register_restrictions.3 | 53 - man/io_uring_register_restrictions.3.md | 53 + man/io_uring_register_ring_fd.3 | 51 - man/io_uring_register_ring_fd.3.md | 61 + man/io_uring_register_sync_cancel.3 | 73 - man/io_uring_register_sync_cancel.3.md | 65 + man/io_uring_register_sync_msg.3 | 74 - man/io_uring_register_sync_msg.3.md | 71 + man/io_uring_register_wait_reg.3 | 45 - man/io_uring_register_wait_reg.3.md | 49 + man/io_uring_register_zcrx_ctrl.3 | 84 - man/io_uring_register_zcrx_ctrl.3.md | 77 + man/io_uring_registered_buffers.7 | 238 -- man/io_uring_registered_buffers.7.md | 215 ++ man/io_uring_registered_files.7 | 228 -- man/io_uring_registered_files.7.md | 216 ++ man/io_uring_resize_rings.3 | 116 - man/io_uring_resize_rings.3.md | 110 + man/io_uring_ring_dontfork.3 | 36 - man/io_uring_ring_dontfork.3.md | 43 + man/io_uring_set_iowait.3 | 57 - man/io_uring_set_iowait.3.md | 57 + man/io_uring_setup.2 | 820 ------ man/io_uring_setup.2.md | 664 +++++ man/io_uring_setup_buf_ring.3 | 94 - man/io_uring_setup_buf_ring.3.md | 85 + man/io_uring_setup_flags.7 | 451 ---- man/io_uring_setup_flags.7.md | 373 +++ man/io_uring_sq_ready.3 | 31 - man/io_uring_sq_ready.3.md | 42 + man/io_uring_sq_space_left.3 | 25 - man/io_uring_sq_space_left.3.md | 36 + man/io_uring_sqe_set_buf_group.3 | 32 - man/io_uring_sqe_set_buf_group.3.md | 41 + man/io_uring_sqe_set_data.3 | 57 - man/io_uring_sqe_set_data.3.md | 56 + man/io_uring_sqe_set_data64.3 | 1 - man/io_uring_sqe_set_flags.3 | 87 - man/io_uring_sqe_set_flags.3.md | 103 + man/io_uring_sqpoll.7 | 259 -- man/io_uring_sqpoll.7.md | 244 ++ man/io_uring_sqring_wait.3 | 34 - man/io_uring_sqring_wait.3.md | 44 + man/io_uring_submit.3 | 51 - man/io_uring_submit.3.md | 59 + man/io_uring_submit_and_get_events.3 | 31 - man/io_uring_submit_and_get_events.3.md | 41 + man/io_uring_submit_and_wait.3 | 44 - man/io_uring_submit_and_wait.3.md | 50 + man/io_uring_submit_and_wait_min_timeout.3 | 119 - man/io_uring_submit_and_wait_min_timeout.3.md | 94 + man/io_uring_submit_and_wait_reg.3 | 64 - man/io_uring_submit_and_wait_reg.3.md | 62 + man/io_uring_submit_and_wait_timeout.3 | 74 - man/io_uring_submit_and_wait_timeout.3.md | 70 + man/io_uring_unregister_buf_ring.3 | 30 - man/io_uring_unregister_buf_ring.3.md | 40 + man/io_uring_unregister_buffers.3 | 27 - man/io_uring_unregister_buffers.3.md | 38 + man/io_uring_unregister_eventfd.3 | 1 - man/io_uring_unregister_files.3 | 27 - man/io_uring_unregister_files.3.md | 37 + man/io_uring_unregister_iowq_aff.3 | 1 - man/io_uring_unregister_napi.3 | 27 - man/io_uring_unregister_napi.3.md | 35 + man/io_uring_unregister_personality.3 | 33 - man/io_uring_unregister_personality.3.md | 41 + man/io_uring_unregister_ring_fd.3 | 32 - man/io_uring_unregister_ring_fd.3.md | 43 + man/io_uring_wait_cqe.3 | 41 - man/io_uring_wait_cqe.3.md | 47 + man/io_uring_wait_cqe_nr.3 | 49 - man/io_uring_wait_cqe_nr.3.md | 54 + man/io_uring_wait_cqe_timeout.3 | 62 - man/io_uring_wait_cqe_timeout.3.md | 56 + man/io_uring_wait_cqes.3 | 82 - man/io_uring_wait_cqes.3.md | 67 + man/io_uring_wait_cqes_min_timeout.3 | 76 - man/io_uring_wait_cqes_min_timeout.3.md | 68 + 397 files changed, 16844 insertions(+), 18975 deletions(-) create mode 100644 man/.gitignore create mode 100644 man/ALIASES delete mode 120000 man/IO_URING_CHECK_VERSION.3 delete mode 120000 man/IO_URING_VERSION_MAJOR.3 delete mode 120000 man/IO_URING_VERSION_MINOR.3 create mode 100644 man/Makefile delete mode 120000 man/__io_uring_buf_ring_cq_advance.3 delete mode 100644 man/io_uring.7 create mode 100644 man/io_uring.7.md delete mode 100644 man/io_uring_buf_ring_add.3 create mode 100644 man/io_uring_buf_ring_add.3.md delete mode 100644 man/io_uring_buf_ring_advance.3 create mode 100644 man/io_uring_buf_ring_advance.3.md delete mode 100644 man/io_uring_buf_ring_available.3 create mode 100644 man/io_uring_buf_ring_available.3.md delete mode 100644 man/io_uring_buf_ring_cq_advance.3 create mode 100644 man/io_uring_buf_ring_cq_advance.3.md delete mode 100644 man/io_uring_buf_ring_init.3 create mode 100644 man/io_uring_buf_ring_init.3.md delete mode 100644 man/io_uring_buf_ring_mask.3 create mode 100644 man/io_uring_buf_ring_mask.3.md delete mode 100644 man/io_uring_cancelation.7 create mode 100644 man/io_uring_cancelation.7.md delete mode 100644 man/io_uring_check_version.3 create mode 100644 man/io_uring_check_version.3.md delete mode 100644 man/io_uring_clone_buffers.3 create mode 100644 man/io_uring_clone_buffers.3.md delete mode 120000 man/io_uring_clone_buffers_offset.3 delete mode 100644 man/io_uring_close_ring_fd.3 create mode 100644 man/io_uring_close_ring_fd.3.md delete mode 100644 man/io_uring_cq_advance.3 create mode 100644 man/io_uring_cq_advance.3.md delete mode 100644 man/io_uring_cq_eventfd_enabled.3 create mode 100644 man/io_uring_cq_eventfd_enabled.3.md delete mode 100644 man/io_uring_cq_eventfd_toggle.3 create mode 100644 man/io_uring_cq_eventfd_toggle.3.md delete mode 100644 man/io_uring_cq_has_overflow.3 create mode 100644 man/io_uring_cq_has_overflow.3.md delete mode 100644 man/io_uring_cq_ready.3 create mode 100644 man/io_uring_cq_ready.3.md delete mode 100644 man/io_uring_cqe_get_data.3 create mode 100644 man/io_uring_cqe_get_data.3.md delete mode 120000 man/io_uring_cqe_get_data64.3 delete mode 100644 man/io_uring_cqe_nr.3 create mode 100644 man/io_uring_cqe_nr.3.md delete mode 100644 man/io_uring_cqe_seen.3 create mode 100644 man/io_uring_cqe_seen.3.md delete mode 100644 man/io_uring_enable_rings.3 create mode 100644 man/io_uring_enable_rings.3.md delete mode 100644 man/io_uring_enter.2 create mode 100644 man/io_uring_enter.2.md delete mode 120000 man/io_uring_enter2.2 delete mode 100644 man/io_uring_for_each_cqe.3 create mode 100644 man/io_uring_for_each_cqe.3.md delete mode 100644 man/io_uring_free_buf_ring.3 create mode 100644 man/io_uring_free_buf_ring.3.md delete mode 100644 man/io_uring_free_probe.3 create mode 100644 man/io_uring_free_probe.3.md delete mode 100644 man/io_uring_get_events.3 create mode 100644 man/io_uring_get_events.3.md delete mode 100644 man/io_uring_get_probe.3 create mode 100644 man/io_uring_get_probe.3.md delete mode 100644 man/io_uring_get_probe_ring.3 create mode 100644 man/io_uring_get_probe_ring.3.md delete mode 100644 man/io_uring_get_sqe.3 create mode 100644 man/io_uring_get_sqe.3.md delete mode 100644 man/io_uring_get_sqe128.3 create mode 100644 man/io_uring_get_sqe128.3.md delete mode 100644 man/io_uring_linked_requests.7 create mode 100644 man/io_uring_linked_requests.7.md delete mode 120000 man/io_uring_major_version.3 delete mode 100644 man/io_uring_memory_size_params.3 create mode 100644 man/io_uring_memory_size_params.3.md delete mode 120000 man/io_uring_minor_version.3 delete mode 100644 man/io_uring_mlock_size.3 create mode 100644 man/io_uring_mlock_size.3.md delete mode 100644 man/io_uring_mlock_size_params.3 create mode 100644 man/io_uring_mlock_size_params.3.md delete mode 100644 man/io_uring_multishot.7 create mode 100644 man/io_uring_multishot.7.md delete mode 100644 man/io_uring_opcode_supported.3 create mode 100644 man/io_uring_opcode_supported.3.md delete mode 120000 man/io_uring_peek_batch_cqe.3 delete mode 100644 man/io_uring_peek_cqe.3 create mode 100644 man/io_uring_peek_cqe.3.md delete mode 100644 man/io_uring_prep_accept.3 create mode 100644 man/io_uring_prep_accept.3.md delete mode 120000 man/io_uring_prep_accept_direct.3 delete mode 100644 man/io_uring_prep_bind.3 create mode 100644 man/io_uring_prep_bind.3.md delete mode 100644 man/io_uring_prep_cancel.3 create mode 100644 man/io_uring_prep_cancel.3.md delete mode 120000 man/io_uring_prep_cancel64.3 delete mode 120000 man/io_uring_prep_cancel_fd.3 delete mode 100644 man/io_uring_prep_close.3 create mode 100644 man/io_uring_prep_close.3.md delete mode 120000 man/io_uring_prep_close_direct.3 delete mode 100644 man/io_uring_prep_cmd_discard.3 create mode 100644 man/io_uring_prep_cmd_discard.3.md delete mode 100644 man/io_uring_prep_cmd_getsockname.3 create mode 100644 man/io_uring_prep_cmd_getsockname.3.md delete mode 100644 man/io_uring_prep_cmd_sock.3 create mode 100644 man/io_uring_prep_cmd_sock.3.md delete mode 100644 man/io_uring_prep_connect.3 create mode 100644 man/io_uring_prep_connect.3.md delete mode 100644 man/io_uring_prep_epoll_ctl.3 create mode 100644 man/io_uring_prep_epoll_ctl.3.md delete mode 100644 man/io_uring_prep_epoll_wait.3 create mode 100644 man/io_uring_prep_epoll_wait.3.md delete mode 100644 man/io_uring_prep_fadvise.3 create mode 100644 man/io_uring_prep_fadvise.3.md delete mode 120000 man/io_uring_prep_fadvise64.3 delete mode 100644 man/io_uring_prep_fallocate.3 create mode 100644 man/io_uring_prep_fallocate.3.md delete mode 120000 man/io_uring_prep_fgetxattr.3 delete mode 100644 man/io_uring_prep_files_update.3 create mode 100644 man/io_uring_prep_files_update.3.md delete mode 100644 man/io_uring_prep_fixed_fd_install.3 create mode 100644 man/io_uring_prep_fixed_fd_install.3.md delete mode 120000 man/io_uring_prep_fsetxattr.3 delete mode 100644 man/io_uring_prep_fsync.3 create mode 100644 man/io_uring_prep_fsync.3.md delete mode 100644 man/io_uring_prep_ftruncate.3 create mode 100644 man/io_uring_prep_ftruncate.3.md delete mode 100644 man/io_uring_prep_futex_wait.3 create mode 100644 man/io_uring_prep_futex_wait.3.md delete mode 100644 man/io_uring_prep_futex_waitv.3 create mode 100644 man/io_uring_prep_futex_waitv.3.md delete mode 100644 man/io_uring_prep_futex_wake.3 create mode 100644 man/io_uring_prep_futex_wake.3.md delete mode 100644 man/io_uring_prep_getxattr.3 create mode 100644 man/io_uring_prep_getxattr.3.md delete mode 120000 man/io_uring_prep_link.3 delete mode 100644 man/io_uring_prep_link_timeout.3 create mode 100644 man/io_uring_prep_link_timeout.3.md delete mode 100644 man/io_uring_prep_linkat.3 create mode 100644 man/io_uring_prep_linkat.3.md delete mode 100644 man/io_uring_prep_listen.3 create mode 100644 man/io_uring_prep_listen.3.md delete mode 100644 man/io_uring_prep_madvise.3 create mode 100644 man/io_uring_prep_madvise.3.md delete mode 120000 man/io_uring_prep_madvise64.3 delete mode 120000 man/io_uring_prep_mkdir.3 delete mode 100644 man/io_uring_prep_mkdirat.3 create mode 100644 man/io_uring_prep_mkdirat.3.md delete mode 100644 man/io_uring_prep_msg_ring.3 create mode 100644 man/io_uring_prep_msg_ring.3.md delete mode 120000 man/io_uring_prep_msg_ring_cqe_flags.3 delete mode 100644 man/io_uring_prep_msg_ring_fd.3 create mode 100644 man/io_uring_prep_msg_ring_fd.3.md delete mode 120000 man/io_uring_prep_msg_ring_fd_alloc.3 delete mode 120000 man/io_uring_prep_multishot_accept.3 delete mode 120000 man/io_uring_prep_multishot_accept_direct.3 delete mode 100644 man/io_uring_prep_nop.3 create mode 100644 man/io_uring_prep_nop.3.md delete mode 100644 man/io_uring_prep_nop128.3 create mode 100644 man/io_uring_prep_nop128.3.md delete mode 120000 man/io_uring_prep_open.3 delete mode 120000 man/io_uring_prep_open_direct.3 delete mode 100644 man/io_uring_prep_openat.3 create mode 100644 man/io_uring_prep_openat.3.md delete mode 100644 man/io_uring_prep_openat2.3 create mode 100644 man/io_uring_prep_openat2.3.md delete mode 120000 man/io_uring_prep_openat2_direct.3 delete mode 120000 man/io_uring_prep_openat_direct.3 delete mode 100644 man/io_uring_prep_pipe.3 create mode 100644 man/io_uring_prep_pipe.3.md delete mode 120000 man/io_uring_prep_pipe_direct.3 delete mode 100644 man/io_uring_prep_poll_add.3 create mode 100644 man/io_uring_prep_poll_add.3.md delete mode 120000 man/io_uring_prep_poll_multishot.3 delete mode 100644 man/io_uring_prep_poll_remove.3 create mode 100644 man/io_uring_prep_poll_remove.3.md delete mode 100644 man/io_uring_prep_poll_update.3 create mode 100644 man/io_uring_prep_poll_update.3.md delete mode 100644 man/io_uring_prep_provide_buffers.3 create mode 100644 man/io_uring_prep_provide_buffers.3.md delete mode 100644 man/io_uring_prep_read.3 create mode 100644 man/io_uring_prep_read.3.md delete mode 100644 man/io_uring_prep_read_fixed.3 create mode 100644 man/io_uring_prep_read_fixed.3.md delete mode 100644 man/io_uring_prep_read_multishot.3 create mode 100644 man/io_uring_prep_read_multishot.3.md delete mode 100644 man/io_uring_prep_readv.3 create mode 100644 man/io_uring_prep_readv.3.md delete mode 100644 man/io_uring_prep_readv2.3 create mode 100644 man/io_uring_prep_readv2.3.md delete mode 100644 man/io_uring_prep_readv_fixed.3 create mode 100644 man/io_uring_prep_readv_fixed.3.md delete mode 100644 man/io_uring_prep_recv.3 create mode 100644 man/io_uring_prep_recv.3.md delete mode 120000 man/io_uring_prep_recv_multishot.3 delete mode 100644 man/io_uring_prep_recvmsg.3 create mode 100644 man/io_uring_prep_recvmsg.3.md delete mode 120000 man/io_uring_prep_recvmsg_multishot.3 delete mode 100644 man/io_uring_prep_remove_buffers.3 create mode 100644 man/io_uring_prep_remove_buffers.3.md delete mode 120000 man/io_uring_prep_rename.3 delete mode 100644 man/io_uring_prep_renameat.3 create mode 100644 man/io_uring_prep_renameat.3.md delete mode 100644 man/io_uring_prep_send.3 create mode 100644 man/io_uring_prep_send.3.md delete mode 120000 man/io_uring_prep_send_bundle.3 delete mode 100644 man/io_uring_prep_send_set_addr.3 create mode 100644 man/io_uring_prep_send_set_addr.3.md delete mode 100644 man/io_uring_prep_send_zc.3 create mode 100644 man/io_uring_prep_send_zc.3.md delete mode 120000 man/io_uring_prep_send_zc_fixed.3 delete mode 100644 man/io_uring_prep_sendmsg.3 create mode 100644 man/io_uring_prep_sendmsg.3.md delete mode 120000 man/io_uring_prep_sendmsg_zc.3 delete mode 100644 man/io_uring_prep_sendmsg_zc_fixed.3 create mode 100644 man/io_uring_prep_sendmsg_zc_fixed.3.md delete mode 120000 man/io_uring_prep_sendto.3 delete mode 100644 man/io_uring_prep_setxattr.3 create mode 100644 man/io_uring_prep_setxattr.3.md delete mode 100644 man/io_uring_prep_shutdown.3 create mode 100644 man/io_uring_prep_shutdown.3.md delete mode 100644 man/io_uring_prep_socket.3 create mode 100644 man/io_uring_prep_socket.3.md delete mode 120000 man/io_uring_prep_socket_direct.3 delete mode 120000 man/io_uring_prep_socket_direct_alloc.3 delete mode 100644 man/io_uring_prep_splice.3 create mode 100644 man/io_uring_prep_splice.3.md delete mode 100644 man/io_uring_prep_statx.3 create mode 100644 man/io_uring_prep_statx.3.md delete mode 120000 man/io_uring_prep_symlink.3 delete mode 100644 man/io_uring_prep_symlinkat.3 create mode 100644 man/io_uring_prep_symlinkat.3.md delete mode 100644 man/io_uring_prep_sync_file_range.3 create mode 100644 man/io_uring_prep_sync_file_range.3.md delete mode 100644 man/io_uring_prep_tee.3 create mode 100644 man/io_uring_prep_tee.3.md delete mode 100644 man/io_uring_prep_timeout.3 create mode 100644 man/io_uring_prep_timeout.3.md delete mode 120000 man/io_uring_prep_timeout_remove.3 delete mode 100644 man/io_uring_prep_timeout_update.3 create mode 100644 man/io_uring_prep_timeout_update.3.md delete mode 120000 man/io_uring_prep_unlink.3 delete mode 100644 man/io_uring_prep_unlinkat.3 create mode 100644 man/io_uring_prep_unlinkat.3.md delete mode 100644 man/io_uring_prep_uring_cmd.3 create mode 100644 man/io_uring_prep_uring_cmd.3.md delete mode 100644 man/io_uring_prep_uring_cmd128.3 create mode 100644 man/io_uring_prep_uring_cmd128.3.md delete mode 100644 man/io_uring_prep_waitid.3 create mode 100644 man/io_uring_prep_waitid.3.md delete mode 100644 man/io_uring_prep_write.3 create mode 100644 man/io_uring_prep_write.3.md delete mode 100644 man/io_uring_prep_write_fixed.3 create mode 100644 man/io_uring_prep_write_fixed.3.md delete mode 100644 man/io_uring_prep_writev.3 create mode 100644 man/io_uring_prep_writev.3.md delete mode 100644 man/io_uring_prep_writev2.3 create mode 100644 man/io_uring_prep_writev2.3.md delete mode 100644 man/io_uring_prep_writev_fixed.3 create mode 100644 man/io_uring_prep_writev_fixed.3.md delete mode 100644 man/io_uring_provided_buffers.7 create mode 100644 man/io_uring_provided_buffers.7.md delete mode 100644 man/io_uring_queue_exit.3 create mode 100644 man/io_uring_queue_exit.3.md delete mode 100644 man/io_uring_queue_init.3 create mode 100644 man/io_uring_queue_init.3.md delete mode 120000 man/io_uring_queue_init_mem.3 delete mode 120000 man/io_uring_queue_init_params.3 delete mode 100644 man/io_uring_queue_mmap.3 create mode 100644 man/io_uring_queue_mmap.3.md delete mode 120000 man/io_uring_recvmsg_cmsg_firsthdr.3 delete mode 120000 man/io_uring_recvmsg_cmsg_nexthdr.3 delete mode 120000 man/io_uring_recvmsg_name.3 delete mode 100644 man/io_uring_recvmsg_out.3 create mode 100644 man/io_uring_recvmsg_out.3.md delete mode 120000 man/io_uring_recvmsg_payload.3 delete mode 120000 man/io_uring_recvmsg_payload_length.3 delete mode 120000 man/io_uring_recvmsg_validate.3 delete mode 100644 man/io_uring_register.2 create mode 100644 man/io_uring_register.2.md delete mode 100644 man/io_uring_register_bpf_filter.3 create mode 100644 man/io_uring_register_bpf_filter.3.md delete mode 120000 man/io_uring_register_bpf_filter_task.3 delete mode 100644 man/io_uring_register_buf_ring.3 create mode 100644 man/io_uring_register_buf_ring.3.md delete mode 100644 man/io_uring_register_buffers.3 create mode 100644 man/io_uring_register_buffers.3.md delete mode 120000 man/io_uring_register_buffers_sparse.3 delete mode 120000 man/io_uring_register_buffers_tags.3 delete mode 120000 man/io_uring_register_buffers_update_tag.3 delete mode 100644 man/io_uring_register_clock.3 create mode 100644 man/io_uring_register_clock.3.md delete mode 100644 man/io_uring_register_eventfd.3 create mode 100644 man/io_uring_register_eventfd.3.md delete mode 120000 man/io_uring_register_eventfd_async.3 delete mode 100644 man/io_uring_register_file_alloc_range.3 create mode 100644 man/io_uring_register_file_alloc_range.3.md delete mode 100644 man/io_uring_register_files.3 create mode 100644 man/io_uring_register_files.3.md delete mode 120000 man/io_uring_register_files_sparse.3 delete mode 120000 man/io_uring_register_files_tags.3 delete mode 120000 man/io_uring_register_files_update.3 delete mode 120000 man/io_uring_register_files_update_tag.3 delete mode 100644 man/io_uring_register_ifq.3 create mode 100644 man/io_uring_register_ifq.3.md delete mode 100644 man/io_uring_register_iowq_aff.3 create mode 100644 man/io_uring_register_iowq_aff.3.md delete mode 100644 man/io_uring_register_iowq_max_workers.3 create mode 100644 man/io_uring_register_iowq_max_workers.3.md delete mode 100644 man/io_uring_register_napi.3 create mode 100644 man/io_uring_register_napi.3.md delete mode 100644 man/io_uring_register_personality.3 create mode 100644 man/io_uring_register_personality.3.md delete mode 100644 man/io_uring_register_probe.3 create mode 100644 man/io_uring_register_probe.3.md delete mode 100644 man/io_uring_register_query.3 create mode 100644 man/io_uring_register_query.3.md delete mode 100644 man/io_uring_register_region.3 create mode 100644 man/io_uring_register_region.3.md delete mode 100644 man/io_uring_register_restrictions.3 create mode 100644 man/io_uring_register_restrictions.3.md delete mode 100644 man/io_uring_register_ring_fd.3 create mode 100644 man/io_uring_register_ring_fd.3.md delete mode 100644 man/io_uring_register_sync_cancel.3 create mode 100644 man/io_uring_register_sync_cancel.3.md delete mode 100644 man/io_uring_register_sync_msg.3 create mode 100644 man/io_uring_register_sync_msg.3.md delete mode 100644 man/io_uring_register_wait_reg.3 create mode 100644 man/io_uring_register_wait_reg.3.md delete mode 100644 man/io_uring_register_zcrx_ctrl.3 create mode 100644 man/io_uring_register_zcrx_ctrl.3.md delete mode 100644 man/io_uring_registered_buffers.7 create mode 100644 man/io_uring_registered_buffers.7.md delete mode 100644 man/io_uring_registered_files.7 create mode 100644 man/io_uring_registered_files.7.md delete mode 100644 man/io_uring_resize_rings.3 create mode 100644 man/io_uring_resize_rings.3.md delete mode 100644 man/io_uring_ring_dontfork.3 create mode 100644 man/io_uring_ring_dontfork.3.md delete mode 100644 man/io_uring_set_iowait.3 create mode 100644 man/io_uring_set_iowait.3.md delete mode 100644 man/io_uring_setup.2 create mode 100644 man/io_uring_setup.2.md delete mode 100644 man/io_uring_setup_buf_ring.3 create mode 100644 man/io_uring_setup_buf_ring.3.md delete mode 100644 man/io_uring_setup_flags.7 create mode 100644 man/io_uring_setup_flags.7.md delete mode 100644 man/io_uring_sq_ready.3 create mode 100644 man/io_uring_sq_ready.3.md delete mode 100644 man/io_uring_sq_space_left.3 create mode 100644 man/io_uring_sq_space_left.3.md delete mode 100644 man/io_uring_sqe_set_buf_group.3 create mode 100644 man/io_uring_sqe_set_buf_group.3.md delete mode 100644 man/io_uring_sqe_set_data.3 create mode 100644 man/io_uring_sqe_set_data.3.md delete mode 120000 man/io_uring_sqe_set_data64.3 delete mode 100644 man/io_uring_sqe_set_flags.3 create mode 100644 man/io_uring_sqe_set_flags.3.md delete mode 100644 man/io_uring_sqpoll.7 create mode 100644 man/io_uring_sqpoll.7.md delete mode 100644 man/io_uring_sqring_wait.3 create mode 100644 man/io_uring_sqring_wait.3.md delete mode 100644 man/io_uring_submit.3 create mode 100644 man/io_uring_submit.3.md delete mode 100644 man/io_uring_submit_and_get_events.3 create mode 100644 man/io_uring_submit_and_get_events.3.md delete mode 100644 man/io_uring_submit_and_wait.3 create mode 100644 man/io_uring_submit_and_wait.3.md delete mode 100644 man/io_uring_submit_and_wait_min_timeout.3 create mode 100644 man/io_uring_submit_and_wait_min_timeout.3.md delete mode 100644 man/io_uring_submit_and_wait_reg.3 create mode 100644 man/io_uring_submit_and_wait_reg.3.md delete mode 100644 man/io_uring_submit_and_wait_timeout.3 create mode 100644 man/io_uring_submit_and_wait_timeout.3.md delete mode 100644 man/io_uring_unregister_buf_ring.3 create mode 100644 man/io_uring_unregister_buf_ring.3.md delete mode 100644 man/io_uring_unregister_buffers.3 create mode 100644 man/io_uring_unregister_buffers.3.md delete mode 120000 man/io_uring_unregister_eventfd.3 delete mode 100644 man/io_uring_unregister_files.3 create mode 100644 man/io_uring_unregister_files.3.md delete mode 120000 man/io_uring_unregister_iowq_aff.3 delete mode 100644 man/io_uring_unregister_napi.3 create mode 100644 man/io_uring_unregister_napi.3.md delete mode 100644 man/io_uring_unregister_personality.3 create mode 100644 man/io_uring_unregister_personality.3.md delete mode 100644 man/io_uring_unregister_ring_fd.3 create mode 100644 man/io_uring_unregister_ring_fd.3.md delete mode 100644 man/io_uring_wait_cqe.3 create mode 100644 man/io_uring_wait_cqe.3.md delete mode 100644 man/io_uring_wait_cqe_nr.3 create mode 100644 man/io_uring_wait_cqe_nr.3.md delete mode 100644 man/io_uring_wait_cqe_timeout.3 create mode 100644 man/io_uring_wait_cqe_timeout.3.md delete mode 100644 man/io_uring_wait_cqes.3 create mode 100644 man/io_uring_wait_cqes.3.md delete mode 100644 man/io_uring_wait_cqes_min_timeout.3 create mode 100644 man/io_uring_wait_cqes_min_timeout.3.md
Signature · 1 line
2.54.0
PATCH 1/3 man: Generate aliases during compilation
In preparation of the markdown conversion, instead of maintaining symlinks for multiple names of the same manpage, generate them as a compilation step.
--- Makefile | 2 + man/ALIASES | 62 +++++++++++++++++++++ man/IO_URING_CHECK_VERSION.3 | 1 - man/IO_URING_VERSION_MAJOR.3 | 1 - man/IO_URING_VERSION_MINOR.3 | 1 - man/Makefile | 8 +++ man/__io_uring_buf_ring_cq_advance.3 | 1 - man/io_uring_clone_buffers_offset.3 | 1 - man/io_uring_cqe_get_data64.3 | 1 - man/io_uring_enter2.2 | 1 - man/io_uring_major_version.3 | 1 - man/io_uring_minor_version.3 | 1 - man/io_uring_peek_batch_cqe.3 | 1 - man/io_uring_prep_accept_direct.3 | 1 - man/io_uring_prep_cancel64.3 | 1 - man/io_uring_prep_cancel_fd.3 | 1 - man/io_uring_prep_close_direct.3 | 1 - man/io_uring_prep_fadvise64.3 | 1 - man/io_uring_prep_fgetxattr.3 | 1 - man/io_uring_prep_fsetxattr.3 | 1 - man/io_uring_prep_link.3 | 1 - man/io_uring_prep_madvise64.3 | 1 - man/io_uring_prep_mkdir.3 | 1 - man/io_uring_prep_msg_ring_cqe_flags.3 | 1 - man/io_uring_prep_msg_ring_fd_alloc.3 | 1 - man/io_uring_prep_multishot_accept.3 | 1 - man/io_uring_prep_multishot_accept_direct.3 | 1 - man/io_uring_prep_open.3 | 1 - man/io_uring_prep_open_direct.3 | 1 - man/io_uring_prep_openat2_direct.3 | 1 - man/io_uring_prep_openat_direct.3 | 1 - man/io_uring_prep_pipe_direct.3 | 1 - man/io_uring_prep_poll_multishot.3 | 1 - man/io_uring_prep_recv_multishot.3 | 1 - man/io_uring_prep_recvmsg_multishot.3 | 1 - man/io_uring_prep_rename.3 | 1 - man/io_uring_prep_send_bundle.3 | 1 - man/io_uring_prep_send_zc_fixed.3 | 1 - man/io_uring_prep_sendmsg_zc.3 | 1 - man/io_uring_prep_sendto.3 | 1 - man/io_uring_prep_socket_direct.3 | 1 - man/io_uring_prep_socket_direct_alloc.3 | 1 - man/io_uring_prep_symlink.3 | 1 - man/io_uring_prep_timeout_remove.3 | 1 - man/io_uring_prep_unlink.3 | 1 - man/io_uring_queue_init_mem.3 | 1 - man/io_uring_queue_init_params.3 | 1 - man/io_uring_recvmsg_cmsg_firsthdr.3 | 1 - man/io_uring_recvmsg_cmsg_nexthdr.3 | 1 - man/io_uring_recvmsg_name.3 | 1 - man/io_uring_recvmsg_payload.3 | 1 - man/io_uring_recvmsg_payload_length.3 | 1 - man/io_uring_recvmsg_validate.3 | 1 - man/io_uring_register_bpf_filter_task.3 | 1 - man/io_uring_register_buffers_sparse.3 | 1 - man/io_uring_register_buffers_tags.3 | 1 - man/io_uring_register_buffers_update_tag.3 | 1 - man/io_uring_register_eventfd_async.3 | 1 - man/io_uring_register_files_sparse.3 | 1 - man/io_uring_register_files_tags.3 | 1 - man/io_uring_register_files_update.3 | 1 - man/io_uring_register_files_update_tag.3 | 1 - man/io_uring_sqe_set_data64.3 | 1 - man/io_uring_unregister_eventfd.3 | 1 - man/io_uring_unregister_iowq_aff.3 | 1 - 65 files changed, 72 insertions(+), 62 deletions(-) create mode 100644 man/ALIASES delete mode 120000 man/IO_URING_CHECK_VERSION.3 delete mode 120000 man/IO_URING_VERSION_MAJOR.3 delete mode 120000 man/IO_URING_VERSION_MINOR.3 create mode 100644 man/Makefile delete mode 120000 man/__io_uring_buf_ring_cq_advance.3 delete mode 120000 man/io_uring_clone_buffers_offset.3 delete mode 120000 man/io_uring_cqe_get_data64.3 delete mode 120000 man/io_uring_enter2.2 delete mode 120000 man/io_uring_major_version.3 delete mode 120000 man/io_uring_minor_version.3 delete mode 120000 man/io_uring_peek_batch_cqe.3 delete mode 120000 man/io_uring_prep_accept_direct.3 delete mode 120000 man/io_uring_prep_cancel64.3 delete mode 120000 man/io_uring_prep_cancel_fd.3 delete mode 120000 man/io_uring_prep_close_direct.3 delete mode 120000 man/io_uring_prep_fadvise64.3 delete mode 120000 man/io_uring_prep_fgetxattr.3 delete mode 120000 man/io_uring_prep_fsetxattr.3 delete mode 120000 man/io_uring_prep_link.3 delete mode 120000 man/io_uring_prep_madvise64.3 delete mode 120000 man/io_uring_prep_mkdir.3 delete mode 120000 man/io_uring_prep_msg_ring_cqe_flags.3 delete mode 120000 man/io_uring_prep_msg_ring_fd_alloc.3 delete mode 120000 man/io_uring_prep_multishot_accept.3 delete mode 120000 man/io_uring_prep_multishot_accept_direct.3 delete mode 120000 man/io_uring_prep_open.3 delete mode 120000 man/io_uring_prep_open_direct.3 delete mode 120000 man/io_uring_prep_openat2_direct.3 delete mode 120000 man/io_uring_prep_openat_direct.3 delete mode 120000 man/io_uring_prep_pipe_direct.3 delete mode 120000 man/io_uring_prep_poll_multishot.3 delete mode 120000 man/io_uring_prep_recv_multishot.3 delete mode 120000 man/io_uring_prep_recvmsg_multishot.3 delete mode 120000 man/io_uring_prep_rename.3 delete mode 120000 man/io_uring_prep_send_bundle.3 delete mode 120000 man/io_uring_prep_send_zc_fixed.3 delete mode 120000 man/io_uring_prep_sendmsg_zc.3 delete mode 120000 man/io_uring_prep_sendto.3 delete mode 120000 man/io_uring_prep_socket_direct.3 delete mode 120000 man/io_uring_prep_socket_direct_alloc.3 delete mode 120000 man/io_uring_prep_symlink.3 delete mode 120000 man/io_uring_prep_timeout_remove.3 delete mode 120000 man/io_uring_prep_unlink.3 delete mode 120000 man/io_uring_queue_init_mem.3 delete mode 120000 man/io_uring_queue_init_params.3 delete mode 120000 man/io_uring_recvmsg_cmsg_firsthdr.3 delete mode 120000 man/io_uring_recvmsg_cmsg_nexthdr.3 delete mode 120000 man/io_uring_recvmsg_name.3 delete mode 120000 man/io_uring_recvmsg_payload.3 delete mode 120000 man/io_uring_recvmsg_payload_length.3 delete mode 120000 man/io_uring_recvmsg_validate.3 delete mode 120000 man/io_uring_register_bpf_filter_task.3 delete mode 120000 man/io_uring_register_buffers_sparse.3 delete mode 120000 man/io_uring_register_buffers_tags.3 delete mode 120000 man/io_uring_register_buffers_update_tag.3 delete mode 120000 man/io_uring_register_eventfd_async.3 delete mode 120000 man/io_uring_register_files_sparse.3 delete mode 120000 man/io_uring_register_files_tags.3 delete mode 120000 man/io_uring_register_files_update.3 delete mode 120000 man/io_uring_register_files_update_tag.3 delete mode 120000 man/io_uring_sqe_set_data64.3 delete mode 120000 man/io_uring_unregister_eventfd.3 delete mode 120000 man/io_uring_unregister_iowq_aff.3
Makefile +2 -0
@@ -13,6 +13,7 @@ all: @$(MAKE) -C src @$(MAKE) -C test @$(MAKE) -C examples + @$(MAKE) -C man library: @$(MAKE) -C src
@@ -82,6 +83,7 @@ clean: @$(MAKE) -C src clean @$(MAKE) -C test clean @$(MAKE) -C examples clean + @$(MAKE) -C man clean cscope: @cscope -b -R
man/ALIASES new file +62 -0
62 lines not on this page · raw message
man/IO_URING_CHECK_VERSION.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_check_version.3
man/IO_URING_VERSION_MAJOR.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_check_version.3
man/IO_URING_VERSION_MINOR.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_check_version.3
man/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +.PHONY all clean + +all: gen_aliases + +gen_aliases: + while IFS=$$'\t' read -r link tgt ; do ln -f -s $$tgt $$link; done < ALIASES +clean: + -rm -f *.2 *.3 *.7
man/__io_uring_buf_ring_cq_advance.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_buf_ring_cq_advance.3
man/io_uring_clone_buffers_offset.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_clone_buffers.3
man/io_uring_cqe_get_data64.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_cqe_get_data.3
man/io_uring_enter2.2 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_enter.2
man/io_uring_major_version.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_check_version.3
man/io_uring_minor_version.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_check_version.3
man/io_uring_peek_batch_cqe.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_peek_cqe.3
man/io_uring_prep_accept_direct.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_accept.3
man/io_uring_prep_cancel64.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_cancel.3
man/io_uring_prep_cancel_fd.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_cancel.3
man/io_uring_prep_close_direct.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_close.3
man/io_uring_prep_fadvise64.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_fadvise.3
man/io_uring_prep_fgetxattr.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_getxattr.3
man/io_uring_prep_fsetxattr.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_setxattr.3
man/io_uring_prep_link.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_linkat.3
man/io_uring_prep_madvise64.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_madvise.3
man/io_uring_prep_mkdir.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_mkdirat.3
man/io_uring_prep_msg_ring_cqe_flags.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_msg_ring.3
man/io_uring_prep_msg_ring_fd_alloc.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_msg_ring_fd.3
man/io_uring_prep_multishot_accept.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_accept.3
man/io_uring_prep_multishot_accept_direct.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_accept.3
man/io_uring_prep_open.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_openat.3
man/io_uring_prep_open_direct.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_openat.3
man/io_uring_prep_openat2_direct.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_openat2.3
man/io_uring_prep_openat_direct.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_openat.3
man/io_uring_prep_pipe_direct.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_pipe.3
man/io_uring_prep_poll_multishot.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_poll_add.3
man/io_uring_prep_recv_multishot.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_recv.3
man/io_uring_prep_recvmsg_multishot.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_recvmsg.3
man/io_uring_prep_rename.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_renameat.3
man/io_uring_prep_send_bundle.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_send.3
man/io_uring_prep_send_zc_fixed.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_send_zc.3
man/io_uring_prep_sendmsg_zc.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_sendmsg.3
man/io_uring_prep_sendto.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_send.3
man/io_uring_prep_socket_direct.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_socket.3
man/io_uring_prep_socket_direct_alloc.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_socket.3
man/io_uring_prep_symlink.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_symlinkat.3
man/io_uring_prep_timeout_remove.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_timeout_update.3
man/io_uring_prep_unlink.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_prep_unlinkat.3
man/io_uring_queue_init_mem.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_queue_init.3
man/io_uring_queue_init_params.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_queue_init.3
man/io_uring_recvmsg_cmsg_firsthdr.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_recvmsg_out.3
man/io_uring_recvmsg_cmsg_nexthdr.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_recvmsg_out.3
man/io_uring_recvmsg_name.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_recvmsg_out.3
man/io_uring_recvmsg_payload.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_recvmsg_out.3
man/io_uring_recvmsg_payload_length.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_recvmsg_out.3
man/io_uring_recvmsg_validate.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_recvmsg_out.3
man/io_uring_register_bpf_filter_task.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_bpf_filter.3
man/io_uring_register_buffers_sparse.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_buffers.3
man/io_uring_register_buffers_tags.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_buffers.3
man/io_uring_register_buffers_update_tag.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_buffers.3
man/io_uring_register_eventfd_async.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_eventfd.3
man/io_uring_register_files_sparse.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_files.3
man/io_uring_register_files_tags.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_files.3
man/io_uring_register_files_update.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_files.3
man/io_uring_register_files_update_tag.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_files.3
man/io_uring_sqe_set_data64.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_sqe_set_data.3
man/io_uring_unregister_eventfd.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_eventfd.3
man/io_uring_unregister_iowq_aff.3 deleted +0 -1
@@ -1 +0,0 @@ -io_uring_register_iowq_aff.3
Signature · 1 line
2.54.0
PATCH 2/3 man: Introduce rules to convert Markdown to groff
In reply to Gabriel Krisman BertaziIntroduce infrastructure to convert back from Markdown to Groff during the compilation step.
This is split from the patch actually doing the convertion to facilitate review.
The conversion is not lossless, mostly due to groff being painful. You'll notice the conversion is not byte-per-byte accurate, but most of the differences are whitespace, which is not relevant. Other more tricky changes are in bold/italics, which I tried to preserve as much as possible.
This obviously adds a build dependency on pandoc, which is already packaged by any sane distro out there. The configure file is updated to check for that.
Groff comments need to be preserved because of copyrights notices. This is done by a pre-processor python script.
--- configure | 8 ++++++++ man/.gitignore | 8 ++++++++ man/Makefile | 13 +++++++++++-- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 man/.gitignore
configure +8 -0
@@ -530,6 +530,14 @@ if test "$has_clang" = "yes" && test "$has_bpftool" = "yes" && test "$has_bpf_cl output_mak "bpf_toolchain" "y" fi +############################################################################# +# check for pandoc + +if ! has pandoc ; then + fatal "pandoc is needed for manpages generation" +fi +print_config "pandoc" "yes" + ############################################################################# liburing_nolibc="no" if test "$use_libc" != "yes"; then
man/.gitignore new file +8 -0
@@ -0,0 +1,8 @@ +*.1 +*.2 +*.3 +*.4 +*.5 +*.6 +*.7 +*.8
man/Makefile +11 -2
@@ -1,6 +1,15 @@ -.PHONY all clean +MDS := $(wildcard *.md) +PAGES := $(patsubst %.md,%,$(MDS)) +VPATH = $(root)/man -all: gen_aliases +mandir ?= $(prefix)/share/man + +.PHONY: all clean + +all: $(PAGES) gen_aliases + +%: %.md + sed -E '/\.\\/d' $<| pandoc --standalone --to man -o $@ gen_aliases: while IFS=$$'\t' read -r link tgt ; do ln -f -s $$tgt $$link; done < ALIASES
Signature · 1 line
2.54.0
PATCH 3/3 man: Convert manpages to markdown
In reply to Gabriel Krisman BertaziFully automated conversion of groff manpages to MD. Care is taken to preserve copyright notices. This patch can be regenerated with the following script:
mkdir orig; mv *.1 *.2 *.3 *.4 *.5 *.6 *.7 *.8 orig/ for i in $(basename -a orig/*) ; do sed -n '/\.\\"/p' <orig/$i > $i.md sed -E '/.BI/ s/"//g' orig/$i | sed -E 's/^.BI(.*)/\1/' | \ pandoc -p --wrap=auto --columns=72 --standalone \ --lua-filter=indent-to-code.lua -f man -t markdown >> $i.md done rm -r orig
This the lua filter invoked above, required to fix the code blocks. It is the sole part of this patchset generated with AI:
local function indent_content(text)
local indented = " " .. text
indented = string.gsub(indented, "\n", "\n ")
return indented
end
function CodeBlock(elem)
elem.text = indent_content(elem.text)
elem.classes = { "text" }
return elem
end
function Para(elem)
if #elem.content < 1 then return nil end
if elem.content[1].t == 'Str' then
local text = elem.content[1].text
if string.sub(text, 1, 4) == " " then
elem.content[1].text = string.sub(text, 5)
local code_content = pandoc.utils.stringify(elem.content) local indented_content = indent_content(code_content) return pandoc.CodeBlock(indented_content, { "", { "text" }, {} })
end
end
end
--- man/io_uring.7 | 919 ------- man/io_uring.7.md | 779 ++++++ man/io_uring_buf_ring_add.3 | 64 - man/io_uring_buf_ring_add.3.md | 65 + man/io_uring_buf_ring_advance.3 | 31 - man/io_uring_buf_ring_advance.3.md | 41 + man/io_uring_buf_ring_available.3 | 47 - man/io_uring_buf_ring_available.3.md | 57 + man/io_uring_buf_ring_cq_advance.3 | 55 - man/io_uring_buf_ring_cq_advance.3.md | 56 + man/io_uring_buf_ring_init.3 | 36 - man/io_uring_buf_ring_init.3.md | 45 + man/io_uring_buf_ring_mask.3 | 27 - man/io_uring_buf_ring_mask.3.md | 37 + man/io_uring_cancelation.7 | 324 --- man/io_uring_cancelation.7.md | 288 +++ man/io_uring_check_version.3 | 72 - man/io_uring_check_version.3.md | 53 + man/io_uring_clone_buffers.3 | 165 -- man/io_uring_clone_buffers.3.md | 133 + man/io_uring_close_ring_fd.3 | 43 - man/io_uring_close_ring_fd.3.md | 55 + man/io_uring_cq_advance.3 | 49 - man/io_uring_cq_advance.3.md | 53 + man/io_uring_cq_eventfd_enabled.3 | 38 - man/io_uring_cq_eventfd_enabled.3.md | 45 + man/io_uring_cq_eventfd_toggle.3 | 48 - man/io_uring_cq_eventfd_toggle.3.md | 53 + man/io_uring_cq_has_overflow.3 | 31 - man/io_uring_cq_has_overflow.3.md | 46 + man/io_uring_cq_ready.3 | 26 - man/io_uring_cq_ready.3.md | 37 + man/io_uring_cqe_get_data.3 | 53 - man/io_uring_cqe_get_data.3.md | 50 + man/io_uring_cqe_nr.3 | 35 - man/io_uring_cqe_nr.3.md | 42 + man/io_uring_cqe_seen.3 | 41 - man/io_uring_cqe_seen.3.md | 47 + man/io_uring_enable_rings.3 | 40 - man/io_uring_enable_rings.3.md | 48 + man/io_uring_enter.2 | 2208 ----------------- man/io_uring_enter.2.md | 1466 +++++++++++ man/io_uring_for_each_cqe.3 | 63 - man/io_uring_for_each_cqe.3.md | 68 + man/io_uring_free_buf_ring.3 | 53 - man/io_uring_free_buf_ring.3.md | 55 + man/io_uring_free_probe.3 | 27 - man/io_uring_free_probe.3.md | 36 + man/io_uring_get_events.3 | 33 - man/io_uring_get_events.3.md | 43 + man/io_uring_get_probe.3 | 30 - man/io_uring_get_probe.3.md | 43 + man/io_uring_get_probe_ring.3 | 39 - man/io_uring_get_probe_ring.3.md | 45 + man/io_uring_get_sqe.3 | 57 - man/io_uring_get_sqe.3.md | 55 + man/io_uring_get_sqe128.3 | 67 - man/io_uring_get_sqe128.3.md | 59 + man/io_uring_linked_requests.7 | 271 -- man/io_uring_linked_requests.7.md | 261 ++ man/io_uring_memory_size_params.3 | 45 - man/io_uring_memory_size_params.3.md | 51 + man/io_uring_mlock_size.3 | 42 - man/io_uring_mlock_size.3.md | 47 + man/io_uring_mlock_size_params.3 | 48 - man/io_uring_mlock_size_params.3.md | 49 + man/io_uring_multishot.7 | 246 -- man/io_uring_multishot.7.md | 235 ++ man/io_uring_opcode_supported.3 | 30 - man/io_uring_opcode_supported.3.md | 39 + man/io_uring_peek_cqe.3 | 59 - man/io_uring_peek_cqe.3.md | 55 + man/io_uring_prep_accept.3 | 203 -- man/io_uring_prep_accept.3.md | 161 ++ man/io_uring_prep_bind.3 | 54 - man/io_uring_prep_bind.3.md | 52 + man/io_uring_prep_cancel.3 | 136 - man/io_uring_prep_cancel.3.md | 138 ++ man/io_uring_prep_close.3 | 67 - man/io_uring_prep_close.3.md | 62 + man/io_uring_prep_cmd_discard.3 | 64 - man/io_uring_prep_cmd_discard.3.md | 62 + man/io_uring_prep_cmd_getsockname.3 | 79 - man/io_uring_prep_cmd_getsockname.3.md | 64 + man/io_uring_prep_cmd_sock.3 | 219 -- man/io_uring_prep_cmd_sock.3.md | 159 ++ man/io_uring_prep_connect.3 | 66 - man/io_uring_prep_connect.3.md | 65 + man/io_uring_prep_epoll_ctl.3 | 74 - man/io_uring_prep_epoll_ctl.3.md | 68 + man/io_uring_prep_epoll_wait.3 | 64 - man/io_uring_prep_epoll_wait.3.md | 61 + man/io_uring_prep_fadvise.3 | 76 - man/io_uring_prep_fadvise.3.md | 68 + man/io_uring_prep_fallocate.3 | 59 - man/io_uring_prep_fallocate.3.md | 54 + man/io_uring_prep_files_update.3 | 92 - man/io_uring_prep_files_update.3.md | 93 + man/io_uring_prep_fixed_fd_install.3 | 70 - man/io_uring_prep_fixed_fd_install.3.md | 71 + man/io_uring_prep_fsync.3 | 70 - man/io_uring_prep_fsync.3.md | 62 + man/io_uring_prep_ftruncate.3 | 54 - man/io_uring_prep_ftruncate.3.md | 51 + man/io_uring_prep_futex_wait.3 | 94 - man/io_uring_prep_futex_wait.3.md | 79 + man/io_uring_prep_futex_waitv.3 | 78 - man/io_uring_prep_futex_waitv.3.md | 71 + man/io_uring_prep_futex_wake.3 | 86 - man/io_uring_prep_futex_wake.3.md | 71 + man/io_uring_prep_getxattr.3 | 61 - man/io_uring_prep_getxattr.3.md | 57 + man/io_uring_prep_link_timeout.3 | 98 - man/io_uring_prep_link_timeout.3.md | 104 + man/io_uring_prep_linkat.3 | 91 - man/io_uring_prep_linkat.3.md | 80 + man/io_uring_prep_listen.3 | 52 - man/io_uring_prep_listen.3.md | 53 + man/io_uring_prep_madvise.3 | 72 - man/io_uring_prep_madvise.3.md | 66 + man/io_uring_prep_mkdirat.3 | 83 - man/io_uring_prep_mkdirat.3.md | 75 + man/io_uring_prep_msg_ring.3 | 92 - man/io_uring_prep_msg_ring.3.md | 85 + man/io_uring_prep_msg_ring_fd.3 | 83 - man/io_uring_prep_msg_ring_fd.3.md | 86 + man/io_uring_prep_nop.3 | 28 - man/io_uring_prep_nop.3.md | 41 + man/io_uring_prep_nop128.3 | 30 - man/io_uring_prep_nop128.3.md | 42 + man/io_uring_prep_openat.3 | 138 -- man/io_uring_prep_openat.3.md | 117 + man/io_uring_prep_openat2.3 | 119 - man/io_uring_prep_openat2.3.md | 104 + man/io_uring_prep_pipe.3 | 91 - man/io_uring_prep_pipe.3.md | 76 + man/io_uring_prep_poll_add.3 | 72 - man/io_uring_prep_poll_add.3.md | 68 + man/io_uring_prep_poll_remove.3 | 55 - man/io_uring_prep_poll_remove.3.md | 66 + man/io_uring_prep_poll_update.3 | 101 - man/io_uring_prep_poll_update.3.md | 101 + man/io_uring_prep_provide_buffers.3 | 140 -- man/io_uring_prep_provide_buffers.3.md | 116 + man/io_uring_prep_read.3 | 76 - man/io_uring_prep_read.3.md | 72 + man/io_uring_prep_read_fixed.3 | 79 - man/io_uring_prep_read_fixed.3.md | 71 + man/io_uring_prep_read_multishot.3 | 107 - man/io_uring_prep_read_multishot.3.md | 92 + man/io_uring_prep_readv.3 | 92 - man/io_uring_prep_readv.3.md | 86 + man/io_uring_prep_readv2.3 | 118 - man/io_uring_prep_readv2.3.md | 110 + man/io_uring_prep_readv_fixed.3 | 74 - man/io_uring_prep_readv_fixed.3.md | 72 + man/io_uring_prep_recv.3 | 147 -- man/io_uring_prep_recv.3.md | 130 + man/io_uring_prep_recvmsg.3 | 130 - man/io_uring_prep_recvmsg.3.md | 113 + man/io_uring_prep_remove_buffers.3 | 52 - man/io_uring_prep_remove_buffers.3.md | 59 + man/io_uring_prep_renameat.3 | 95 - man/io_uring_prep_renameat.3.md | 80 + man/io_uring_prep_send.3 | 197 -- man/io_uring_prep_send.3.md | 154 ++ man/io_uring_prep_send_set_addr.3 | 38 - man/io_uring_prep_send_set_addr.3.md | 42 + man/io_uring_prep_send_zc.3 | 140 -- man/io_uring_prep_send_zc.3.md | 110 + man/io_uring_prep_sendmsg.3 | 136 - man/io_uring_prep_sendmsg.3.md | 111 + man/io_uring_prep_sendmsg_zc_fixed.3 | 69 - man/io_uring_prep_sendmsg_zc_fixed.3.md | 70 + man/io_uring_prep_setxattr.3 | 64 - man/io_uring_prep_setxattr.3.md | 59 + man/io_uring_prep_shutdown.3 | 53 - man/io_uring_prep_shutdown.3.md | 51 + man/io_uring_prep_socket.3 | 118 - man/io_uring_prep_socket.3.md | 94 + man/io_uring_prep_splice.3 | 126 - man/io_uring_prep_splice.3.md | 88 + man/io_uring_prep_statx.3 | 74 - man/io_uring_prep_statx.3.md | 70 + man/io_uring_prep_symlinkat.3 | 85 - man/io_uring_prep_symlinkat.3.md | 76 + man/io_uring_prep_sync_file_range.3 | 59 - man/io_uring_prep_sync_file_range.3.md | 54 + man/io_uring_prep_tee.3 | 80 - man/io_uring_prep_tee.3.md | 69 + man/io_uring_prep_timeout.3 | 121 - man/io_uring_prep_timeout.3.md | 124 + man/io_uring_prep_timeout_update.3 | 85 - man/io_uring_prep_timeout_update.3.md | 95 + man/io_uring_prep_unlinkat.3 | 82 - man/io_uring_prep_unlinkat.3.md | 75 + man/io_uring_prep_uring_cmd.3 | 37 - man/io_uring_prep_uring_cmd.3.md | 47 + man/io_uring_prep_uring_cmd128.3 | 38 - man/io_uring_prep_uring_cmd128.3.md | 48 + man/io_uring_prep_waitid.3 | 67 - man/io_uring_prep_waitid.3.md | 60 + man/io_uring_prep_write.3 | 70 - man/io_uring_prep_write.3.md | 69 + man/io_uring_prep_write_fixed.3 | 75 - man/io_uring_prep_write_fixed.3.md | 69 + man/io_uring_prep_writev.3 | 89 - man/io_uring_prep_writev.3.md | 84 + man/io_uring_prep_writev2.3 | 115 - man/io_uring_prep_writev2.3.md | 108 + man/io_uring_prep_writev_fixed.3 | 71 - man/io_uring_prep_writev_fixed.3.md | 72 + man/io_uring_provided_buffers.7 | 266 -- man/io_uring_provided_buffers.7.md | 255 ++ man/io_uring_queue_exit.3 | 30 - man/io_uring_queue_exit.3.md | 44 + man/io_uring_queue_init.3 | 144 -- man/io_uring_queue_init.3.md | 109 + man/io_uring_queue_mmap.3 | 49 - man/io_uring_queue_mmap.3.md | 48 + man/io_uring_recvmsg_out.3 | 82 - man/io_uring_recvmsg_out.3.md | 82 + man/io_uring_register.2 | 1375 ---------- man/io_uring_register.2.md | 932 +++++++ man/io_uring_register_bpf_filter.3 | 411 --- man/io_uring_register_bpf_filter.3.md | 358 +++ man/io_uring_register_buf_ring.3 | 165 -- man/io_uring_register_buf_ring.3.md | 135 + man/io_uring_register_buffers.3 | 105 - man/io_uring_register_buffers.3.md | 86 + man/io_uring_register_clock.3 | 72 - man/io_uring_register_clock.3.md | 71 + man/io_uring_register_eventfd.3 | 50 - man/io_uring_register_eventfd.3.md | 62 + man/io_uring_register_file_alloc_range.3 | 52 - man/io_uring_register_file_alloc_range.3.md | 58 + man/io_uring_register_files.3 | 120 - man/io_uring_register_files.3.md | 99 + man/io_uring_register_ifq.3 | 49 - man/io_uring_register_ifq.3.md | 49 + man/io_uring_register_iowq_aff.3 | 67 - man/io_uring_register_iowq_aff.3.md | 68 + man/io_uring_register_iowq_max_workers.3 | 71 - man/io_uring_register_iowq_max_workers.3.md | 77 + man/io_uring_register_napi.3 | 40 - man/io_uring_register_napi.3.md | 43 + man/io_uring_register_personality.3 | 34 - man/io_uring_register_personality.3.md | 43 + man/io_uring_register_probe.3 | 47 - man/io_uring_register_probe.3.md | 51 + man/io_uring_register_query.3 | 114 - man/io_uring_register_query.3.md | 99 + man/io_uring_register_region.3 | 124 - man/io_uring_register_region.3.md | 101 + man/io_uring_register_restrictions.3 | 53 - man/io_uring_register_restrictions.3.md | 53 + man/io_uring_register_ring_fd.3 | 51 - man/io_uring_register_ring_fd.3.md | 61 + man/io_uring_register_sync_cancel.3 | 73 - man/io_uring_register_sync_cancel.3.md | 65 + man/io_uring_register_sync_msg.3 | 74 - man/io_uring_register_sync_msg.3.md | 71 + man/io_uring_register_wait_reg.3 | 45 - man/io_uring_register_wait_reg.3.md | 49 + man/io_uring_register_zcrx_ctrl.3 | 84 - man/io_uring_register_zcrx_ctrl.3.md | 77 + man/io_uring_registered_buffers.7 | 238 -- man/io_uring_registered_buffers.7.md | 215 ++ man/io_uring_registered_files.7 | 228 -- man/io_uring_registered_files.7.md | 216 ++ man/io_uring_resize_rings.3 | 116 - man/io_uring_resize_rings.3.md | 110 + man/io_uring_ring_dontfork.3 | 36 - man/io_uring_ring_dontfork.3.md | 43 + man/io_uring_set_iowait.3 | 57 - man/io_uring_set_iowait.3.md | 57 + man/io_uring_setup.2 | 820 ------ man/io_uring_setup.2.md | 664 +++++ man/io_uring_setup_buf_ring.3 | 94 - man/io_uring_setup_buf_ring.3.md | 85 + man/io_uring_setup_flags.7 | 451 ---- man/io_uring_setup_flags.7.md | 373 +++ man/io_uring_sq_ready.3 | 31 - man/io_uring_sq_ready.3.md | 42 + man/io_uring_sq_space_left.3 | 25 - man/io_uring_sq_space_left.3.md | 36 + man/io_uring_sqe_set_buf_group.3 | 32 - man/io_uring_sqe_set_buf_group.3.md | 41 + man/io_uring_sqe_set_data.3 | 57 - man/io_uring_sqe_set_data.3.md | 56 + man/io_uring_sqe_set_flags.3 | 87 - man/io_uring_sqe_set_flags.3.md | 103 + man/io_uring_sqpoll.7 | 259 -- man/io_uring_sqpoll.7.md | 244 ++ man/io_uring_sqring_wait.3 | 34 - man/io_uring_sqring_wait.3.md | 44 + man/io_uring_submit.3 | 51 - man/io_uring_submit.3.md | 59 + man/io_uring_submit_and_get_events.3 | 31 - man/io_uring_submit_and_get_events.3.md | 41 + man/io_uring_submit_and_wait.3 | 44 - man/io_uring_submit_and_wait.3.md | 50 + man/io_uring_submit_and_wait_min_timeout.3 | 119 - man/io_uring_submit_and_wait_min_timeout.3.md | 94 + man/io_uring_submit_and_wait_reg.3 | 64 - man/io_uring_submit_and_wait_reg.3.md | 62 + man/io_uring_submit_and_wait_timeout.3 | 74 - man/io_uring_submit_and_wait_timeout.3.md | 70 + man/io_uring_unregister_buf_ring.3 | 30 - man/io_uring_unregister_buf_ring.3.md | 40 + man/io_uring_unregister_buffers.3 | 27 - man/io_uring_unregister_buffers.3.md | 38 + man/io_uring_unregister_files.3 | 27 - man/io_uring_unregister_files.3.md | 37 + man/io_uring_unregister_napi.3 | 27 - man/io_uring_unregister_napi.3.md | 35 + man/io_uring_unregister_personality.3 | 33 - man/io_uring_unregister_personality.3.md | 41 + man/io_uring_unregister_ring_fd.3 | 32 - man/io_uring_unregister_ring_fd.3.md | 43 + man/io_uring_wait_cqe.3 | 41 - man/io_uring_wait_cqe.3.md | 47 + man/io_uring_wait_cqe_nr.3 | 49 - man/io_uring_wait_cqe_nr.3.md | 54 + man/io_uring_wait_cqe_timeout.3 | 62 - man/io_uring_wait_cqe_timeout.3.md | 56 + man/io_uring_wait_cqes.3 | 82 - man/io_uring_wait_cqes.3.md | 67 + man/io_uring_wait_cqes_min_timeout.3 | 76 - man/io_uring_wait_cqes_min_timeout.3.md | 68 + 330 files changed, 16747 insertions(+), 18913 deletions(-) delete mode 100644 man/io_uring.7 create mode 100644 man/io_uring.7.md delete mode 100644 man/io_uring_buf_ring_add.3 create mode 100644 man/io_uring_buf_ring_add.3.md delete mode 100644 man/io_uring_buf_ring_advance.3 create mode 100644 man/io_uring_buf_ring_advance.3.md delete mode 100644 man/io_uring_buf_ring_available.3 create mode 100644 man/io_uring_buf_ring_available.3.md delete mode 100644 man/io_uring_buf_ring_cq_advance.3 create mode 100644 man/io_uring_buf_ring_cq_advance.3.md delete mode 100644 man/io_uring_buf_ring_init.3 create mode 100644 man/io_uring_buf_ring_init.3.md delete mode 100644 man/io_uring_buf_ring_mask.3 create mode 100644 man/io_uring_buf_ring_mask.3.md delete mode 100644 man/io_uring_cancelation.7 create mode 100644 man/io_uring_cancelation.7.md delete mode 100644 man/io_uring_check_version.3 create mode 100644 man/io_uring_check_version.3.md delete mode 100644 man/io_uring_clone_buffers.3 create mode 100644 man/io_uring_clone_buffers.3.md delete mode 100644 man/io_uring_close_ring_fd.3 create mode 100644 man/io_uring_close_ring_fd.3.md delete mode 100644 man/io_uring_cq_advance.3 create mode 100644 man/io_uring_cq_advance.3.md delete mode 100644 man/io_uring_cq_eventfd_enabled.3 create mode 100644 man/io_uring_cq_eventfd_enabled.3.md delete mode 100644 man/io_uring_cq_eventfd_toggle.3 create mode 100644 man/io_uring_cq_eventfd_toggle.3.md delete mode 100644 man/io_uring_cq_has_overflow.3 create mode 100644 man/io_uring_cq_has_overflow.3.md delete mode 100644 man/io_uring_cq_ready.3 create mode 100644 man/io_uring_cq_ready.3.md delete mode 100644 man/io_uring_cqe_get_data.3 create mode 100644 man/io_uring_cqe_get_data.3.md delete mode 100644 man/io_uring_cqe_nr.3 create mode 100644 man/io_uring_cqe_nr.3.md delete mode 100644 man/io_uring_cqe_seen.3 create mode 100644 man/io_uring_cqe_seen.3.md delete mode 100644 man/io_uring_enable_rings.3 create mode 100644 man/io_uring_enable_rings.3.md delete mode 100644 man/io_uring_enter.2 create mode 100644 man/io_uring_enter.2.md delete mode 100644 man/io_uring_for_each_cqe.3 create mode 100644 man/io_uring_for_each_cqe.3.md delete mode 100644 man/io_uring_free_buf_ring.3 create mode 100644 man/io_uring_free_buf_ring.3.md delete mode 100644 man/io_uring_free_probe.3 create mode 100644 man/io_uring_free_probe.3.md delete mode 100644 man/io_uring_get_events.3 create mode 100644 man/io_uring_get_events.3.md delete mode 100644 man/io_uring_get_probe.3 create mode 100644 man/io_uring_get_probe.3.md delete mode 100644 man/io_uring_get_probe_ring.3 create mode 100644 man/io_uring_get_probe_ring.3.md delete mode 100644 man/io_uring_get_sqe.3 create mode 100644 man/io_uring_get_sqe.3.md delete mode 100644 man/io_uring_get_sqe128.3 create mode 100644 man/io_uring_get_sqe128.3.md delete mode 100644 man/io_uring_linked_requests.7 create mode 100644 man/io_uring_linked_requests.7.md delete mode 100644 man/io_uring_memory_size_params.3 create mode 100644 man/io_uring_memory_size_params.3.md delete mode 100644 man/io_uring_mlock_size.3 create mode 100644 man/io_uring_mlock_size.3.md delete mode 100644 man/io_uring_mlock_size_params.3 create mode 100644 man/io_uring_mlock_size_params.3.md delete mode 100644 man/io_uring_multishot.7 create mode 100644 man/io_uring_multishot.7.md delete mode 100644 man/io_uring_opcode_supported.3 create mode 100644 man/io_uring_opcode_supported.3.md delete mode 100644 man/io_uring_peek_cqe.3 create mode 100644 man/io_uring_peek_cqe.3.md delete mode 100644 man/io_uring_prep_accept.3 create mode 100644 man/io_uring_prep_accept.3.md delete mode 100644 man/io_uring_prep_bind.3 create mode 100644 man/io_uring_prep_bind.3.md delete mode 100644 man/io_uring_prep_cancel.3 create mode 100644 man/io_uring_prep_cancel.3.md delete mode 100644 man/io_uring_prep_close.3 create mode 100644 man/io_uring_prep_close.3.md delete mode 100644 man/io_uring_prep_cmd_discard.3 create mode 100644 man/io_uring_prep_cmd_discard.3.md delete mode 100644 man/io_uring_prep_cmd_getsockname.3 create mode 100644 man/io_uring_prep_cmd_getsockname.3.md delete mode 100644 man/io_uring_prep_cmd_sock.3 create mode 100644 man/io_uring_prep_cmd_sock.3.md delete mode 100644 man/io_uring_prep_connect.3 create mode 100644 man/io_uring_prep_connect.3.md delete mode 100644 man/io_uring_prep_epoll_ctl.3 create mode 100644 man/io_uring_prep_epoll_ctl.3.md delete mode 100644 man/io_uring_prep_epoll_wait.3 create mode 100644 man/io_uring_prep_epoll_wait.3.md delete mode 100644 man/io_uring_prep_fadvise.3 create mode 100644 man/io_uring_prep_fadvise.3.md delete mode 100644 man/io_uring_prep_fallocate.3 create mode 100644 man/io_uring_prep_fallocate.3.md delete mode 100644 man/io_uring_prep_files_update.3 create mode 100644 man/io_uring_prep_files_update.3.md delete mode 100644 man/io_uring_prep_fixed_fd_install.3 create mode 100644 man/io_uring_prep_fixed_fd_install.3.md delete mode 100644 man/io_uring_prep_fsync.3 create mode 100644 man/io_uring_prep_fsync.3.md delete mode 100644 man/io_uring_prep_ftruncate.3 create mode 100644 man/io_uring_prep_ftruncate.3.md delete mode 100644 man/io_uring_prep_futex_wait.3 create mode 100644 man/io_uring_prep_futex_wait.3.md delete mode 100644 man/io_uring_prep_futex_waitv.3 create mode 100644 man/io_uring_prep_futex_waitv.3.md delete mode 100644 man/io_uring_prep_futex_wake.3 create mode 100644 man/io_uring_prep_futex_wake.3.md delete mode 100644 man/io_uring_prep_getxattr.3 create mode 100644 man/io_uring_prep_getxattr.3.md delete mode 100644 man/io_uring_prep_link_timeout.3 create mode 100644 man/io_uring_prep_link_timeout.3.md delete mode 100644 man/io_uring_prep_linkat.3 create mode 100644 man/io_uring_prep_linkat.3.md delete mode 100644 man/io_uring_prep_listen.3 create mode 100644 man/io_uring_prep_listen.3.md delete mode 100644 man/io_uring_prep_madvise.3 create mode 100644 man/io_uring_prep_madvise.3.md delete mode 100644 man/io_uring_prep_mkdirat.3 create mode 100644 man/io_uring_prep_mkdirat.3.md delete mode 100644 man/io_uring_prep_msg_ring.3 create mode 100644 man/io_uring_prep_msg_ring.3.md delete mode 100644 man/io_uring_prep_msg_ring_fd.3 create mode 100644 man/io_uring_prep_msg_ring_fd.3.md delete mode 100644 man/io_uring_prep_nop.3 create mode 100644 man/io_uring_prep_nop.3.md delete mode 100644 man/io_uring_prep_nop128.3 create mode 100644 man/io_uring_prep_nop128.3.md delete mode 100644 man/io_uring_prep_openat.3 create mode 100644 man/io_uring_prep_openat.3.md delete mode 100644 man/io_uring_prep_openat2.3 create mode 100644 man/io_uring_prep_openat2.3.md delete mode 100644 man/io_uring_prep_pipe.3 create mode 100644 man/io_uring_prep_pipe.3.md delete mode 100644 man/io_uring_prep_poll_add.3 create mode 100644 man/io_uring_prep_poll_add.3.md delete mode 100644 man/io_uring_prep_poll_remove.3 create mode 100644 man/io_uring_prep_poll_remove.3.md delete mode 100644 man/io_uring_prep_poll_update.3 create mode 100644 man/io_uring_prep_poll_update.3.md delete mode 100644 man/io_uring_prep_provide_buffers.3 create mode 100644 man/io_uring_prep_provide_buffers.3.md delete mode 100644 man/io_uring_prep_read.3 create mode 100644 man/io_uring_prep_read.3.md delete mode 100644 man/io_uring_prep_read_fixed.3 create mode 100644 man/io_uring_prep_read_fixed.3.md delete mode 100644 man/io_uring_prep_read_multishot.3 create mode 100644 man/io_uring_prep_read_multishot.3.md delete mode 100644 man/io_uring_prep_readv.3 create mode 100644 man/io_uring_prep_readv.3.md delete mode 100644 man/io_uring_prep_readv2.3 create mode 100644 man/io_uring_prep_readv2.3.md delete mode 100644 man/io_uring_prep_readv_fixed.3 create mode 100644 man/io_uring_prep_readv_fixed.3.md delete mode 100644 man/io_uring_prep_recv.3 create mode 100644 man/io_uring_prep_recv.3.md delete mode 100644 man/io_uring_prep_recvmsg.3 create mode 100644 man/io_uring_prep_recvmsg.3.md delete mode 100644 man/io_uring_prep_remove_buffers.3 create mode 100644 man/io_uring_prep_remove_buffers.3.md delete mode 100644 man/io_uring_prep_renameat.3 create mode 100644 man/io_uring_prep_renameat.3.md delete mode 100644 man/io_uring_prep_send.3 create mode 100644 man/io_uring_prep_send.3.md delete mode 100644 man/io_uring_prep_send_set_addr.3 create mode 100644 man/io_uring_prep_send_set_addr.3.md delete mode 100644 man/io_uring_prep_send_zc.3 create mode 100644 man/io_uring_prep_send_zc.3.md delete mode 100644 man/io_uring_prep_sendmsg.3 create mode 100644 man/io_uring_prep_sendmsg.3.md delete mode 100644 man/io_uring_prep_sendmsg_zc_fixed.3 create mode 100644 man/io_uring_prep_sendmsg_zc_fixed.3.md delete mode 100644 man/io_uring_prep_setxattr.3 create mode 100644 man/io_uring_prep_setxattr.3.md delete mode 100644 man/io_uring_prep_shutdown.3 create mode 100644 man/io_uring_prep_shutdown.3.md delete mode 100644 man/io_uring_prep_socket.3 create mode 100644 man/io_uring_prep_socket.3.md delete mode 100644 man/io_uring_prep_splice.3 create mode 100644 man/io_uring_prep_splice.3.md delete mode 100644 man/io_uring_prep_statx.3 create mode 100644 man/io_uring_prep_statx.3.md delete mode 100644 man/io_uring_prep_symlinkat.3 create mode 100644 man/io_uring_prep_symlinkat.3.md delete mode 100644 man/io_uring_prep_sync_file_range.3 create mode 100644 man/io_uring_prep_sync_file_range.3.md delete mode 100644 man/io_uring_prep_tee.3 create mode 100644 man/io_uring_prep_tee.3.md delete mode 100644 man/io_uring_prep_timeout.3 create mode 100644 man/io_uring_prep_timeout.3.md delete mode 100644 man/io_uring_prep_timeout_update.3 create mode 100644 man/io_uring_prep_timeout_update.3.md delete mode 100644 man/io_uring_prep_unlinkat.3 create mode 100644 man/io_uring_prep_unlinkat.3.md delete mode 100644 man/io_uring_prep_uring_cmd.3 create mode 100644 man/io_uring_prep_uring_cmd.3.md delete mode 100644 man/io_uring_prep_uring_cmd128.3 create mode 100644 man/io_uring_prep_uring_cmd128.3.md delete mode 100644 man/io_uring_prep_waitid.3 create mode 100644 man/io_uring_prep_waitid.3.md delete mode 100644 man/io_uring_prep_write.3 create mode 100644 man/io_uring_prep_write.3.md delete mode 100644 man/io_uring_prep_write_fixed.3 create mode 100644 man/io_uring_prep_write_fixed.3.md delete mode 100644 man/io_uring_prep_writev.3 create mode 100644 man/io_uring_prep_writev.3.md delete mode 100644 man/io_uring_prep_writev2.3 create mode 100644 man/io_uring_prep_writev2.3.md delete mode 100644 man/io_uring_prep_writev_fixed.3 create mode 100644 man/io_uring_prep_writev_fixed.3.md delete mode 100644 man/io_uring_provided_buffers.7 create mode 100644 man/io_uring_provided_buffers.7.md delete mode 100644 man/io_uring_queue_exit.3 create mode 100644 man/io_uring_queue_exit.3.md delete mode 100644 man/io_uring_queue_init.3 create mode 100644 man/io_uring_queue_init.3.md delete mode 100644 man/io_uring_queue_mmap.3 create mode 100644 man/io_uring_queue_mmap.3.md delete mode 100644 man/io_uring_recvmsg_out.3 create mode 100644 man/io_uring_recvmsg_out.3.md delete mode 100644 man/io_uring_register.2 create mode 100644 man/io_uring_register.2.md delete mode 100644 man/io_uring_register_bpf_filter.3 create mode 100644 man/io_uring_register_bpf_filter.3.md delete mode 100644 man/io_uring_register_buf_ring.3 create mode 100644 man/io_uring_register_buf_ring.3.md delete mode 100644 man/io_uring_register_buffers.3 create mode 100644 man/io_uring_register_buffers.3.md delete mode 100644 man/io_uring_register_clock.3 create mode 100644 man/io_uring_register_clock.3.md delete mode 100644 man/io_uring_register_eventfd.3 create mode 100644 man/io_uring_register_eventfd.3.md delete mode 100644 man/io_uring_register_file_alloc_range.3 create mode 100644 man/io_uring_register_file_alloc_range.3.md delete mode 100644 man/io_uring_register_files.3 create mode 100644 man/io_uring_register_files.3.md delete mode 100644 man/io_uring_register_ifq.3 create mode 100644 man/io_uring_register_ifq.3.md delete mode 100644 man/io_uring_register_iowq_aff.3 create mode 100644 man/io_uring_register_iowq_aff.3.md delete mode 100644 man/io_uring_register_iowq_max_workers.3 create mode 100644 man/io_uring_register_iowq_max_workers.3.md delete mode 100644 man/io_uring_register_napi.3 create mode 100644 man/io_uring_register_napi.3.md delete mode 100644 man/io_uring_register_personality.3 create mode 100644 man/io_uring_register_personality.3.md delete mode 100644 man/io_uring_register_probe.3 create mode 100644 man/io_uring_register_probe.3.md delete mode 100644 man/io_uring_register_query.3 create mode 100644 man/io_uring_register_query.3.md delete mode 100644 man/io_uring_register_region.3 create mode 100644 man/io_uring_register_region.3.md delete mode 100644 man/io_uring_register_restrictions.3 create mode 100644 man/io_uring_register_restrictions.3.md delete mode 100644 man/io_uring_register_ring_fd.3 create mode 100644 man/io_uring_register_ring_fd.3.md delete mode 100644 man/io_uring_register_sync_cancel.3 create mode 100644 man/io_uring_register_sync_cancel.3.md delete mode 100644 man/io_uring_register_sync_msg.3 create mode 100644 man/io_uring_register_sync_msg.3.md delete mode 100644 man/io_uring_register_wait_reg.3 create mode 100644 man/io_uring_register_wait_reg.3.md delete mode 100644 man/io_uring_register_zcrx_ctrl.3 create mode 100644 man/io_uring_register_zcrx_ctrl.3.md delete mode 100644 man/io_uring_registered_buffers.7 create mode 100644 man/io_uring_registered_buffers.7.md delete mode 100644 man/io_uring_registered_files.7 create mode 100644 man/io_uring_registered_files.7.md delete mode 100644 man/io_uring_resize_rings.3 create mode 100644 man/io_uring_resize_rings.3.md delete mode 100644 man/io_uring_ring_dontfork.3 create mode 100644 man/io_uring_ring_dontfork.3.md delete mode 100644 man/io_uring_set_iowait.3 create mode 100644 man/io_uring_set_iowait.3.md delete mode 100644 man/io_uring_setup.2 create mode 100644 man/io_uring_setup.2.md delete mode 100644 man/io_uring_setup_buf_ring.3 create mode 100644 man/io_uring_setup_buf_ring.3.md delete mode 100644 man/io_uring_setup_flags.7 create mode 100644 man/io_uring_setup_flags.7.md delete mode 100644 man/io_uring_sq_ready.3 create mode 100644 man/io_uring_sq_ready.3.md delete mode 100644 man/io_uring_sq_space_left.3 create mode 100644 man/io_uring_sq_space_left.3.md delete mode 100644 man/io_uring_sqe_set_buf_group.3 create mode 100644 man/io_uring_sqe_set_buf_group.3.md delete mode 100644 man/io_uring_sqe_set_data.3 create mode 100644 man/io_uring_sqe_set_data.3.md delete mode 100644 man/io_uring_sqe_set_flags.3 create mode 100644 man/io_uring_sqe_set_flags.3.md delete mode 100644 man/io_uring_sqpoll.7 create mode 100644 man/io_uring_sqpoll.7.md delete mode 100644 man/io_uring_sqring_wait.3 create mode 100644 man/io_uring_sqring_wait.3.md delete mode 100644 man/io_uring_submit.3 create mode 100644 man/io_uring_submit.3.md delete mode 100644 man/io_uring_submit_and_get_events.3 create mode 100644 man/io_uring_submit_and_get_events.3.md delete mode 100644 man/io_uring_submit_and_wait.3 create mode 100644 man/io_uring_submit_and_wait.3.md delete mode 100644 man/io_uring_submit_and_wait_min_timeout.3 create mode 100644 man/io_uring_submit_and_wait_min_timeout.3.md delete mode 100644 man/io_uring_submit_and_wait_reg.3 create mode 100644 man/io_uring_submit_and_wait_reg.3.md delete mode 100644 man/io_uring_submit_and_wait_timeout.3 create mode 100644 man/io_uring_submit_and_wait_timeout.3.md delete mode 100644 man/io_uring_unregister_buf_ring.3 create mode 100644 man/io_uring_unregister_buf_ring.3.md delete mode 100644 man/io_uring_unregister_buffers.3 create mode 100644 man/io_uring_unregister_buffers.3.md delete mode 100644 man/io_uring_unregister_files.3 create mode 100644 man/io_uring_unregister_files.3.md delete mode 100644 man/io_uring_unregister_napi.3 create mode 100644 man/io_uring_unregister_napi.3.md delete mode 100644 man/io_uring_unregister_personality.3 create mode 100644 man/io_uring_unregister_personality.3.md delete mode 100644 man/io_uring_unregister_ring_fd.3 create mode 100644 man/io_uring_unregister_ring_fd.3.md delete mode 100644 man/io_uring_wait_cqe.3 create mode 100644 man/io_uring_wait_cqe.3.md delete mode 100644 man/io_uring_wait_cqe_nr.3 create mode 100644 man/io_uring_wait_cqe_nr.3.md delete mode 100644 man/io_uring_wait_cqe_timeout.3 create mode 100644 man/io_uring_wait_cqe_timeout.3.md delete mode 100644 man/io_uring_wait_cqes.3 create mode 100644 man/io_uring_wait_cqes.3.md delete mode 100644 man/io_uring_wait_cqes_min_timeout.3 create mode 100644 man/io_uring_wait_cqes_min_timeout.3.md
man/io_uring.7 deleted +0 -919
@@ -1,919 +0,0 @@ -.\" Copyright (C) 2020 Shuveb Hussain <[email protected]> -.\" SPDX-License-Identifier: LGPL-2.0-or-later -.\" - -.TH io_uring 7 "July 26, 2020" "Linux" "Linux Programmer's Manual" -.SH NAME -io_uring \- Asynchronous I/O facility -.SH SYNOPSIS -.nf -.B "#include <linux/io_uring.h>" -.fi -.PP -.SH DESCRIPTION -.PP -.B io_uring -is a Linux-specific API for asynchronous I/O. -It allows the user to submit one or more I/O requests, -which are processed asynchronously without blocking the calling process. -.B io_uring -gets its name from ring buffers which are shared between user space and -kernel space. This arrangement allows for efficient I/O, -while avoiding the overhead of copying buffers between them, -where possible. -This interface makes -.B io_uring -different from other UNIX I/O APIs, -wherein, -rather than just communicate between kernel and user space with system calls, -ring buffers are used as the main mode of communication. -This arrangement has various performance benefits which are discussed in a -separate section below. -This man page uses the terms shared buffers, shared ring buffers and -queues interchangeably. -.PP -The general programming model you need to follow for -.B io_uring -is outlined below -.IP \(bu -Set up shared buffers with -.BR io_uring_setup (2) -and -.BR mmap (2), -mapping into user space shared buffers for the submission queue (SQ) and the -completion queue (CQ). -You place I/O requests you want to make on the SQ, -while the kernel places the results of those operations on the CQ. -.IP \(bu -For every I/O request you need to make (like to read a file, write a file, -accept a socket connection, etc), you create a submission queue entry, -or SQE, -describe the I/O operation you need to get done and add it to the tail of -the submission queue (SQ). -Each I/O operation is, -in essence, -the equivalent of a system call you would have made otherwise, -if you were not using -.BR io_uring . -For instance, -a SQE with the -.I opcode -set to -.B IORING_OP_READ -will request a read operation to be issued that is similar to the -.BR read (2) -system call. Refer to the opcode documentation in -.BR io_uring_enter (2) -for all supported opcodes and their properties. -You can add more than one SQE to the queue depending on the number of -operations you want to request. -.IP \(bu -After you add one or more SQEs, -you need to call -.BR io_uring_enter (2) -to tell the kernel to dequeue your I/O requests off the SQ and begin -processing them. -.IP \(bu -For each SQE you submit, -once it is done processing the request, -the kernel places a completion queue event or CQE at the tail of the -completion queue or CQ. -The kernel places exactly one matching CQE in the CQ for every SQE you -submit on the SQ. -After you retrieve a CQE, -minimally, -you might be interested in checking the -.I res -field of the CQE structure, -which corresponds to the return value of the system -call's equivalent, -had you used it directly without using -.BR io_uring . -Given that -.B io_uring -is an async interface, -.I errno -is never used for passing back error information. Instead, -.I res -will contain what the equivalent system call would have returned in case -of success, and in case of error -.I res -will contain -.IR -errno . -For example, if the normal read system call would have returned -1 and set -.I errno -to -.BR EINVAL , -then -.I res -would contain -.BR -EINVAL . -If the normal system call would have returned a read size of 1024, then -.I res -would contain 1024. -.IP \(bu -Optionally, -.BR io_uring_enter (2) -can also wait for a specified number of requests to be processed by the kernel -before it returns. -If you specified a certain number of completions to wait for, -the kernel would have placed at least those many number of CQEs on the CQ, -which you can then readily read, -right after the return from -.BR io_uring_enter (2). -.IP \(bu -It is important to remember that I/O requests submitted to the kernel can -complete in any order. -It is not necessary for the kernel to process one request after another, -in the order you placed them. -Given that the interface is a ring, -the requests are attempted in order, -however that doesn't imply any sort of ordering on their execution or -completion. -When more than one request is in flight, -it is not possible to determine which one will execute or complete first. -When you dequeue CQEs off the CQ, -you should always check which submitted request it corresponds to. -The most common method for doing so is utilizing the -.I user_data -field in the request, which is passed back on the completion side. -.IP \(bu -Concretely, for operations where strict ordering is required, -such as for sends and receives on a stream-oriented TCP socket, -it is generally unsafe to have more than one outstanding send, -or more than one outstanding receive (the two directions are independent) -on a given socket at a time, as the kernel may reorder their execution -if poll arming or other background kernel activities are involved. -However, -.B io_uring -provides various facilities to enable applications to efficiently -pipeline their operations safely. If the requests are submitted in a -single batch, the application may use -.B IOSQE_IO_LINK -to enforce an execution order in the kernel. Otherwise, -.B io_uring -provides advanced features like -.I multi shot -and send/receive -.I bundles -to allow applications to provide more data in fewer, more efficient trips -to the kernel. Even if these features are used, applications must still -ensure they do not overlap different sends or different receives on a -given file. -.PP -Adding to and reading from the queues: -.IP \(bu -You add SQEs to the tail of the SQ. -The kernel reads SQEs off the head of the queue. -.IP \(bu -The kernel adds CQEs to the tail of the CQ. -You read CQEs off the head of the queue. -.PP -It should be noted that depending on the configuration io_uring's behavior -can deviate from the behavior outlined above, like not posting a CQE for -every SQE when setting -.B IOSQE_CQE_SKIP_SUCCESS -in the SQE or posting multiple CQEs for a single SQE for multi shot operations -or requiring an -.BR io_uring_enter (2) -syscall to make the kernel begin processing newly added SQEs when using -submission queue polling. - -.SS Submission queue polling -One of the goals of -.B io_uring -is to provide a means for efficient I/O. -To this end, -.B io_uring -supports a polling mode that lets you avoid the call to -.BR io_uring_enter (2), -which you use to inform the kernel that you have queued SQEs on to the SQ. -With SQ Polling, -.B io_uring -starts a kernel thread that polls the submission queue for any I/O -requests you submit by adding SQEs. -With SQ Polling enabled, -there is no need for you to call -.BR io_uring_enter (2), -letting you avoid the overhead of system calls. -A designated kernel thread dequeues SQEs off the SQ as you add them and -dispatches them for asynchronous processing. -.SS Setting up io_uring -.PP -The main steps in setting up -.B io_uring -consist of mapping in the shared buffers with -.BR mmap (2) -calls. -In the example program included in this man page, -the function -.BR app_setup_uring () -sets up -.B io_uring -with a QUEUE_DEPTH deep submission queue. -Pay attention to the 2 -.BR mmap (2) -calls that set up the shared submission and completion queues. -If your kernel is older than version 5.4, -three -.BR mmap(2) -calls are required. -.PP -.SS Submitting I/O requests -The process of submitting a request consists of describing the I/O -operation you need to get done using an -.B io_uring_sqe -structure instance. -These details describe the equivalent system call and its parameters. -Because the range of I/O operations Linux supports are very varied and the -.B io_uring_sqe -structure needs to be able to describe them, -it has several fields, -some packed into unions for space efficiency. -Here is a simplified version of struct -.B io_uring_sqe -with some of the most often used fields: -.PP -.in +4n -.EX -struct io_uring_sqe { - __u8 opcode; /* type of operation for this sqe */ - __s32 fd; /* file descriptor to do IO on */ - __u64 off; /* offset into file */ - __u64 addr; /* pointer to buffer or iovecs */ - __u32 len; /* buffer size or number of iovecs */ - __u64 user_data; /* data to be passed back at completion time */ - __u8 flags; /* IOSQE_ flags */ - ... -}; -.EE -.in - -Here is struct -.B io_uring_sqe -in full: - -.in +4n -.EX -struct io_uring_sqe { - __u8 opcode; /* type of operation for this sqe */ - __u8 flags; /* IOSQE_ flags */ - __u16 ioprio; /* ioprio for the request */ - __s32 fd; /* file descriptor to do IO on */ - union { - __u64 off; /* offset into file */ - __u64 addr2; - struct { - __u32 cmd_op; - __u32 __pad1; - }; - }; - union { - __u64 addr; /* pointer to buffer or iovecs */ - __u64 splice_off_in; - struct { - __u32 level; - __u32 optname; - }; - }; - __u32 len; /* buffer size or number of iovecs */ - union { - __kernel_rwf_t rw_flags; - __u32 fsync_flags; - __u16 poll_events; /* compatibility */ - __u32 poll32_events; /* word-reversed for BE */ - __u32 sync_range_flags; - __u32 msg_flags; - __u32 timeout_flags; - __u32 accept_flags; - __u32 cancel_flags; - __u32 open_flags; - __u32 statx_flags; - __u32 fadvise_advice; - __u32 splice_flags; - __u32 rename_flags; - __u32 unlink_flags; - __u32 hardlink_flags; - __u32 xattr_flags; - __u32 msg_ring_flags; - __u32 uring_cmd_flags; - __u32 waitid_flags; - __u32 futex_flags; - __u32 install_fd_flags; - __u32 nop_flags; - }; - __u64 user_data; /* data to be passed back at completion time */ - /* pack this to avoid bogus arm OABI complaints */ - union { - /* index into fixed buffers, if used */ - __u16 buf_index; - /* for grouped buffer selection */ - __u16 buf_group; - } __attribute__((packed)); - /* personality to use, if used */ - __u16 personality; - union { - __s32 splice_fd_in; - __u32 file_index; - __u32 optlen; - struct { - __u16 addr_len; - __u16 __pad3[1]; - }; - }; - union { - struct { - __u64 addr3; - __u64 __pad2[1]; - }; - __u64 optval; - /* - * If the ring is initialized with IORING_SETUP_SQE128, then - * this field is used for 80 bytes of arbitrary command data - */ - __u8 cmd[0]; - }; -}; -.EE -.in -.PP -To submit an I/O request to -.BR io_uring , -you need to acquire a submission queue entry (SQE) from the submission -queue (SQ), -fill it up with details of the operation you want to submit and call -.BR io_uring_enter (2). -There are helper functions of the form io_uring_prep_X to enable proper -setup of the SQE. If you want to avoid calling -.BR io_uring_enter (2), -you have the option of setting up Submission Queue Polling. -.PP -SQEs are added to the tail of the submission queue. -The kernel picks up SQEs off the head of the SQ. -The general algorithm to get the next available SQE and update the tail is -as follows. -.PP -.in +4n -.EX -struct io_uring_sqe *sqe; -unsigned tail, index; -tail = *sqring->tail; -index = tail & (*sqring->ring_mask); -sqe = &sqring->sqes[index]; -/* fill up details about this I/O request */ -describe_io(sqe); -/* fill the sqe index into the SQ ring array */ -sqring->array[index] = index; -tail++; -atomic_store_explicit(sqring->tail, tail, memory_order_release); -.EE -.in -.PP -To get the index of an entry, -the application must mask the current tail index with the size mask of the -ring. -This holds true for both SQs and CQs. -Once the SQE is acquired, -the necessary fields are filled in, -describing the request. -While the CQ ring directly indexes the shared array of CQEs, -the submission side has an indirection array between them. -The submission side ring buffer is an index into this array, -which in turn contains the index into the SQEs. -.PP -The following code snippet demonstrates how a read operation, -an equivalent of a -.BR preadv2 (2) -system call is described by filling up an SQE with the necessary -parameters. -.PP -.in +4n -.EX -struct iovec iovecs[16]; - ... -sqe->opcode = IORING_OP_READV; -sqe->fd = fd; -sqe->addr = (unsigned long) iovecs; -sqe->len = 16; -sqe->off = offset; -sqe->flags = 0; -.EE -.in -.TP -.B Memory ordering -Modern compilers and CPUs freely reorder reads and writes without -affecting the program's outcome to optimize performance. -Some aspects of this need to be kept in mind on SMP systems since -.B io_uring -involves buffers shared between kernel and user space. -These buffers are both visible and modifiable from kernel and user space. -As heads and tails belonging to these shared buffers are updated by kernel -and user space, -changes need to be coherently visible on either side, -irrespective of whether a CPU switch took place after the kernel-user mode -switch happened. -We use memory barriers to enforce this coherency. -Being significantly large subjects on their own, -memory barriers are out of scope for further discussion on this man page. -For more information on modern memory models the reader may refer to the -Documentation/memory-barriers.txt in the kernel tree or to the documentation -of the formal C11 or kernel memory model. -.TP -.B Letting the kernel know about I/O submissions -Once you place one or more SQEs on to the SQ, -you need to let the kernel know that you've done so. -You can do this by calling the -.BR io_uring_enter (2) -system call. -This system call is also capable of waiting for a specified count of -events to complete. -This way, -you can be sure to find completion events in the completion queue without -having to poll it for events later. -.SS SQE pointer lifetimes & data stability -Due to the fixed size of the submission queue entry (SQE) some data you -provide in order to perform a desired operation will be passed in the -form of a pointer rather than value. In this situation, you may free -the memory backing the pointer once the succeeding -.BR io_uring_enter (2) -call has completed; providing it is only required by the operation when submitting. - -When -.B IORING_SETUP_SQPOLL -is not enabled, this is done when you call -.BR io_uring_submit (3) -In The event -.B IORING_SETUP_SQPOLL -is enabled, you must ensure any provided pointers remain valid until completion. - -However, very early kernels (5.4 and earlier) required state to be - stable until the completion occurred regardless. Applications can test for this - behavior by inspecting the -.B IORING_FEAT_SUBMIT_STABLE -flag passed back from -.BR io_uring_queue_init_params (3). - -As an example, the -.B IORING_OP_TIMEOUT -operation takes a pointer to a __kernel_timespec struct. This struct is -then read by the kernel when you submit the submission queue entries, -once submitted, you may free the backing memory of the __kernel_timespec -as it will not be read again by the kernel. - -It should be noted that this behaviour does not apply to data that is read -or written while the operation is inflight. For example, the pointers to -a buffer used as part of a -.B IORING_OP_WRITE -or -.B IORING_OP_READ -operation must remain valid until completion. -.SS Reading completion events -Similar to the submission queue (SQ), -the completion queue (CQ) is a shared buffer between the kernel and user -space. -Whereas you placed submission queue entries on the tail of the SQ and the -kernel read off the head, -when it comes to the CQ, -the kernel places completion queue events or CQEs on the tail of the CQ and -you read off its head. -.PP -Submission is flexible (and thus a bit more complicated) since it needs to -be able to encode different types of system calls that take various -parameters. -Completion, -on the other hand is simpler since we're looking only for a return value -back from the kernel. -This is easily understood by looking at the completion queue event -structure, -struct -.BR io_uring_cqe : -.PP -.in +4n -.EX -struct io_uring_cqe { - __u64 user_data; /* sqe->data submission passed back */ - __s32 res; /* result code for this event */ - __u32 flags; -}; -.EE -.in -.PP -Here, -.I user_data -is custom data that is passed unchanged from submission to completion. -That is, -from SQEs to CQEs. -This field can be used to set context, -uniquely identifying submissions that got completed. -Given that I/O requests can complete in any order, -this field can be used to correlate a submission with a completion. -.I res -is the result from the system call that was performed as part of the -submission; -its return value. - -The -.I flags -field carries request-specific information. As of the 6.12 kernel, -the following flags are defined: - -.TP -.B IORING_CQE_F_BUFFER -If set, the upper 16 bits of the flags field carries the buffer ID that was -chosen for this request. The request must have been issued with -.B IOSQE_BUFFER_SELECT -set, and used with a request type that supports buffer selection. Additionally, -buffers must have been provided upfront either via the -.B IORING_OP_PROVIDE_BUFFERS -or the -.B IORING_REGISTER_PBUF_RING -methods. -.TP -.B IORING_CQE_F_MORE -If set, the application should expect more completions from the request. This -is used for requests that can generate multiple completions, such as multi-shot -requests, receive, or accept. -.TP -.B IORING_CQE_F_SOCK_NONEMPTY -If set, upon receiving the data from the socket in the current request, the -socket still had data left on completion of this request. -.TP -.B IORING_CQE_F_NOTIF -Set for notification CQEs, as seen with the zero-copy networking send and -receive support. -.TP -.B IORING_CQE_F_BUF_MORE -If set, the buffer ID set in the completion will get more completions. This -means that the provided buffer has been partially consumed and there's more -buffer space left, and hence the application should expect more completions -with this buffer ID. Each completion will continue where the previous one -left off. This can only happen if the provided buffer ring has been setup -with -.B IOU_PBUF_RING_INC -to allow for incremental / partial consumption of buffers. -.TP -.B IORING_CQE_F_SKIP -If the ring has been configured with -.B IORING_SETUP_CQE_MIXED , -then CQEs may be posted which has this flag set. This can happen if the ring -is a single 16b CQE entry away from wrapping, but someone needs to post a 32b -CQE. As CQEs must be contiguous in memory, a filler/pad CQE needs to get -posted to allow posting of the 32b CQE. CQEs with this flag set should simply -be skipped and ignored, they serve no other purpose than to fill a gap in the -CQ ring. -.TP -.B IORING_CQE_F_32 -If the ring has been configured with -.B IORING_SETUP_CQE_MIXED , -this flag is set when the CQE is of the 32b type. This tells the application -that there's an extra 16b of space in this CQE, and that to get to the next -CQE the CQ ring must be advanced by twice as much as for a normal 16b CQE. -.PP -The general sequence to read completion events off the completion queue is -as follows: -.PP -.in +4n -.EX -unsigned head; -head = *cqring->head; -if (head != atomic_load_acquire(cqring->tail)) { - struct io_uring_cqe *cqe; - unsigned index; - index = head & (cqring->mask); - cqe = &cqring->cqes[index]; - /* process completed CQE */ - process_cqe(cqe); - /* CQE consumption complete */ - head++; -} -atomic_store_explicit(cqring->head, head, memory_order_release); -.EE -.in -.PP -It helps to be reminded that the kernel adds CQEs to the tail of the CQ, -while you need to dequeue them off the head. -To get the index of an entry at the head, -the application must mask the current head index with the size mask of the -ring. -Once the CQE has been consumed or processed, -the head needs to be updated to reflect the consumption of the CQE. -Attention should be paid to the read and write barriers to ensure -successful read and update of the head. -.SS io_uring performance -Because of the shared ring buffers between kernel and user space, -.B io_uring -can be a zero-copy system. -Copying buffers to and from becomes necessary when system calls that -transfer data between kernel and user space are involved. -But since the bulk of the communication in -.B io_uring -is via buffers shared between the kernel and user space, -this huge performance overhead is completely avoided. -.PP -While system calls may not seem like a significant overhead, -in high performance applications, -making a lot of them will begin to matter. -While workarounds the operating system has in place to deal with Spectre -and Meltdown are ideally best done away with, -unfortunately, -some of these workarounds are around the system call interface, -making system calls not as cheap as before on affected hardware. -While newer hardware should not need these workarounds, -hardware with these vulnerabilities can be expected to be in the wild for a -long time. -While using synchronous programming interfaces or even when using -asynchronous programming interfaces under Linux, -there is at least one system call involved in the submission of each -request. -In -.BR io_uring , -on the other hand, -you can batch several requests in one go, -simply by queueing up multiple SQEs, -each describing an I/O operation you want and make a single call to -.BR io_uring_enter (2). -This is possible due to -.BR io_uring 's -shared buffers based design. -.PP -While this batching in itself can avoid the overhead associated with -potentially multiple and frequent system calls, -you can reduce even this overhead further with Submission Queue Polling, -by having the kernel poll and pick up your SQEs for processing as you add -them to the submission queue. This avoids the -.BR io_uring_enter (2) -call you need to make to tell the kernel to pick SQEs up. -For high-performance applications, -this means even fewer system call overheads. -.SH CONFORMING TO -.B io_uring -is Linux-specific. -.SH EXAMPLES -The following example uses -.B io_uring -to copy stdin to stdout. -Using shell redirection, -you should be able to copy files with this example. -Because it uses a queue depth of only one, -this example processes I/O requests one after the other. -It is purposefully kept this way to aid understanding. -In real-world scenarios however, -you'll want to have a larger queue depth to parallelize I/O request -processing so as to gain the kind of performance benefits -.B io_uring -provides with its asynchronous processing of requests. -.PP -.EX -#include <stdio.h> -#include <stdlib.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/syscall.h> -#include <sys/mman.h> -#include <sys/uio.h> -#include <linux/fs.h> -#include <fcntl.h> -#include <unistd.h> -#include <string.h> -#include <stdatomic.h> -#include <errno.h> - -#include <linux/io_uring.h> - -#define QUEUE_DEPTH 1 -#define BLOCK_SZ 1024 - -/* Macros for barriers needed by io_uring */ -#define io_uring_smp_store_release(p, v) \\ - atomic_store_explicit((_Atomic typeof(*(p)) *)(p), (v), \\ - memory_order_release) -#define io_uring_smp_load_acquire(p) \\ - atomic_load_explicit((_Atomic typeof(*(p)) *)(p), \\ - memory_order_acquire) - -int ring_fd; -unsigned *sring_tail, *sring_mask, *sring_array, - *cring_head, *cring_tail, *cring_mask; -struct io_uring_sqe *sqes; -struct io_uring_cqe *cqes; -char buff[BLOCK_SZ]; -off_t offset; - -/* - * System call wrappers provided since glibc does not yet - * provide wrappers for io_uring system calls. -* */ - -int io_uring_setup(unsigned entries, struct io_uring_params *p) -{ - int ret; - ret = syscall(__NR_io_uring_setup, entries, p); - return (ret < 0) ? -errno : ret; -} - -int io_uring_enter(int ring_fd, unsigned int to_submit, - unsigned int min_complete, unsigned int flags) -{ - int ret; - ret = syscall(__NR_io_uring_enter, ring_fd, to_submit, - min_complete, flags, NULL, 0); - return (ret < 0) ? -errno : ret; -} - -int app_setup_uring(void) { - struct io_uring_params p; - void *sq_ptr, *cq_ptr; - - /* See io_uring_setup(2) for io_uring_params.flags you can set */ - memset(&p, 0, sizeof(p)); - ring_fd = io_uring_setup(QUEUE_DEPTH, &p); - if (ring_fd < 0) { - perror("io_uring_setup"); - return 1; - } - - /* - * io_uring communication happens via 2 shared kernel-user space ring - * buffers, which can be jointly mapped with a single mmap() call in - * kernels >= 5.4. - */ - - int sring_sz = p.sq_off.array + p.sq_entries * sizeof(unsigned); - int cring_sz = p.cq_off.cqes + p.cq_entries * sizeof(struct io_uring_cqe); - - /* Rather than check for kernel version, the recommended way is to - * check the features field of the io_uring_params structure, which is a - * bitmask. If IORING_FEAT_SINGLE_MMAP is set, we can do away with the - * second mmap() call to map in the completion ring separately. - */ - if (p.features & IORING_FEAT_SINGLE_MMAP) { - if (cring_sz > sring_sz) - sring_sz = cring_sz; - cring_sz = sring_sz; - } - - /* Map in the submission and completion queue ring buffers. - * Kernels < 5.4 only map in the submission queue, though. - */ - sq_ptr = mmap(0, sring_sz, PROT_READ | PROT_WRITE, - MAP_SHARED | MAP_POPULATE, - ring_fd, IORING_OFF_SQ_RING); - if (sq_ptr == MAP_FAILED) { - perror("mmap"); - return 1; - } - - if (p.features & IORING_FEAT_SINGLE_MMAP) { - cq_ptr = sq_ptr; - } else { - /* Map in the completion queue ring buffer in older kernels separately */ - cq_ptr = mmap(0, cring_sz, PROT_READ | PROT_WRITE, - MAP_SHARED | MAP_POPULATE, - ring_fd, IORING_OFF_CQ_RING); - if (cq_ptr == MAP_FAILED) { - perror("mmap"); - return 1; - } - } - /* Save useful fields for later easy reference */ - sring_tail = sq_ptr + p.sq_off.tail; - sring_mask = sq_ptr + p.sq_off.ring_mask; - sring_array = sq_ptr + p.sq_off.array; - - /* Map in the submission queue entries array */ - sqes = mmap(0, p.sq_entries * sizeof(struct io_uring_sqe), - PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, - ring_fd, IORING_OFF_SQES); - if (sqes == MAP_FAILED) { - perror("mmap"); - return 1; - } - - /* Save useful fields for later easy reference */ - cring_head = cq_ptr + p.cq_off.head; - cring_tail = cq_ptr + p.cq_off.tail; - cring_mask = cq_ptr + p.cq_off.ring_mask; - cqes = cq_ptr + p.cq_off.cqes; - - return 0; -} - -/* -* Read from completion queue. -* In this function, we read completion events from the completion queue. -* We dequeue the CQE, update and head and return the result of the operation. -* */ - -int read_from_cq() { - struct io_uring_cqe *cqe; - unsigned head; - - /* Read barrier */ - head = io_uring_smp_load_acquire(cring_head); - /* - * Remember, this is a ring buffer. If head == tail, it means that the - * buffer is empty. - * */ - if (head == *cring_tail) - return -1; - - /* Get the entry */ - cqe = &cqes[head & (*cring_mask)]; - if (cqe->res < 0) - fprintf(stderr, "Error: %s\\n", strerror(abs(cqe->res))); - - head++; - - /* Write barrier so that update to the head are made visible */ - io_uring_smp_store_release(cring_head, head); - - return cqe->res; -} - -/* -* Submit a read or a write request to the submission queue. -* */ - -int submit_to_sq(int fd, int op) { - unsigned index, tail; - - /* Add our submission queue entry to the tail of the SQE ring buffer */ - tail = *sring_tail; - index = tail & *sring_mask; - struct io_uring_sqe *sqe = &sqes[index]; - /* Fill in the parameters required for the read or write operation */ - sqe->opcode = op; - sqe->fd = fd; - sqe->addr = (unsigned long) buff; - if (op == IORING_OP_READ) { - memset(buff, 0, sizeof(buff)); - sqe->len = BLOCK_SZ; - } - else { - sqe->len = strlen(buff); - } - sqe->off = offset; - - sring_array[index] = index; - tail++; - - /* Update the tail */ - io_uring_smp_store_release(sring_tail, tail); - - /* - * Tell the kernel we have submitted events with the io_uring_enter() - * system call. We also pass in the IORING_ENTER_GETEVENTS flag which - * causes the io_uring_enter() call to wait until min_complete - * (the 3rd param) events complete. - * */ - int ret = io_uring_enter(ring_fd, 1,1, - IORING_ENTER_GETEVENTS); - if(ret < 0) { - perror("io_uring_enter"); - return -1; - } - - return ret; -} - -int main(int argc, char *argv[]) { - int res; - - /* Setup io_uring for use */ - if(app_setup_uring()) { - fprintf(stderr, "Unable to setup uring!\\n"); - return 1; - } - - /* - * A while loop that reads from stdin and writes to stdout. - * Breaks on EOF. - */ - while (1) { - /* Initiate read from stdin and wait for it to complete */ - submit_to_sq(STDIN_FILENO, IORING_OP_READ); - /* Read completion queue entry */ - res = read_from_cq(); - if (res > 0) { - /* Read successful. Write to stdout. */ - submit_to_sq(STDOUT_FILENO, IORING_OP_WRITE); - read_from_cq(); - } else if (res == 0) { - /* reached EOF */ - break; - } - else if (res < 0) { - /* Error reading file */ - fprintf(stderr, "Error: %s\\n", strerror(abs(res))); - break; - } - offset += res; - } - - return 0; -} -.EE -.SH SEE ALSO -.BR io_uring_enter (2) -.BR io_uring_register (2) -.BR io_uring_setup (2)
man/io_uring.7.md new file +779 -0
779 lines not on this page · raw message
man/io_uring_buf_ring_add.3 deleted +0 -64
64 lines not on this page · raw message
man/io_uring_buf_ring_add.3.md new file +65 -0
65 lines not on this page · raw message
man/io_uring_buf_ring_advance.3 deleted +0 -31
@@ -1,31 +0,0 @@ -.\" Copyright (C) 2022 Jens Axboe <[email protected]> -.\" -.\" SPDX-License-Identifier: LGPL-2.0-or-later -.\" -.TH io_uring_buf_ring_advance 3 "May 18, 2022" "liburing-2.2" "liburing Manual" -.SH NAME -io_uring_buf_ring_advance \- advance index of provided buffer in buffer ring -.SH SYNOPSIS -.nf -.B #include <liburing.h> -.PP -.BI "void io_uring_buf_ring_advance(struct io_uring_buf_ring *" br ", -.BI " int " count ");" -.fi -.SH DESCRIPTION -.PP -The -.BR io_uring_buf_ring_advance (3) -commits -.I count -previously added buffers to the shared buffer ring -.IR br , -making them visible to the kernel and hence consumable. This passes ownership -of the buffer to the ring. - -.SH RETURN VALUE -None -.SH SEE ALSO -.BR io_uring_register_buf_ring (3), -.BR io_uring_buf_ring_add (3), -.BR io_uring_buf_ring_cq_advance (3)
man/io_uring_buf_ring_advance.3.md new file +41 -0
41 lines not on this page · raw message
man/io_uring_buf_ring_available.3 deleted +0 -47
47 lines not on this page · raw message
man/io_uring_buf_ring_available.3.md new file +57 -0
57 lines not on this page · raw message
man/io_uring_buf_ring_cq_advance.3 deleted +0 -55
55 lines not on this page · raw message
man/io_uring_buf_ring_cq_advance.3.md new file +56 -0
56 lines not on this page · raw message
man/io_uring_buf_ring_init.3 deleted +0 -36
@@ -1,36 +0,0 @@ -.\" Copyright (C) 2022 Dylan Yudaken <[email protected]> -.\" -.\" SPDX-License-Identifier: LGPL-2.0-or-later -.\" -.TH io_uring_buf_ring_init 3 "June 13, 2022" "liburing-2.2" "liburing Manual" -.SH NAME -io_uring_buf_ring_init \- Initialise a buffer ring -.SH SYNOPSIS -.nf -.B #include <liburing.h> -.PP -.BI "void io_uring_buf_ring_init(struct io_uring_buf_ring *" br ");" -.fi -.SH DESCRIPTION -.PP -.BR io_uring_buf_ring_init (3) -initialises -.IR br -so that it is ready to be used. It may be called after -.BR io_uring_register_buf_ring (3) -but must be called before the buffer ring is used in any other way. - -.SH RETURN VALUE -None - -.SH NOTES -Unless manual setup is needed, it's recommended to use -.BR io_uring_setup_buf_ring (3) -as it provides a simpler way to setup a provided buffer ring. -. -.SH SEE ALSO -.BR io_uring_register_buf_ring (3), -.BR io_uring_setup_buf_ring (3), -.BR io_uring_buf_ring_add (3) -.BR io_uring_buf_ring_advance (3), -.BR io_uring_buf_ring_cq_advance (3)
man/io_uring_buf_ring_init.3.md new file +45 -0
45 lines not on this page · raw message
man/io_uring_buf_ring_mask.3 deleted +0 -27
@@ -1,27 +0,0 @@ -.\" Copyright (C) 2022 Dylan Yudaken <[email protected]> -.\" -.\" SPDX-License-Identifier: LGPL-2.0-or-later -.\" -.TH io_uring_buf_ring_mask 3 "June 13, 2022" "liburing-2.2" "liburing Manual" -.SH NAME -io_uring_buf_ring_mask \- Calculate buffer ring mask size -.SH SYNOPSIS -.nf -.B #include <liburing.h> -.PP -.BI "int io_uring_buf_ring_mask(__u32 " ring_entries ");" -.fi -.SH DESCRIPTION -.PP -.BR io_uring_buf_ring_mask (3) -calculates the appropriate size mask for a buffer ring. -.IR ring_entries -is the ring entries as specified in -.BR io_uring_register_buf_ring (3) . - -.SH RETURN VALUE -Size mask for the buffer ring. - -.SH SEE ALSO -.BR io_uring_register_buf_ring (3), -.BR io_uring_buf_ring_add (3)
man/io_uring_buf_ring_mask.3.md new file +37 -0
@@ -0,0 +1,37 @@ +.\" Copyright (C) 2022 Dylan Yudaken <[email protected]> +.\" +.\" SPDX-License-Identifier: LGPL-2.0-or-later +.\" +--- +date: June 13, 2022 +footer: liburing-2.2 +header: liburing Manual +section: 3 +title: io_uring_buf_ring_mask +--- + +# NAME + +io_uring_buf_ring_mask - Calculate buffer ring mask size + +# SYNOPSIS + +``` text +#include <liburing.h> + + int io_uring_buf_ring_mask(__u32 ring_entries ); +``` + +# DESCRIPTION + +**io_uring_buf_ring_mask**(3) calculates the appropriate size mask for a +buffer ring. *ring_entries* is the ring entries as specified in +**io_uring_register_buf_ring**(3)**.** + +# RETURN VALUE + +Size mask for the buffer ring. + +# SEE ALSO + +**io_uring_register_buf_ring**(3), **io_uring_buf_ring_add**(3)
man/io_uring_cancelation.7 deleted +0 -324
324 lines not on this page · raw message
man/io_uring_cancelation.7.md new file +288 -0
288 lines not on this page · raw message
man/io_uring_check_version.3 deleted +0 -72
72 lines not on this page · raw message
man/io_uring_check_version.3.md new file +53 -0
53 lines not on this page · raw message
man/io_uring_clone_buffers.3 deleted +0 -165
4 lines not on this page · raw message
man/io_uring_clone_buffers.3.md new file +133 -0
133 lines not on this page · raw message
man/io_uring_close_ring_fd.3 deleted +0 -43
43 lines not on this page · raw message
man/io_uring_close_ring_fd.3.md new file +55 -0
55 lines not on this page · raw message
man/io_uring_cq_advance.3 deleted +0 -49
49 lines not on this page · raw message
man/io_uring_cq_advance.3.md new file +53 -0
53 lines not on this page · raw message
man/io_uring_cq_eventfd_enabled.3 deleted +0 -38
Lines of this file are not shown. View the raw message.
man/io_uring_cq_eventfd_enabled.3.md new file +45 -0
45 lines not on this page · raw message
man/io_uring_cq_eventfd_toggle.3 deleted +0 -48
48 lines not on this page · raw message
man/io_uring_cq_eventfd_toggle.3.md new file +53 -0
53 lines not on this page · raw message
man/io_uring_cq_has_overflow.3 deleted +0 -31
Lines of this file are not shown. View the raw message.
man/io_uring_cq_has_overflow.3.md new file +46 -0
46 lines not on this page · raw message
man/io_uring_cqe_get_data.3 deleted +0 -53
53 lines not on this page · raw message
man/io_uring_cqe_get_data.3.md new file +50 -0
50 lines not on this page · raw message
man/io_uring_cqe_nr.3.md new file +42 -0
42 lines not on this page · raw message
man/io_uring_cqe_seen.3 deleted +0 -41
41 lines not on this page · raw message
man/io_uring_cqe_seen.3.md new file +47 -0
47 lines not on this page · raw message
man/io_uring_enable_rings.3.md new file +48 -0
48 lines not on this page · raw message
man/io_uring_enter.2 deleted +0 -2208
2,208 lines not on this page · raw message
man/io_uring_enter.2.md new file +1466 -0
1,466 lines not on this page · raw message
man/io_uring_for_each_cqe.3 deleted +0 -63
63 lines not on this page · raw message
man/io_uring_for_each_cqe.3.md new file +68 -0
68 lines not on this page · raw message
man/io_uring_free_buf_ring.3 deleted +0 -53
53 lines not on this page · raw message
man/io_uring_free_buf_ring.3.md new file +55 -0
55 lines not on this page · raw message
man/io_uring_get_events.3.md new file +43 -0
43 lines not on this page · raw message
man/io_uring_get_probe.3.md new file +43 -0
43 lines not on this page · raw message
man/io_uring_get_probe_ring.3.md new file +45 -0
45 lines not on this page · raw message
man/io_uring_get_sqe.3 deleted +0 -57
57 lines not on this page · raw message
man/io_uring_get_sqe.3.md new file +55 -0
55 lines not on this page · raw message
man/io_uring_get_sqe128.3 deleted +0 -67
67 lines not on this page · raw message
man/io_uring_get_sqe128.3.md new file +59 -0
59 lines not on this page · raw message
man/io_uring_linked_requests.7 deleted +0 -271
271 lines not on this page · raw message
man/io_uring_linked_requests.7.md new file +261 -0
261 lines not on this page · raw message
man/io_uring_memory_size_params.3 deleted +0 -45
45 lines not on this page · raw message
man/io_uring_memory_size_params.3.md new file +51 -0
51 lines not on this page · raw message
man/io_uring_mlock_size.3 deleted +0 -42
42 lines not on this page · raw message
man/io_uring_mlock_size.3.md new file +47 -0
47 lines not on this page · raw message
man/io_uring_mlock_size_params.3 deleted +0 -48
48 lines not on this page · raw message
man/io_uring_mlock_size_params.3.md new file +49 -0
49 lines not on this page · raw message
man/io_uring_multishot.7 deleted +0 -246
246 lines not on this page · raw message
man/io_uring_multishot.7.md new file +235 -0
235 lines not on this page · raw message
man/io_uring_opcode_supported.3 deleted +0 -30
Lines of this file are not shown. View the raw message.
man/io_uring_opcode_supported.3.md new file +39 -0
Lines of this file are not shown. View the raw message.
man/io_uring_peek_cqe.3 deleted +0 -59
59 lines not on this page · raw message
man/io_uring_peek_cqe.3.md new file +55 -0
55 lines not on this page · raw message
man/io_uring_prep_accept.3 deleted +0 -203
203 lines not on this page · raw message
man/io_uring_prep_accept.3.md new file +161 -0
161 lines not on this page · raw message
man/io_uring_prep_bind.3 deleted +0 -54
54 lines not on this page · raw message
man/io_uring_prep_bind.3.md new file +52 -0
52 lines not on this page · raw message
man/io_uring_prep_cancel.3 deleted +0 -136
136 lines not on this page · raw message
man/io_uring_prep_cancel.3.md new file +138 -0
138 lines not on this page · raw message
man/io_uring_prep_close.3 deleted +0 -67
67 lines not on this page · raw message
man/io_uring_prep_close.3.md new file +62 -0
62 lines not on this page · raw message
man/io_uring_prep_cmd_discard.3 deleted +0 -64
64 lines not on this page · raw message
man/io_uring_prep_cmd_discard.3.md new file +62 -0
62 lines not on this page · raw message
man/io_uring_prep_cmd_getsockname.3 deleted +0 -79
79 lines not on this page · raw message
man/io_uring_prep_cmd_getsockname.3.md new file +64 -0
64 lines not on this page · raw message
man/io_uring_prep_cmd_sock.3 deleted +0 -219
219 lines not on this page · raw message
man/io_uring_prep_cmd_sock.3.md new file +159 -0
159 lines not on this page · raw message
man/io_uring_prep_connect.3 deleted +0 -66
66 lines not on this page · raw message
man/io_uring_prep_connect.3.md new file +65 -0
65 lines not on this page · raw message
man/io_uring_prep_epoll_ctl.3 deleted +0 -74
74 lines not on this page · raw message
man/io_uring_prep_epoll_ctl.3.md new file +68 -0
68 lines not on this page · raw message
man/io_uring_prep_epoll_wait.3 deleted +0 -64
64 lines not on this page · raw message
man/io_uring_prep_epoll_wait.3.md new file +61 -0
61 lines not on this page · raw message
man/io_uring_prep_fadvise.3 deleted +0 -76
76 lines not on this page · raw message
man/io_uring_prep_fadvise.3.md new file +68 -0
68 lines not on this page · raw message
man/io_uring_prep_fallocate.3 deleted +0 -59
59 lines not on this page · raw message
man/io_uring_prep_fallocate.3.md new file +54 -0
54 lines not on this page · raw message
man/io_uring_prep_files_update.3 deleted +0 -92
92 lines not on this page · raw message
man/io_uring_prep_files_update.3.md new file +93 -0
93 lines not on this page · raw message
man/io_uring_prep_fixed_fd_install.3 deleted +0 -70
70 lines not on this page · raw message
man/io_uring_prep_fixed_fd_install.3.md new file +71 -0
71 lines not on this page · raw message
man/io_uring_prep_fsync.3 deleted +0 -70
70 lines not on this page · raw message
man/io_uring_prep_fsync.3.md new file +62 -0
62 lines not on this page · raw message
man/io_uring_prep_ftruncate.3 deleted +0 -54
54 lines not on this page · raw message
man/io_uring_prep_ftruncate.3.md new file +51 -0
51 lines not on this page · raw message
man/io_uring_prep_futex_wait.3 deleted +0 -94
94 lines not on this page · raw message
man/io_uring_prep_futex_wait.3.md new file +79 -0
79 lines not on this page · raw message
man/io_uring_prep_futex_waitv.3 deleted +0 -78
78 lines not on this page · raw message
man/io_uring_prep_futex_waitv.3.md new file +71 -0
71 lines not on this page · raw message
man/io_uring_prep_futex_wake.3 deleted +0 -86
86 lines not on this page · raw message
man/io_uring_prep_futex_wake.3.md new file +71 -0
71 lines not on this page · raw message
man/io_uring_prep_getxattr.3 deleted +0 -61
61 lines not on this page · raw message
man/io_uring_prep_getxattr.3.md new file +57 -0
57 lines not on this page · raw message
man/io_uring_prep_link_timeout.3 deleted +0 -98
98 lines not on this page · raw message
man/io_uring_prep_link_timeout.3.md new file +104 -0
104 lines not on this page · raw message
man/io_uring_prep_linkat.3 deleted +0 -91
91 lines not on this page · raw message
man/io_uring_prep_linkat.3.md new file +80 -0
80 lines not on this page · raw message
man/io_uring_prep_listen.3 deleted +0 -52
52 lines not on this page · raw message
man/io_uring_prep_listen.3.md new file +53 -0
53 lines not on this page · raw message
man/io_uring_prep_madvise.3 deleted +0 -72
72 lines not on this page · raw message
man/io_uring_prep_madvise.3.md new file +66 -0
66 lines not on this page · raw message
man/io_uring_prep_mkdirat.3 deleted +0 -83
83 lines not on this page · raw message
man/io_uring_prep_mkdirat.3.md new file +75 -0
75 lines not on this page · raw message
man/io_uring_prep_msg_ring.3 deleted +0 -92
92 lines not on this page · raw message
man/io_uring_prep_msg_ring.3.md new file +85 -0
85 lines not on this page · raw message
man/io_uring_prep_msg_ring_fd.3 deleted +0 -83
83 lines not on this page · raw message
man/io_uring_prep_msg_ring_fd.3.md new file +86 -0
86 lines not on this page · raw message
man/io_uring_prep_nop.3.md new file +41 -0
41 lines not on this page · raw message
man/io_uring_prep_nop128.3.md new file +42 -0
42 lines not on this page · raw message
man/io_uring_prep_openat.3 deleted +0 -138
138 lines not on this page · raw message
man/io_uring_prep_openat.3.md new file +117 -0
117 lines not on this page · raw message
man/io_uring_prep_openat2.3 deleted +0 -119
119 lines not on this page · raw message
man/io_uring_prep_openat2.3.md new file +104 -0
104 lines not on this page · raw message
man/io_uring_prep_pipe.3 deleted +0 -91
91 lines not on this page · raw message
man/io_uring_prep_pipe.3.md new file +76 -0
76 lines not on this page · raw message
man/io_uring_prep_poll_add.3 deleted +0 -72
72 lines not on this page · raw message
man/io_uring_prep_poll_add.3.md new file +68 -0
68 lines not on this page · raw message
man/io_uring_prep_poll_remove.3 deleted +0 -55
55 lines not on this page · raw message
man/io_uring_prep_poll_remove.3.md new file +66 -0
66 lines not on this page · raw message
man/io_uring_prep_poll_update.3 deleted +0 -101
101 lines not on this page · raw message
man/io_uring_prep_poll_update.3.md new file +101 -0
101 lines not on this page · raw message
man/io_uring_prep_provide_buffers.3 deleted +0 -140
140 lines not on this page · raw message
man/io_uring_prep_provide_buffers.3.md new file +116 -0
116 lines not on this page · raw message
man/io_uring_prep_read.3 deleted +0 -76
76 lines not on this page · raw message
man/io_uring_prep_read.3.md new file +72 -0
72 lines not on this page · raw message
man/io_uring_prep_read_fixed.3 deleted +0 -79
79 lines not on this page · raw message
man/io_uring_prep_read_fixed.3.md new file +71 -0
71 lines not on this page · raw message
man/io_uring_prep_read_multishot.3 deleted +0 -107
107 lines not on this page · raw message
man/io_uring_prep_read_multishot.3.md new file +92 -0
92 lines not on this page · raw message
man/io_uring_prep_readv.3 deleted +0 -92
92 lines not on this page · raw message
man/io_uring_prep_readv.3.md new file +86 -0
86 lines not on this page · raw message
man/io_uring_prep_readv2.3 deleted +0 -118
118 lines not on this page · raw message
man/io_uring_prep_readv2.3.md new file +110 -0
110 lines not on this page · raw message
man/io_uring_prep_readv_fixed.3 deleted +0 -74
74 lines not on this page · raw message
man/io_uring_prep_readv_fixed.3.md new file +72 -0
72 lines not on this page · raw message
man/io_uring_prep_recv.3 deleted +0 -147
147 lines not on this page · raw message
man/io_uring_prep_recv.3.md new file +130 -0
130 lines not on this page · raw message
man/io_uring_prep_recvmsg.3 deleted +0 -130
130 lines not on this page · raw message
man/io_uring_prep_recvmsg.3.md new file +113 -0
113 lines not on this page · raw message
man/io_uring_prep_remove_buffers.3 deleted +0 -52
52 lines not on this page · raw message
man/io_uring_prep_remove_buffers.3.md new file +59 -0
59 lines not on this page · raw message
man/io_uring_prep_renameat.3 deleted +0 -95
95 lines not on this page · raw message
man/io_uring_prep_renameat.3.md new file +80 -0
80 lines not on this page · raw message
man/io_uring_prep_send.3 deleted +0 -197
197 lines not on this page · raw message
man/io_uring_prep_send.3.md new file +154 -0
154 lines not on this page · raw message
man/io_uring_prep_send_set_addr.3 deleted +0 -38
Lines of this file are not shown. View the raw message.
man/io_uring_prep_send_set_addr.3.md new file +42 -0
42 lines not on this page · raw message
man/io_uring_prep_send_zc.3 deleted +0 -140
140 lines not on this page · raw message
man/io_uring_prep_send_zc.3.md new file +110 -0
110 lines not on this page · raw message
man/io_uring_prep_sendmsg.3 deleted +0 -136
136 lines not on this page · raw message
man/io_uring_prep_sendmsg.3.md new file +111 -0
111 lines not on this page · raw message
man/io_uring_prep_sendmsg_zc_fixed.3 deleted +0 -69
69 lines not on this page · raw message
man/io_uring_prep_sendmsg_zc_fixed.3.md new file +70 -0
70 lines not on this page · raw message
man/io_uring_prep_setxattr.3 deleted +0 -64
64 lines not on this page · raw message
man/io_uring_prep_setxattr.3.md new file +59 -0
59 lines not on this page · raw message
man/io_uring_prep_shutdown.3 deleted +0 -53
53 lines not on this page · raw message
man/io_uring_prep_shutdown.3.md new file +51 -0
51 lines not on this page · raw message
man/io_uring_prep_socket.3 deleted +0 -118
118 lines not on this page · raw message
man/io_uring_prep_socket.3.md new file +94 -0
94 lines not on this page · raw message
man/io_uring_prep_splice.3 deleted +0 -126
126 lines not on this page · raw message
man/io_uring_prep_splice.3.md new file +88 -0
88 lines not on this page · raw message
man/io_uring_prep_statx.3 deleted +0 -74
74 lines not on this page · raw message
man/io_uring_prep_statx.3.md new file +70 -0
70 lines not on this page · raw message
man/io_uring_prep_symlinkat.3 deleted +0 -85
85 lines not on this page · raw message
man/io_uring_prep_symlinkat.3.md new file +76 -0
76 lines not on this page · raw message
man/io_uring_prep_sync_file_range.3 deleted +0 -59
59 lines not on this page · raw message
man/io_uring_prep_sync_file_range.3.md new file +54 -0
54 lines not on this page · raw message
man/io_uring_prep_tee.3 deleted +0 -80
80 lines not on this page · raw message
man/io_uring_prep_tee.3.md new file +69 -0
69 lines not on this page · raw message
man/io_uring_prep_timeout.3 deleted +0 -121
121 lines not on this page · raw message
man/io_uring_prep_timeout.3.md new file +124 -0
124 lines not on this page · raw message
man/io_uring_prep_timeout_update.3 deleted +0 -85
85 lines not on this page · raw message
man/io_uring_prep_timeout_update.3.md new file +95 -0
95 lines not on this page · raw message
man/io_uring_prep_unlinkat.3 deleted +0 -82
82 lines not on this page · raw message
man/io_uring_prep_unlinkat.3.md new file +75 -0
75 lines not on this page · raw message
man/io_uring_prep_uring_cmd.3.md new file +47 -0
47 lines not on this page · raw message
man/io_uring_prep_uring_cmd128.3 deleted +0 -38
Lines of this file are not shown. View the raw message.
man/io_uring_prep_uring_cmd128.3.md new file +48 -0
48 lines not on this page · raw message
man/io_uring_prep_waitid.3 deleted +0 -67
67 lines not on this page · raw message
man/io_uring_prep_waitid.3.md new file +60 -0
60 lines not on this page · raw message
man/io_uring_prep_write.3 deleted +0 -70
70 lines not on this page · raw message
man/io_uring_prep_write.3.md new file +69 -0
69 lines not on this page · raw message
man/io_uring_prep_write_fixed.3 deleted +0 -75
75 lines not on this page · raw message
man/io_uring_prep_write_fixed.3.md new file +69 -0
69 lines not on this page · raw message
man/io_uring_prep_writev.3 deleted +0 -89
89 lines not on this page · raw message
man/io_uring_prep_writev.3.md new file +84 -0
84 lines not on this page · raw message
man/io_uring_prep_writev2.3 deleted +0 -115
115 lines not on this page · raw message
man/io_uring_prep_writev2.3.md new file +108 -0
108 lines not on this page · raw message
man/io_uring_prep_writev_fixed.3 deleted +0 -71
71 lines not on this page · raw message
man/io_uring_prep_writev_fixed.3.md new file +72 -0
72 lines not on this page · raw message
man/io_uring_provided_buffers.7 deleted +0 -266
266 lines not on this page · raw message
man/io_uring_provided_buffers.7.md new file +255 -0
255 lines not on this page · raw message
man/io_uring_queue_exit.3.md new file +44 -0
44 lines not on this page · raw message
man/io_uring_queue_init.3 deleted +0 -144
144 lines not on this page · raw message
man/io_uring_queue_init.3.md new file +109 -0
109 lines not on this page · raw message
man/io_uring_queue_mmap.3 deleted +0 -49
49 lines not on this page · raw message
man/io_uring_queue_mmap.3.md new file +48 -0
48 lines not on this page · raw message
man/io_uring_recvmsg_out.3 deleted +0 -82
82 lines not on this page · raw message
man/io_uring_recvmsg_out.3.md new file +82 -0
82 lines not on this page · raw message
man/io_uring_register.2 deleted +0 -1375
1,375 lines not on this page · raw message
man/io_uring_register.2.md new file +932 -0
932 lines not on this page · raw message
man/io_uring_register_bpf_filter.3 deleted +0 -411
411 lines not on this page · raw message
man/io_uring_register_bpf_filter.3.md new file +358 -0
358 lines not on this page · raw message
man/io_uring_register_buf_ring.3 deleted +0 -165
165 lines not on this page · raw message
man/io_uring_register_buf_ring.3.md new file +135 -0
135 lines not on this page · raw message
man/io_uring_register_buffers.3 deleted +0 -105
105 lines not on this page · raw message
man/io_uring_register_buffers.3.md new file +86 -0
86 lines not on this page · raw message
man/io_uring_register_clock.3 deleted +0 -72
72 lines not on this page · raw message
man/io_uring_register_clock.3.md new file +71 -0
71 lines not on this page · raw message
man/io_uring_register_eventfd.3 deleted +0 -50
50 lines not on this page · raw message
man/io_uring_register_eventfd.3.md new file +62 -0
62 lines not on this page · raw message
man/io_uring_register_file_alloc_range.3 deleted +0 -52
52 lines not on this page · raw message
man/io_uring_register_file_alloc_range.3.md new file +58 -0
58 lines not on this page · raw message
man/io_uring_register_files.3 deleted +0 -120
120 lines not on this page · raw message
man/io_uring_register_files.3.md new file +99 -0
99 lines not on this page · raw message
man/io_uring_register_ifq.3 deleted +0 -49
49 lines not on this page · raw message
man/io_uring_register_ifq.3.md new file +49 -0
49 lines not on this page · raw message
man/io_uring_register_iowq_aff.3 deleted +0 -67
67 lines not on this page · raw message
man/io_uring_register_iowq_aff.3.md new file +68 -0
68 lines not on this page · raw message
man/io_uring_register_iowq_max_workers.3 deleted +0 -71
71 lines not on this page · raw message
man/io_uring_register_iowq_max_workers.3.md new file +77 -0
77 lines not on this page · raw message
man/io_uring_register_napi.3.md new file +43 -0
43 lines not on this page · raw message
man/io_uring_register_personality.3 deleted +0 -34
Lines of this file are not shown. View the raw message.
man/io_uring_register_personality.3.md new file +43 -0
43 lines not on this page · raw message
man/io_uring_register_probe.3 deleted +0 -47
47 lines not on this page · raw message
man/io_uring_register_probe.3.md new file +51 -0
51 lines not on this page · raw message
man/io_uring_register_query.3 deleted +0 -114
114 lines not on this page · raw message
man/io_uring_register_query.3.md new file +99 -0
99 lines not on this page · raw message
man/io_uring_register_region.3 deleted +0 -124
124 lines not on this page · raw message
man/io_uring_register_region.3.md new file +101 -0
101 lines not on this page · raw message
man/io_uring_register_restrictions.3 deleted +0 -53
53 lines not on this page · raw message
man/io_uring_register_restrictions.3.md new file +53 -0
53 lines not on this page · raw message
man/io_uring_register_ring_fd.3 deleted +0 -51
51 lines not on this page · raw message
man/io_uring_register_ring_fd.3.md new file +61 -0
61 lines not on this page · raw message
man/io_uring_register_sync_cancel.3 deleted +0 -73
73 lines not on this page · raw message
man/io_uring_register_sync_cancel.3.md new file +65 -0
65 lines not on this page · raw message
man/io_uring_register_sync_msg.3 deleted +0 -74
74 lines not on this page · raw message
man/io_uring_register_sync_msg.3.md new file +71 -0
71 lines not on this page · raw message
man/io_uring_register_wait_reg.3 deleted +0 -45
45 lines not on this page · raw message
man/io_uring_register_wait_reg.3.md new file +49 -0
49 lines not on this page · raw message
man/io_uring_register_zcrx_ctrl.3 deleted +0 -84
84 lines not on this page · raw message
man/io_uring_register_zcrx_ctrl.3.md new file +77 -0
77 lines not on this page · raw message
man/io_uring_registered_buffers.7 deleted +0 -238
238 lines not on this page · raw message
man/io_uring_registered_buffers.7.md new file +215 -0
215 lines not on this page · raw message
man/io_uring_registered_files.7 deleted +0 -228
228 lines not on this page · raw message
man/io_uring_registered_files.7.md new file +216 -0
216 lines not on this page · raw message
man/io_uring_resize_rings.3 deleted +0 -116
116 lines not on this page · raw message
man/io_uring_resize_rings.3.md new file +110 -0
110 lines not on this page · raw message
man/io_uring_ring_dontfork.3.md new file +43 -0
43 lines not on this page · raw message
man/io_uring_set_iowait.3 deleted +0 -57
57 lines not on this page · raw message
man/io_uring_set_iowait.3.md new file +57 -0
57 lines not on this page · raw message
man/io_uring_setup.2 deleted +0 -820
820 lines not on this page · raw message
man/io_uring_setup.2.md new file +664 -0
664 lines not on this page · raw message
man/io_uring_setup_buf_ring.3 deleted +0 -94
94 lines not on this page · raw message
man/io_uring_setup_buf_ring.3.md new file +85 -0
85 lines not on this page · raw message
man/io_uring_setup_flags.7 deleted +0 -451
451 lines not on this page · raw message
man/io_uring_setup_flags.7.md new file +373 -0
373 lines not on this page · raw message
man/io_uring_sq_ready.3.md new file +42 -0
42 lines not on this page · raw message
man/io_uring_sq_space_left.3.md new file +36 -0
Lines of this file are not shown. View the raw message.
man/io_uring_sqe_set_buf_group.3 deleted +0 -32
Lines of this file are not shown. View the raw message.
man/io_uring_sqe_set_buf_group.3.md new file +41 -0
41 lines not on this page · raw message
man/io_uring_sqe_set_data.3 deleted +0 -57
57 lines not on this page · raw message
man/io_uring_sqe_set_data.3.md new file +56 -0
56 lines not on this page · raw message
man/io_uring_sqe_set_flags.3 deleted +0 -87
87 lines not on this page · raw message
man/io_uring_sqe_set_flags.3.md new file +103 -0
103 lines not on this page · raw message
man/io_uring_sqpoll.7 deleted +0 -259
259 lines not on this page · raw message
man/io_uring_sqpoll.7.md new file +244 -0
244 lines not on this page · raw message
man/io_uring_sqring_wait.3.md new file +44 -0
44 lines not on this page · raw message
man/io_uring_submit.3 deleted +0 -51
51 lines not on this page · raw message
man/io_uring_submit.3.md new file +59 -0
59 lines not on this page · raw message
man/io_uring_submit_and_get_events.3 deleted +0 -31
Lines of this file are not shown. View the raw message.
man/io_uring_submit_and_get_events.3.md new file +41 -0
41 lines not on this page · raw message
man/io_uring_submit_and_wait.3 deleted +0 -44
44 lines not on this page · raw message
man/io_uring_submit_and_wait.3.md new file +50 -0
50 lines not on this page · raw message
man/io_uring_submit_and_wait_min_timeout.3 deleted +0 -119
119 lines not on this page · raw message
man/io_uring_submit_and_wait_min_timeout.3.md new file +94 -0
94 lines not on this page · raw message
man/io_uring_submit_and_wait_reg.3 deleted +0 -64
64 lines not on this page · raw message
man/io_uring_submit_and_wait_reg.3.md new file +62 -0
62 lines not on this page · raw message
man/io_uring_submit_and_wait_timeout.3 deleted +0 -74
74 lines not on this page · raw message
man/io_uring_submit_and_wait_timeout.3.md new file +70 -0
70 lines not on this page · raw message
man/io_uring_unregister_buf_ring.3 deleted +0 -30
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_buf_ring.3.md new file +40 -0
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_buffers.3 deleted +0 -27
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_buffers.3.md new file +38 -0
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_files.3 deleted +0 -27
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_files.3.md new file +37 -0
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_napi.3 deleted +0 -27
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_napi.3.md new file +35 -0
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_personality.3 deleted +0 -33
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_personality.3.md new file +41 -0
41 lines not on this page · raw message
man/io_uring_unregister_ring_fd.3 deleted +0 -32
Lines of this file are not shown. View the raw message.
man/io_uring_unregister_ring_fd.3.md new file +43 -0
43 lines not on this page · raw message
man/io_uring_wait_cqe.3 deleted +0 -41
41 lines not on this page · raw message
man/io_uring_wait_cqe.3.md new file +47 -0
47 lines not on this page · raw message
man/io_uring_wait_cqe_nr.3 deleted +0 -49
49 lines not on this page · raw message
man/io_uring_wait_cqe_nr.3.md new file +54 -0
54 lines not on this page · raw message
man/io_uring_wait_cqe_timeout.3 deleted +0 -62
62 lines not on this page · raw message
man/io_uring_wait_cqe_timeout.3.md new file +56 -0
56 lines not on this page · raw message
man/io_uring_wait_cqes.3 deleted +0 -82
82 lines not on this page · raw message
man/io_uring_wait_cqes.3.md new file +67 -0
67 lines not on this page · raw message
man/io_uring_wait_cqes_min_timeout.3 deleted +0 -76
76 lines not on this page · raw message
man/io_uring_wait_cqes_min_timeout.3.md new file +68 -0
68 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.54.0
Part of the diff is not shown here. View the raw message.
Hi, Gabriel,
Quoted 3 lines · Gabriel Krisman Bertazi
This obviously adds a build dependency on pandoc, which is already packaged by any sane distro out there. The configure file is updated to check for that.
I guess RHEL is not a sane distribution, then. :) pandoc was abandoned in favor of ghc-pandoc, and RHEL does not ship a haskell compiler. It would make RHEL packaging considerably easier if the generated man pages continued to be part of the upstream git tree. If that's not acceptable, then I can work around the problem, but it will be a pain. At the very least, please make generation of the man pages optional via configure.
Thanks!
Jeff
Quoted 4 lines · Jeff Moyer
Hi, Gabriel,
Gabriel Krisman Bertazi <[email protected]> writes:
Quoted 8 lines
Quoted 3 lines
This obviously adds a build dependency on pandoc, which is already packaged by any sane distro out there. The configure file is updated to check for that.
I guess RHEL is not a sane distribution, then. :) pandoc was abandoned in favor of ghc-pandoc, and RHEL does not ship a haskell compiler. It would make RHEL packaging considerably easier if the generated man pages continued to be part of the upstream git tree. If that's not acceptable,
Sorry, they don't need to be part of the git tree. If they were a part of the release tarballs, that would be sufficient.
Cheers,
Jeff
Quoted 5 lines
then I can work around the problem, but it will be a pain. At the very least, please make generation of the man pages optional via configure.
Thanks!
Jeff
Quoted 10 lines · Jeff Moyer
Hi, Gabriel,
Quoted 3 lines · Gabriel Krisman Bertazi
This obviously adds a build dependency on pandoc, which is already packaged by any sane distro out there. The configure file is updated to check for that.
I guess RHEL is not a sane distribution, then. :) pandoc was abandoned in favor of ghc-pandoc, and RHEL does not ship a haskell compiler.
Oh, that is a bummer!
Quoted 3 lines
It would make RHEL packaging considerably easier if the generated man pages continued to be part of the upstream git tree. If that's not acceptable, then I can work around the problem, but it will be a pain.
I suppose we'll have to keep them in-tree, no way around that. RHEL is unlikely to be the only problematic distro.
The question is whether we want to do the md conversion at all and have both in-tree or just drop this entirely. On the bright side, Markdown is much easier to write, but duplicating the sources can make them go out of sync.
Quoted 6 lines
At the very least, please make generation of the man pages optional via configure.
Thanks!
Jeff
Signature · 1 line
Gabriel Krisman Bertazi
Quoted 13 lines · Gabriel Krisman Bertazi
Quoted 10 lines · Jeff Moyer
Hi, Gabriel,
Quoted 3 lines · Gabriel Krisman Bertazi
This obviously adds a build dependency on pandoc, which is already packaged by any sane distro out there. The configure file is updated to check for that.
I guess RHEL is not a sane distribution, then. :) pandoc was abandoned in favor of ghc-pandoc, and RHEL does not ship a haskell compiler.
Quoted 8 lines
Oh, that is a bummer!
Quoted 3 lines
It would make RHEL packaging considerably easier if the generated man pages continued to be part of the upstream git tree. If that's not acceptable, then I can work around the problem, but it will be a pain.
I suppose we'll have to keep them in-tree, no way around that. RHEL is unlikely to be the only problematic distro.
Well, RHEL is often an outlier, but there are derivatives that will likely also see this issue.
Quoted 4 lines
The question is whether we want to do the md conversion at all and have both in-tree or just drop this entirely. On the bright side, Markdown is much easier to write, but duplicating the sources can make them go out of sync.
I don't have a strong opinion. Either way, I'll be looking at documentation and/or prior examples to make the changes I need to make. :) As I said in my last follow-up, it would be enough for me if the generated man pages were simply part of the release tarballs (it's not necessary to check them into git). I'm sure that can be accomplished with makefile magic.
Quoted 2 lines
Quoted 2 lines
At the very least, please make generation of the man pages optional via configure.
And this would be a necessary part of the solution, were things to go that way.
Thanks!
Jeff
Quoted 6 lines · Jeff Moyer
I don't have a strong opinion. Either way, I'll be looking at documentation and/or prior examples to make the changes I need to make. :) As I said in my last follow-up, it would be enough for me if the generated man pages were simply part of the release tarballs (it's not necessary to check them into git). I'm sure that can be accomplished with makefile magic.
I considered that, part of a 'make dist'-kind of rule. But there is the tarballs generated by github which do a simple git-archive. I don't think we can change them to run a custom command.
We fetch our sources from https://brick.kernel.dk. That seems to be generated by the create-archive rule, which we could patch.
If github tarballs differing from Jens' server are not a problem, and you can use that server, I'm happy make it build through the create-archive rule. Should solve the problem.
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
At the very least, please make generation of the man pages optional via configure.
And this would be a necessary part of the solution, were things to go that way.
ack!
Quoted 4 lines
Thanks!
Jeff
Signature · 1 line
Gabriel Krisman Bertazi
Quoted 13 lines · Gabriel Krisman Bertazi
Quoted 6 lines · Jeff Moyer
I don't have a strong opinion. Either way, I'll be looking at documentation and/or prior examples to make the changes I need to make. :) As I said in my last follow-up, it would be enough for me if the generated man pages were simply part of the release tarballs (it's not necessary to check them into git). I'm sure that can be accomplished with makefile magic.
I considered that, part of a 'make dist'-kind of rule. But there is the tarballs generated by github which do a simple git-archive. I don't think we can change them to run a custom command.
Quoted 6 lines
We fetch our sources from https://brick.kernel.dk. That seems to be generated by the create-archive rule, which we could patch.
If github tarballs differing from Jens' server are not a problem, and you can use that server, I'm happy make it build through the create-archive rule. Should solve the problem.
Yes, I use brick.kernel.dk.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
At the very least, please make generation of the man pages optional via configure.
And this would be a necessary part of the solution, were things to go that way.
ack!
Thanks, Gabriel!
-Jeff