€•÷�Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒ$Register entries with ``REGISTER``. ”h]”hï)�”}”(hŒ#Register entries with ``REGISTER``.”h]”(hŒRegister entries with ”…”�”}”(hj�h²hh³Nh´Nubhõ)�”}”(hŒ ``REGISTER``”h]”hŒREGISTER”…”�”}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj�ubhŒ.”…”�”}”(hj�h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KLhjŒubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1jh³hÇh´KIhjïh²hubhï)�”}”(hŒ For every request that has a payload, the kernel reports where the payload lives in ``struct fuse_uring_ent_in_out`` (part of ``struct fuse_uring_req_header``):”h]”(hŒTFor every request that has a payload, the kernel reports where the payload lives in ”…”�”}”(hj¾h²hh³Nh´Nubhõ)�”}”(hŒ ``struct fuse_uring_ent_in_out``”h]”hŒstruct fuse_uring_ent_in_out”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj¾ubhŒ (part of ”…”�”}”(hj¾h²hh³Nh´Nubhõ)�”}”(hŒ ``struct fuse_uring_req_header``”h]”hŒstruct fuse_uring_req_header”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj¾ubhŒ):”…”�”}”(hj¾h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KNhjïh²hubj)�”}”(hhh]”(j)�”}”(hŒ˜``offset`` Byte offset, within the pool region, for this request's payload buffer. The server adds this to the pool base address to locate the payload. ”h]”(j)�”}”(hŒ ``offset``”h]”hõ)�”}”(hjùh]”hŒoffset”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj÷ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KThjóubj3)�”}”(hhh]”hï)�”}”(hŒŒByte offset, within the pool region, for this request's payload buffer. The server adds this to the pool base address to locate the payload.”h]”hŒŽByte offset, within the pool region, for this request’s payload buffer. The server adds this to the pool base address to locate the payload.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KShj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hjóubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KThjðubj)�”}”(hŒ9``payload_sz`` Number of payload bytes for this request. ”h]”(j)�”}”(hŒ``payload_sz``”h]”hõ)�”}”(hj1 h]”hŒ payload_sz”…”�”}”(hj3 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj/ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KWhj+ ubj3)�”}”(hhh]”hï)�”}”(hŒ)Number of payload bytes for this request.”h]”hŒ)Number of payload bytes for this request.”…”�”}”(hjI h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KWhjF ubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hj+ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´KWhjðh²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjïh²hh³hÇh´Nubhï)�”}”(hXTo use registered buffers, the server registers the pool region with io_uring and submits ``ADD_BUFPOOL`` with ``IORING_URING_CMD_FIXED`` set in ``sqe->uring_cmd_flags`` and the index of the registered bufpool in ``sqe->buf_index``. Every SQE the server submits afterwards must follow the same fixed-buffer protocol, carrying ``IORING_URING_CMD_FIXED`` and that same ``sqe->buf_index``. The same registered buffer can be reused for the server's backing-store I/O as well (e.g. ``IORING_OP_READ_FIXED`` / ``IORING_OP_WRITE_FIXED``).”h]”(hŒZTo use registered buffers, the server registers the pool region with io_uring and submits ”…”�”}”(hji h²hh³Nh´Nubhõ)�”}”(hŒ``ADD_BUFPOOL``”h]”hŒ ADD_BUFPOOL”…”�”}”(hjq h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhji ubhŒ with ”…”�”}”(hji h²hh³Nh´Nubhõ)�”}”(hŒ``IORING_URING_CMD_FIXED``”h]”hŒIORING_URING_CMD_FIXED”…”�”}”(hjƒ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhji ubhŒ set in ”…”�”}”(hji h²hh³Nh´Nubhõ)�”}”(hŒ``sqe->uring_cmd_flags``”h]”hŒsqe->uring_cmd_flags”…”�”}”(hj• h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhji ubhŒ, and the index of the registered bufpool in ”…”�”}”(hji h²hh³Nh´Nubhõ)�”}”(hŒ``sqe->buf_index``”h]”hŒsqe->buf_index”…”�”}”(hj§ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhji ubhŒ_. Every SQE the server submits afterwards must follow the same fixed-buffer protocol, carrying ”…”�”}”(hji h²hh³Nh´Nubhõ)�”}”(hŒ``IORING_URING_CMD_FIXED``”h]”hŒIORING_URING_CMD_FIXED”…”�”}”(hj¹ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhji ubhŒ and that same ”…”�”}”(hji h²hh³Nh´Nubhõ)�”}”(hŒ``sqe->buf_index``”h]”hŒsqe->buf_index”…”�”}”(hjË h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhji ubhŒ^. The same registered buffer can be reused for the server’s backing-store I/O as well (e.g. ”…”�”}”(hji h²hh³Nh´Nubhõ)�”}”(hŒ``IORING_OP_READ_FIXED``”h]”hŒIORING_OP_READ_FIXED”…”�”}”(hjÝ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhji ubhŒ / ”…”�”}”(hji h²hh³Nh´Nubhõ)�”}”(hŒ``IORING_OP_WRITE_FIXED``”h]”hŒIORING_OP_WRITE_FIXED”…”�”}”(hjï h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhji ubhŒ).”…”�”}”(hji h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KYhjïh²hubeh}”(h]”jƒah ]”h"]”Œ buffer pools”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KFŒ referenced”KubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ Zero-copy”h]”hŒ Zero-copy”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj h²hh³hÇh´Kcubhï)�”}”(hŒ Requirements:”h]”hŒ Requirements:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kdhj h²hubj)�”}”(hhh]”(j)�”}”(hŒ2The server must be privileged (``CAP_SYS_ADMIN``).”h]”hï)�”}”(hj3 h]”(hŒThe server must be privileged (”…”�”}”(hj5 h²hh³Nh´Nubhõ)�”}”(hŒ``CAP_SYS_ADMIN``”h]”hŒ CAP_SYS_ADMIN”…”�”}”(hj< h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj5 ubhŒ).”…”�”}”(hj5 h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kfhj1 ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj. h²hh³hÇh´Nubj)�”}”(hŒLA zero-copy queue: ``ADD_QUEUE`` with the ``FUSE_URING_ZERO_COPY`` flag set.”h]”hï)�”}”(hj\ h]”(hŒA zero-copy queue: ”…”�”}”(hj^ h²hh³Nh´Nubhõ)�”}”(hŒ ``ADD_QUEUE``”h]”hŒ ADD_QUEUE”…”�”}”(hje h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj^ ubhŒ with the ”…”�”}”(hj^ h²hh³Nh´Nubhõ)�”}”(hŒ``FUSE_URING_ZERO_COPY``”h]”hŒFUSE_URING_ZERO_COPY”…”�”}”(hjw h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj^ ubhŒ flag set.”…”�”}”(hj^ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KghjZ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj. h²hh³hÇh´Nubj)�”}”(hŒA buffer pool: ``ADD_BUFPOOL``.”h]”hï)�”}”(hj— h]”(hŒA buffer pool: ”…”�”}”(hj™ h²hh³Nh´Nubhõ)�”}”(hŒ``ADD_BUFPOOL``”h]”hŒ ADD_BUFPOOL”…”�”}”(hj  h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj™ ubhŒ.”…”�”}”(hj™ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Khhj• ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj. h²hh³hÇh´Nubj)�”}”(hX8For each entry, ``REGISTER`` with ``ent_zero_copy_buf_index`` set to the index this entry uses in the server's io_uring registered-buffer table. This is where the kernel registers the request's pages for the server to access (it is separate from the payload pool). On a non-zero-copy queue this field must be 0. ”h]”hï)�”}”(hX7For each entry, ``REGISTER`` with ``ent_zero_copy_buf_index`` set to the index this entry uses in the server's io_uring registered-buffer table. This is where the kernel registers the request's pages for the server to access (it is separate from the payload pool). On a non-zero-copy queue this field must be 0.”h]”(hŒFor each entry, ”…”�”}”(hj h²hh³Nh´Nubhõ)�”}”(hŒ ``REGISTER``”h]”hŒREGISTER”…”�”}”(hjÊ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj ubhŒ with ”…”�”}”(hj h²hh³Nh´Nubhõ)�”}”(hŒ``ent_zero_copy_buf_index``”h]”hŒent_zero_copy_buf_index”…”�”}”(hjÜ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj ubhŒþ set to the index this entry uses in the server’s io_uring registered-buffer table. This is where the kernel registers the request’s pages for the server to access (it is separate from the payload pool). On a non-zero-copy queue this field must be 0.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kihj¾ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj. h²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j¼j½uh1jh³hÇh´Kfhj h²hubhï)�”}”(hŒuZero-copy is selected per open file. The server sets the open-file flag in the ``FUSE_OPEN`` / ``FUSE_CREATE`` reply:”h]”(hŒOZero-copy is selected per open file. The server sets the open-file flag in the ”…”�”}”(hj h²hh³Nh´Nubhõ)�”}”(hŒ ``FUSE_OPEN``”h]”hŒ FUSE_OPEN”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj ubhŒ / ”…”�”}”(hj h²hh³Nh´Nubhõ)�”}”(hŒ``FUSE_CREATE``”h]”hŒ FUSE_CREATE”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj ubhŒ reply:”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kohj h²hubj)�”}”(hhh]”j)�”}”(hŒR``FOPEN_IO_URING_ZERO_COPY`` Reads/writes on this open file should use zero-copy. ”h]”(j)�”}”(hŒ``FOPEN_IO_URING_ZERO_COPY``”h]”hõ)�”}”(hj; h]”hŒFOPEN_IO_URING_ZERO_COPY”…”�”}”(hj= h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhj9 ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Kshj5 ubj3)�”}”(hhh]”hï)�”}”(hŒ4Reads/writes on this open file should use zero-copy.”h]”hŒ4Reads/writes on this open file should use zero-copy.”…”�”}”(hjS h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´KshjP ubah}”(h]”h ]”h"]”h$]”h&]”uh1j2hj5 ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÇh´Kshj2 ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhj h²hh³hÇh´Nubhï)�”}”(hXVFor a request that is zero-copied, the kernel sets ``FUSE_URING_ENT_ZERO_COPY`` in ``fuse_uring_ent_in_out.flags`` and places the request's pages at the entry's ``ent_zero_copy_buf_index``. The server then issues ``IORING_OP_READ_FIXED`` / ``IORING_OP_WRITE_FIXED`` against that index to transfer the data directly to/from the client's pages.”h]”(hŒ3For a request that is zero-copied, the kernel sets ”…”�”}”(hjs h²hh³Nh´Nubhõ)�”}”(hŒ``FUSE_URING_ENT_ZERO_COPY``”h]”hŒFUSE_URING_ENT_ZERO_COPY”…”�”}”(hj{ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhjs ubhŒ in ”…”�”}”(hjs h²hh³Nh´Nubhõ)�”}”(hŒ``fuse_uring_ent_in_out.flags``”h]”hŒfuse_uring_ent_in_out.flags”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhjs ubhŒ3 and places the request’s pages at the entry’s ”…”�”}”(hjs h²hh³Nh´Nubhõ)�”}”(hŒ``ent_zero_copy_buf_index``”h]”hŒent_zero_copy_buf_index”…”�”}”(hjŸ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhjs ubhŒ. The server then issues ”…”�”}”(hjs h²hh³Nh´Nubhõ)�”}”(hŒ``IORING_OP_READ_FIXED``”h]”hŒIORING_OP_READ_FIXED”…”�”}”(hj± h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhjs ubhŒ / ”…”�”}”(hjs h²hh³Nh´Nubhõ)�”}”(hŒ``IORING_OP_WRITE_FIXED``”h]”hŒIORING_OP_WRITE_FIXED”…”�”}”(hjà h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhjs ubhŒO against that index to transfer the data directly to/from the client’s pages.”…”�”}”(hjs h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´Kuhj h²hubhï)�”}”(hŒùFor such a request, ``payload_sz`` includes the zero-copied page bytes (transferred via the registered buffer at ``ent_zero_copy_buf_index``). Any non-page-backed args (e.g. op headers) are still copied through the pool payload buffer at ``offset``.”h]”(hŒFor such a request, ”…”�”}”(hjÛ h²hh³Nh´Nubhõ)�”}”(hŒ``payload_sz``”h]”hŒ payload_sz”…”�”}”(hjã h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhjÛ ubhŒO includes the zero-copied page bytes (transferred via the registered buffer at ”…”�”}”(hjÛ h²hh³Nh´Nubhõ)�”}”(hŒ``ent_zero_copy_buf_index``”h]”hŒent_zero_copy_buf_index”…”�”}”(hjõ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhjÛ ubhŒb). Any non-page-backed args (e.g. op headers) are still copied through the pool payload buffer at ”…”�”}”(hjÛ h²hh³Nh´Nubhõ)�”}”(hŒ ``offset``”h]”hŒoffset”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hôhjÛ ubhŒ.”…”�”}”(hjÛ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîh³hÇh´K{hj h²hubeh}”(h]”jÉah ]”h"]”Œ zero-copy”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´Kcj Kubeh}”(h]”Œ%fuse-over-io-uring-uapi-documentation”ah ]”h"]”Œ%fuse-over-io-uring uapi documentation”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”j¹Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jP Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”(Œ zero-copy”]”(j¸jÒjneŒ buffer pools”]”jsauŒrefids”}”Œnameids”}”(j+ j( j_j\jìjéj jƒj# jÉuŒ nametypes”}”(j+ ‰j_‰jì‰j ‰j# ‰uh}”(j( hÊj\hÝjéjbjƒjïjÉj uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.