€•Œ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”Œ(/translations/zh_CN/doc-guide/kernel-doc”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/zh_TW/doc-guide/kernel-doc”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/it_IT/doc-guide/kernel-doc”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ja_JP/doc-guide/kernel-doc”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/ko_KR/doc-guide/kernel-doc”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/pt_BR/doc-guide/kernel-doc”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ(/translations/sp_SP/doc-guide/kernel-doc”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒWriting kernel-doc comments”h]”hŒWriting kernel-doc comments”…”�”}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³ŒB/var/lib/git/docbuild/linux/Documentation/doc-guide/kernel-doc.rst”h´KubhŒ paragraph”“”)�”}”(hŒðThe Linux kernel source files may contain structured documentation comments in the kernel-doc format to describe the functions, types and design of the code. It is easier to keep documentation up-to-date when it is embedded in source files.”h]”hŒðThe Linux kernel source files may contain structured documentation comments in the kernel-doc format to describe the functions, types and design of the code. It is easier to keep documentation up-to-date when it is embedded in source files.”…”�”}”(hhÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhŒnote”“”)�”}”(hŒðThe kernel-doc format is deceptively similar to javadoc, gtk-doc or Doxygen, yet distinctively different, for historical reasons. The kernel source contains tens of thousands of kernel-doc comments. Please stick to the style described here.”h]”hÌ)�”}”(hŒðThe kernel-doc format is deceptively similar to javadoc, gtk-doc or Doxygen, yet distinctively different, for historical reasons. The kernel source contains tens of thousands of kernel-doc comments. Please stick to the style described here.”h]”hŒðThe kernel-doc format is deceptively similar to javadoc, gtk-doc or Doxygen, yet distinctively different, for historical reasons. The kernel source contains tens of thousands of kernel-doc comments. Please stick to the style described here.”…”�”}”(hháh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hhÝubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhh·h²hh³hÊh´NubhÜ)�”}”(hŒckernel-doc does not cover Rust code: please see Documentation/rust/general-information.rst instead.”h]”hÌ)�”}”(hŒckernel-doc does not cover Rust code: please see Documentation/rust/general-information.rst instead.”h]”hŒckernel-doc does not cover Rust code: please see Documentation/rust/general-information.rst instead.”…”�”}”(hhùh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khhõubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhh·h²hh³hÊh´NubhÌ)�”}”(hXThe kernel-doc structure is extracted from the comments, and proper `Sphinx C Domain`_ function and type descriptions with anchors are generated from them. The descriptions are filtered for special kernel-doc highlights and cross-references. See below for details.”h]”(hŒDThe kernel-doc structure is extracted from the comments, and proper ”…”�”}”(hj h²hh³Nh´NubhŒ reference”“”)�”}”(hŒ`Sphinx C Domain`_”h]”hŒSphinx C Domain”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒSphinx C Domain”Œrefuri”Œ0http://www.sphinx-doc.org/en/stable/domains.html”uh1jhj Œresolved”KubhŒ² function and type descriptions with anchors are generated from them. The descriptions are filtered for special kernel-doc highlights and cross-references. See below for details.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhŒtarget”“”)�”}”(hŒE.. _Sphinx C Domain: http://www.sphinx-doc.org/en/stable/domains.html”h]”h}”(h]”Œsphinx-c-domain”ah ]”h"]”Œsphinx c domain”ah$]”h&]”j'j(uh1j4h´Khh·h²hh³hÊŒ referenced”KubhÌ)�”}”(hXEvery function that is exported to loadable modules using ``EXPORT_SYMBOL`` or ``EXPORT_SYMBOL_GPL`` should have a kernel-doc comment. Functions and data structures in header files which are intended to be used by modules should also have kernel-doc comments.”h]”(hŒ:Every function that is exported to loadable modules using ”…”�”}”(hjCh²hh³Nh´NubhŒliteral”“”)�”}”(hŒ``EXPORT_SYMBOL``”h]”hŒ EXPORT_SYMBOL”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjCubhŒ or ”…”�”}”(hjCh²hh³Nh´NubjL)�”}”(hŒ``EXPORT_SYMBOL_GPL``”h]”hŒEXPORT_SYMBOL_GPL”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjCubhŒŸ should have a kernel-doc comment. Functions and data structures in header files which are intended to be used by modules should also have kernel-doc comments.”…”�”}”(hjCh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hX†It is good practice to also provide kernel-doc formatted documentation for functions externally visible to other kernel files (not marked ``static``). We also recommend providing kernel-doc formatted documentation for private (file ``static``) routines, for consistency of kernel source code layout. This is lower priority and at the discretion of the maintainer of that kernel source file.”h]”(hŒŠIt is good practice to also provide kernel-doc formatted documentation for functions externally visible to other kernel files (not marked ”…”�”}”(hjwh²hh³Nh´NubjL)�”}”(hŒ ``static``”h]”hŒstatic”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjwubhŒT). We also recommend providing kernel-doc formatted documentation for private (file ”…”�”}”(hjwh²hh³Nh´NubjL)�”}”(hŒ ``static``”h]”hŒstatic”…”�”}”(hj‘h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjwubhŒ”) routines, for consistency of kernel source code layout. This is lower priority and at the discretion of the maintainer of that kernel source file.”…”�”}”(hjwh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hh·h²hubh¶)�”}”(hhh]”(h»)�”}”(hŒ!How to format kernel-doc comments”h]”hŒ!How to format kernel-doc comments”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj©h²hh³hÊh´K(ubhÌ)�”}”(hXThe opening comment mark ``/**`` is used for kernel-doc comments. The ``kernel-doc`` tool will extract comments marked this way. The rest of the comment is formatted like a normal multi-line comment with a column of asterisks on the left side, closing with ``*/`` on a line by itself.”h]”(hŒThe opening comment mark ”…”�”}”(hjºh²hh³Nh´NubjL)�”}”(hŒ``/**``”h]”hŒ/**”…”�”}”(hjÂh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjºubhŒ& is used for kernel-doc comments. The ”…”�”}”(hjºh²hh³Nh´NubjL)�”}”(hŒ``kernel-doc``”h]”hŒ kernel-doc”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjºubhŒ­ tool will extract comments marked this way. The rest of the comment is formatted like a normal multi-line comment with a column of asterisks on the left side, closing with ”…”�”}”(hjºh²hh³Nh´NubjL)�”}”(hŒ``*/``”h]”hŒ*/”…”�”}”(hjæh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjºubhŒ on a line by itself.”…”�”}”(hjºh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K*hj©h²hubhÌ)�”}”(hX%The function and type kernel-doc comments should be placed just before the function or type being described in order to maximise the chance that somebody changing the code will also change the documentation. The overview kernel-doc comments may be placed anywhere at the top indentation level.”h]”hX%The function and type kernel-doc comments should be placed just before the function or type being described in order to maximise the chance that somebody changing the code will also change the documentation. The overview kernel-doc comments may be placed anywhere at the top indentation level.”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K/hj©h²hubhÌ)�”}”(hŒ²Running the ``kernel-doc`` tool with increased verbosity and without actual output generation may be used to verify proper formatting of the documentation comments. For example::”h]”(hŒ Running the ”…”�”}”(hj h²hh³Nh´NubjL)�”}”(hŒ``kernel-doc``”h]”hŒ kernel-doc”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj ubhŒ— tool with increased verbosity and without actual output generation may be used to verify proper formatting of the documentation comments. For example:”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K5hj©h²hubhŒ literal_block”“”)�”}”(hŒ0tools/docs/kernel-doc -v -none drivers/foo/bar.c”h]”hŒ0tools/docs/kernel-doc -v -none drivers/foo/bar.c”…”�”}”hj.sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1j,h³hÊh´K9hj©h²hubhÌ)�”}”(hŒ€The documentation format of ``.c`` files is also verified by the kernel build when it is requested to perform extra gcc checks::”h]”(hŒThe documentation format of ”…”�”}”(hj>h²hh³Nh´NubjL)�”}”(hŒ``.c``”h]”hŒ.c”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj>ubhŒ] files is also verified by the kernel build when it is requested to perform extra gcc checks:”…”�”}”(hj>h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K;hj©h²hubj-)�”}”(hŒmake W=n”h]”hŒmake W=n”…”�”}”hj^sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´K>hj©h²hubhÌ)�”}”(hŒqHowever, the above command does not verify header files. These should be checked separately using ``kernel-doc``.”h]”(hŒbHowever, the above command does not verify header files. These should be checked separately using ”…”�”}”(hjlh²hh³Nh´NubjL)�”}”(hŒ``kernel-doc``”h]”hŒ kernel-doc”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjlubhŒ.”…”�”}”(hjlh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K@hj©h²hubeh}”(h]”Œ!how-to-format-kernel-doc-comments”ah ]”h"]”Œ!how to format kernel-doc comments”ah$]”h&]”uh1hµhh·h²hh³hÊh´K(ubh¶)�”}”(hhh]”(h»)�”}”(hŒFunction documentation”h]”hŒFunction documentation”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj”h²hh³hÊh´KDubhÌ)�”}”(hŒPThe general format of a function and function-like macro kernel-doc comment is::”h]”hŒOThe general format of a function and function-like macro kernel-doc comment is:”…”�”}”(hj¥h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KFhj”h²hubj-)�”}”(hX^/** * function_name() - Brief description of function. * @arg1: Describe the first argument. * @arg2: Describe the second argument. * One can provide multiple line descriptions * for arguments. * * A longer description, with more discussion of the function function_name() * that might be useful to those using or modifying it. Begins with an * empty comment line, and may include additional embedded empty * comment lines. * * The longer description may have multiple paragraphs. * * Context: Describes whether the function can sleep, what locks it takes, * releases, or expects to be held. It can extend over multiple * lines. * Return: Describe the return value of function_name. * * The return value description can also have multiple paragraphs, and should * be placed at the end of the comment block. */”h]”hX^/** * function_name() - Brief description of function. * @arg1: Describe the first argument. * @arg2: Describe the second argument. * One can provide multiple line descriptions * for arguments. * * A longer description, with more discussion of the function function_name() * that might be useful to those using or modifying it. Begins with an * empty comment line, and may include additional embedded empty * comment lines. * * The longer description may have multiple paragraphs. * * Context: Describes whether the function can sleep, what locks it takes, * releases, or expects to be held. It can extend over multiple * lines. * Return: Describe the return value of function_name. * * The return value description can also have multiple paragraphs, and should * be placed at the end of the comment block. */”…”�”}”hj³sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´KHhj”h²hubhÌ)�”}”(hŒ¨The brief description following the function name may span multiple lines, and ends with an argument description, a blank comment line, or the end of the comment block.”h]”hŒ¨The brief description following the function name may span multiple lines, and ends with an argument description, a blank comment line, or the end of the comment block.”…”�”}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K_hj”h²hubh¶)�”}”(hhh]”(h»)�”}”(hŒFunction parameters”h]”hŒFunction parameters”…”�”}”(hjÒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÏh²hh³hÊh´KdubhÌ)�”}”(hŒÔEach function argument should be described in order, immediately following the short function description. Do not leave a blank line between the function description and the arguments, nor between the arguments.”h]”hŒÔEach function argument should be described in order, immediately following the short function description. Do not leave a blank line between the function description and the arguments, nor between the arguments.”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KfhjÏh²hubhÌ)�”}”(hŒ8Each ``@argument:`` description may span multiple lines.”h]”(hŒEach ”…”�”}”(hjîh²hh³Nh´NubjL)�”}”(hŒ``@argument:``”h]”hŒ @argument:”…”�”}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjîubhŒ% description may span multiple lines.”…”�”}”(hjîh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KjhjÏh²hubhÜ)�”}”(hXGIf the ``@argument`` description has multiple lines, the continuation of the description should start at the same column as the previous line:: * @argument: some long description * that continues on next lines or:: * @argument: * some long description * that continues on next lines”h]”(hÌ)�”}”(hŒ�If the ``@argument`` description has multiple lines, the continuation of the description should start at the same column as the previous line::”h]”(hŒIf the ”…”�”}”(hjh²hh³Nh´NubjL)�”}”(hŒ ``@argument``”h]”hŒ @argument”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjubhŒz description has multiple lines, the continuation of the description should start at the same column as the previous line:”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Knhjubj-)�”}”(hŒL* @argument: some long description * that continues on next lines”h]”hŒL* @argument: some long description * that continues on next lines”…”�”}”hj2sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´KqhjubhÌ)�”}”(hŒor::”h]”hŒor:”…”�”}”(hj@h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kthjubj-)�”}”(hŒS* @argument: * some long description * that continues on next lines”h]”hŒS* @argument: * some long description * that continues on next lines”…”�”}”hjNsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´Kvhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjÏh²hh³hÊh´NubhÌ)�”}”(hŒoIf a function has a variable number of arguments, its description should be written in kernel-doc notation as::”h]”hŒnIf a function has a variable number of arguments, its description should be written in kernel-doc notation as:”…”�”}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KzhjÏh²hubj-)�”}”(hŒ* @...: description”h]”hŒ* @...: description”…”�”}”hjpsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´K}hjÏh²hubeh}”(h]”Œfunction-parameters”ah ]”h"]”Œfunction parameters”ah$]”h&]”uh1hµhj”h²hh³hÊh´Kdubh¶)�”}”(hhh]”(h»)�”}”(hŒFunction context”h]”hŒFunction context”…”�”}”(hj‰h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj†h²hh³hÊh´K€ubhÌ)�”}”(hX The context in which a function can be called should be described in a section named ``Context``. This should include whether the function sleeps or can be called from interrupt context, as well as what locks it takes, releases and expects to be held by its caller.”h]”(hŒUThe context in which a function can be called should be described in a section named ”…”�”}”(hj—h²hh³Nh´NubjL)�”}”(hŒ ``Context``”h]”hŒContext”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj—ubhŒ©. This should include whether the function sleeps or can be called from interrupt context, as well as what locks it takes, releases and expects to be held by its caller.”…”�”}”(hj—h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K‚hj†h²hubhÌ)�”}”(hŒ Examples::”h]”hŒ Examples:”…”�”}”(hj·h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K‡hj†h²hubj-)�”}”(hXj* Context: Any context. * Context: Any context. Takes and releases the RCU lock. * Context: Any context. Expects to be held by caller. * Context: Process context. May sleep if @gfp flags permit. * Context: Process context. Takes and releases . * Context: Softirq or process context. Takes and releases , BH-safe. * Context: Interrupt context.”h]”hXj* Context: Any context. * Context: Any context. Takes and releases the RCU lock. * Context: Any context. Expects to be held by caller. * Context: Process context. May sleep if @gfp flags permit. * Context: Process context. Takes and releases . * Context: Softirq or process context. Takes and releases , BH-safe. * Context: Interrupt context.”…”�”}”hjÅsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´K‰hj†h²hubeh}”(h]”Œfunction-context”ah ]”h"]”Œfunction context”ah$]”h&]”uh1hµhj”h²hh³hÊh´K€ubh¶)�”}”(hhh]”(h»)�”}”(hŒ Return values”h]”hŒ Return values”…”�”}”(hjÞh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÛh²hh³hÊh´K’ubhÌ)�”}”(hŒgThe return value, if any, should be described in a dedicated section named ``Return`` (or ``Returns``).”h]”(hŒKThe return value, if any, should be described in a dedicated section named ”…”�”}”(hjìh²hh³Nh´NubjL)�”}”(hŒ ``Return``”h]”hŒReturn”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjìubhŒ (or ”…”�”}”(hjìh²hh³Nh´NubjL)�”}”(hŒ ``Returns``”h]”hŒReturns”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjìubhŒ).”…”�”}”(hjìh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K”hjÛh²hubhÜ)�”}”(hX #) The multi-line descriptive text you provide does *not* recognize line breaks, so if you try to format some text nicely, as in:: * Return: * %0 - OK * %-EINVAL - invalid argument * %-ENOMEM - out of memory this will all run together and produce:: Return: 0 - OK -EINVAL - invalid argument -ENOMEM - out of memory So, in order to produce the desired line breaks, you need to use a ReST list, e. g.:: * Return: * * %0 - OK to runtime suspend the device * * %-EBUSY - Device should not be runtime suspended #) If the descriptive text you provide has lines that begin with some phrase followed by a colon, each of those phrases will be taken as a new section heading, which probably won't produce the desired effect.”h]”hŒenumerated_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hXThe multi-line descriptive text you provide does *not* recognize line breaks, so if you try to format some text nicely, as in:: * Return: * %0 - OK * %-EINVAL - invalid argument * %-ENOMEM - out of memory this will all run together and produce:: Return: 0 - OK -EINVAL - invalid argument -ENOMEM - out of memory So, in order to produce the desired line breaks, you need to use a ReST list, e. g.:: * Return: * * %0 - OK to runtime suspend the device * * %-EBUSY - Device should not be runtime suspended ”h]”(hÌ)�”}”(hŒThe multi-line descriptive text you provide does *not* recognize line breaks, so if you try to format some text nicely, as in::”h]”(hŒ1The multi-line descriptive text you provide does ”…”�”}”(hj-h²hh³Nh´NubhŒemphasis”“”)�”}”(hŒ*not*”h]”hŒnot”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj-ubhŒH recognize line breaks, so if you try to format some text nicely, as in:”…”�”}”(hj-h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K™hj)ubj-)�”}”(hŒL* Return: * %0 - OK * %-EINVAL - invalid argument * %-ENOMEM - out of memory”h]”hŒL* Return: * %0 - OK * %-EINVAL - invalid argument * %-ENOMEM - out of memory”…”�”}”hjOsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´Kœhj)ubhÌ)�”}”(hŒ(this will all run together and produce::”h]”hŒ'this will all run together and produce:”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¡hj)ubj-)�”}”(hŒAReturn: 0 - OK -EINVAL - invalid argument -ENOMEM - out of memory”h]”hŒAReturn: 0 - OK -EINVAL - invalid argument -ENOMEM - out of memory”…”�”}”hjksbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´K£hj)ubhÌ)�”}”(hŒUSo, in order to produce the desired line breaks, you need to use a ReST list, e. g.::”h]”hŒTSo, in order to produce the desired line breaks, you need to use a ReST list, e. g.:”…”�”}”(hjyh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¥hj)ubj-)�”}”(hŒy* Return: * * %0 - OK to runtime suspend the device * * %-EBUSY - Device should not be runtime suspended”h]”hŒy* Return: * * %0 - OK to runtime suspend the device * * %-EBUSY - Device should not be runtime suspended”…”�”}”hj‡sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´K¨hj)ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j'hj$ubj()�”}”(hŒÍIf the descriptive text you provide has lines that begin with some phrase followed by a colon, each of those phrases will be taken as a new section heading, which probably won't produce the desired effect.”h]”hÌ)�”}”(hŒÍIf the descriptive text you provide has lines that begin with some phrase followed by a colon, each of those phrases will be taken as a new section heading, which probably won't produce the desired effect.”h]”hŒÏIf the descriptive text you provide has lines that begin with some phrase followed by a colon, each of those phrases will be taken as a new section heading, which probably won’t produce the desired effect.”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¬hj›ubah}”(h]”h ]”h"]”h$]”h&]”uh1j'hj$ubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ)”uh1j"hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjÛh²hh³Nh´Nubeh}”(h]”Œ return-values”ah ]”h"]”Œ return values”ah$]”h&]”uh1hµhj”h²hh³hÊh´K’ubeh}”(h]”Œfunction-documentation”ah ]”h"]”Œfunction documentation”ah$]”h&]”uh1hµhh·h²hh³hÊh´KDubh¶)�”}”(hhh]”(h»)�”}”(hŒ/Structure, union, and enumeration documentation”h]”hŒ/Structure, union, and enumeration documentation”…”�”}”(hj×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÔh²hh³hÊh´K²ubhÌ)�”}”(hŒSThe general format of a ``struct``, ``union``, and ``enum`` kernel-doc comment is::”h]”(hŒThe general format of a ”…”�”}”(hjåh²hh³Nh´NubjL)�”}”(hŒ ``struct``”h]”hŒstruct”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjåubhŒ, ”…”�”}”(hjåh²hh³Nh´NubjL)�”}”(hŒ ``union``”h]”hŒunion”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjåubhŒ, and ”…”�”}”(hjåh²hh³Nh´NubjL)�”}”(hŒ``enum``”h]”hŒenum”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjåubhŒ kernel-doc comment is:”…”�”}”(hjåh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K´hjÔh²hubj-)�”}”(hŒò/** * struct struct_name - Brief description. * @member1: Description of member1. * @member2: Description of member2. * One can provide multiple line descriptions * for members. * * Description of the structure. */”h]”hŒò/** * struct struct_name - Brief description. * @member1: Description of member1. * @member2: Description of member2. * One can provide multiple line descriptions * for members. * * Description of the structure. */”…”�”}”hj)sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´K·hjÔh²hubhÌ)�”}”(hŒÕYou can replace the ``struct`` in the above example with ``union`` or ``enum`` to describe unions or enums. ``member`` is used to mean ``struct`` and ``union`` member names as well as enumerations in an ``enum``.”h]”(hŒYou can replace the ”…”�”}”(hj7h²hh³Nh´NubjL)�”}”(hŒ ``struct``”h]”hŒstruct”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj7ubhŒ in the above example with ”…”�”}”(hj7h²hh³Nh´NubjL)�”}”(hŒ ``union``”h]”hŒunion”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj7ubhŒ or ”…”�”}”(hj7h²hh³Nh´NubjL)�”}”(hŒ``enum``”h]”hŒenum”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj7ubhŒ to describe unions or enums. ”…”�”}”(hj7h²hh³Nh´NubjL)�”}”(hŒ ``member``”h]”hŒmember”…”�”}”(hjuh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj7ubhŒ is used to mean ”…”�”}”(hj7h²hh³Nh´NubjL)�”}”(hŒ ``struct``”h]”hŒstruct”…”�”}”(hj‡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj7ubhŒ and ”…”�”}”(hj7h²hh³Nh´NubjL)�”}”(hŒ ``union``”h]”hŒunion”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj7ubhŒ, member names as well as enumerations in an ”…”�”}”(hj7h²hh³Nh´NubjL)�”}”(hŒ``enum``”h]”hŒenum”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj7ubhŒ.”…”�”}”(hj7h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÁhjÔh²hubhÌ)�”}”(hŒ¦The brief description following the structure name may span multiple lines, and ends with a member description, a blank comment line, or the end of the comment block.”h]”hŒ¦The brief description following the structure name may span multiple lines, and ends with a member description, a blank comment line, or the end of the comment block.”…”�”}”(hjÃh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÅhjÔh²hubh¶)�”}”(hhh]”(h»)�”}”(hŒMembers”h]”hŒMembers”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjÑh²hh³hÊh´KÊubhÌ)�”}”(hŒ¤Members of structs, unions and enums should be documented the same way as function parameters; they immediately succeed the short description and may be multi-line.”h]”hŒ¤Members of structs, unions and enums should be documented the same way as function parameters; they immediately succeed the short description and may be multi-line.”…”�”}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÌhjÑh²hubhÌ)�”}”(hŒÓInside a ``struct`` or ``union`` description, you can use the ``private:`` and ``public:`` comment tags. Structure fields that are inside a ``private:`` area are not listed in the generated output documentation.”h]”(hŒ Inside a ”…”�”}”(hjðh²hh³Nh´NubjL)�”}”(hŒ ``struct``”h]”hŒstruct”…”�”}”(hjøh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjðubhŒ or ”…”�”}”(hjðh²hh³Nh´NubjL)�”}”(hŒ ``union``”h]”hŒunion”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjðubhŒ description, you can use the ”…”�”}”(hjðh²hh³Nh´NubjL)�”}”(hŒ ``private:``”h]”hŒprivate:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjðubhŒ and ”…”�”}”(hjðh²hh³Nh´NubjL)�”}”(hŒ ``public:``”h]”hŒpublic:”…”�”}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjðubhŒ2 comment tags. Structure fields that are inside a ”…”�”}”(hjðh²hh³Nh´NubjL)�”}”(hŒ ``private:``”h]”hŒprivate:”…”�”}”(hj@h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjðubhŒ; area are not listed in the generated output documentation.”…”�”}”(hjðh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÐhjÑh²hubhÌ)�”}”(hŒ´The ``private:`` and ``public:`` tags must begin immediately following a ``/*`` comment marker. They may optionally include comments between the ``:`` and the ending ``*/`` marker.”h]”(hŒThe ”…”�”}”(hjXh²hh³Nh´NubjL)�”}”(hŒ ``private:``”h]”hŒprivate:”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjXubhŒ and ”…”�”}”(hjXh²hh³Nh´NubjL)�”}”(hŒ ``public:``”h]”hŒpublic:”…”�”}”(hjrh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjXubhŒ) tags must begin immediately following a ”…”�”}”(hjXh²hh³Nh´NubjL)�”}”(hŒ``/*``”h]”hŒ/*”…”�”}”(hj„h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjXubhŒB comment marker. They may optionally include comments between the ”…”�”}”(hjXh²hh³Nh´NubjL)�”}”(hŒ``:``”h]”hŒ:”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjXubhŒ and the ending ”…”�”}”(hjXh²hh³Nh´NubjL)�”}”(hŒ``*/``”h]”hŒ*/”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjXubhŒ marker.”…”�”}”(hjXh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÔhjÑh²hubhÌ)�”}”(hŒXWhen ``private:`` is used on nested structs, it propagates only to inner structs/unions.”h]”(hŒWhen ”…”�”}”(hjÀh²hh³Nh´NubjL)�”}”(hŒ ``private:``”h]”hŒprivate:”…”�”}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjÀubhŒG is used on nested structs, it propagates only to inner structs/unions.”…”�”}”(hjÀh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KØhjÑh²hubhÌ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÜhjÑh²hubj-)�”}”(hX/** * struct my_struct - short description * @a: first member * @b: second member * @d: fourth member * * Longer description */ struct my_struct { int a; int b; /* private: internal use only */ int c; /* public: the next one is public */ int d; };”h]”hX/** * struct my_struct - short description * @a: first member * @b: second member * @d: fourth member * * Longer description */ struct my_struct { int a; int b; /* private: internal use only */ int c; /* public: the next one is public */ int d; };”…”�”}”hjîsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´KÞhjÑh²hubeh}”(h]”Œmembers”ah ]”h"]”Œmembers”ah$]”h&]”uh1hµhjÔh²hh³hÊh´KÊubh¶)�”}”(hhh]”(h»)�”}”(hŒNested structs/unions”h]”hŒNested structs/unions”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjh²hh³hÊh´KðubhÌ)�”}”(hŒmember`` or ``&struct_name.member`` ``struct`` or ``union`` member reference. The cross-reference will be to the ``struct`` or ``union`` definition, not the member directly. ”h]”(j) )�”}”(hŒ3``&struct_name->member`` or ``&struct_name.member``”h]”(jL)�”}”(hŒ``&struct_name->member``”h]”hŒ&struct_name->member”…”�”}”(hjL h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjH ubhŒ or ”…”�”}”(hjH h²hh³Nh´NubjL)�”}”(hŒ``&struct_name.member``”h]”hŒ&struct_name.member”…”�”}”(hj^ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjH ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j( h³hÊh´MÊhjD ubjB )�”}”(hhh]”hÌ)�”}”(hŒ‰``struct`` or ``union`` member reference. The cross-reference will be to the ``struct`` or ``union`` definition, not the member directly.”h]”(jL)�”}”(hŒ ``struct``”h]”hŒstruct”…”�”}”(hjy h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhju ubhŒ or ”…”�”}”(hju h²hh³Nh´NubjL)�”}”(hŒ ``union``”h]”hŒunion”…”�”}”(hj‹ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhju ubhŒ6 member reference. The cross-reference will be to the ”…”�”}”(hju h²hh³Nh´NubjL)�”}”(hŒ ``struct``”h]”hŒstruct”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhju ubhŒ or ”…”�”}”hju sbjL)�”}”(hŒ ``union``”h]”hŒunion”…”�”}”(hj¯ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhju ubhŒ% definition, not the member directly.”…”�”}”(hju h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÉhjr ubah}”(h]”h ]”h"]”h$]”h&]”uh1jA hjD ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j" h³hÊh´MÊhj h²hubj# )�”}”(hŒ�``&name`` A generic type reference. Prefer using the full reference described above instead. This is mostly for legacy comments. ”h]”(j) )�”}”(hŒ ``&name``”h]”jL)�”}”(hjÙ h]”hŒ&name”…”�”}”(hjÛ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj× ubah}”(h]”h ]”h"]”h$]”h&]”uh1j( h³hÊh´MÎhjÓ ubjB )�”}”(hhh]”hÌ)�”}”(hŒvA generic type reference. Prefer using the full reference described above instead. This is mostly for legacy comments.”h]”hŒvA generic type reference. Prefer using the full reference described above instead. This is mostly for legacy comments.”…”�”}”(hjñ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÍhjî ubah}”(h]”h ]”h"]”h$]”h&]”uh1jA hjÓ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j" h³hÊh´MÎhj h²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j hjª h²hh³hÊh´Nubh¶)�”}”(hhh]”(h»)�”}”(hŒ'Cross-referencing from reStructuredText”h]”hŒ'Cross-referencing from reStructuredText”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj h²hh³hÊh´MÑubhÌ)�”}”(hXNo additional syntax is needed to cross-reference the functions and types defined in the kernel-doc comments from reStructuredText documents. Just end function names with ``()`` and write ``struct``, ``union``, ``enum`` or ``typedef`` before types. For example::”h]”(hŒ«No additional syntax is needed to cross-reference the functions and types defined in the kernel-doc comments from reStructuredText documents. Just end function names with ”…”�”}”(hj" h²hh³Nh´NubjL)�”}”(hŒ``()``”h]”hŒ()”…”�”}”(hj* h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj" ubhŒ and write ”…”�”}”(hj" h²hh³Nh´NubjL)�”}”(hŒ ``struct``”h]”hŒstruct”…”�”}”(hj< h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj" ubhŒ, ”…”�”}”(hj" h²hh³Nh´NubjL)�”}”(hŒ ``union``”h]”hŒunion”…”�”}”(hjN h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj" ubhŒ, ”…”�”}”hj" sbjL)�”}”(hŒ``enum``”h]”hŒenum”…”�”}”(hj` h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj" ubhŒ or ”…”�”}”(hj" h²hh³Nh´NubjL)�”}”(hŒ ``typedef``”h]”hŒtypedef”…”�”}”(hjr h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj" ubhŒ before types. For example:”…”�”}”(hj" h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MÓhj h²hubj-)�”}”(hŒHSee foo(). See struct foo. See union bar. See enum baz. See typedef meh.”h]”hŒHSee foo(). See struct foo. See union bar. See enum baz. See typedef meh.”…”�”}”hjŠ sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´MÙhj h²hubhÌ)�”}”(hŒmHowever, if you want custom text in the cross-reference link, that can be done through the following syntax::”h]”hŒlHowever, if you want custom text in the cross-reference link, that can be done through the following syntax:”…”�”}”(hj˜ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mßhj h²hubj-)�”}”(hŒqSee :c:func:`my custom link text for function foo `. See :c:type:`my custom link text for struct bar `.”h]”hŒqSee :c:func:`my custom link text for function foo `. See :c:type:`my custom link text for struct bar `.”…”�”}”hj¦ sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´Mâhj h²hubhÌ)�”}”(hŒJFor further details, please refer to the `Sphinx C Domain`_ documentation.”h]”(hŒ)For further details, please refer to the ”…”�”}”(hj´ h²hh³Nh´Nubj)�”}”(hŒ`Sphinx C Domain`_”h]”hŒSphinx C Domain”…”�”}”(hj¼ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”ŒSphinx C Domain”j'j(uh1jhj´ j)KubhŒ documentation.”…”�”}”(hj´ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Måhj h²hubhÜ)�”}”(hŒrVariables aren't automatically cross referenced. For those, you need to explicitly add a C domain cross-reference.”h]”hÌ)�”}”(hŒrVariables aren't automatically cross referenced. For those, you need to explicitly add a C domain cross-reference.”h]”hŒtVariables aren’t automatically cross referenced. For those, you need to explicitly add a C domain cross-reference.”…”�”}”(hjÚ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MèhjÖ ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj h²hh³hÊh´Nubeh}”(h]”Œ'cross-referencing-from-restructuredtext”ah ]”h"]”Œ'cross-referencing from restructuredtext”ah$]”h&]”uh1hµhjª h²hh³hÊh´MÑubeh}”(h]”Œhighlights-and-cross-references”ah ]”h"]”Œhighlights and cross-references”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mœubh¶)�”}”(hhh]”(h»)�”}”(hŒOverview documentation comments”h]”hŒOverview documentation comments”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhjþ h²hh³hÊh´MìubhÌ)�”}”(hXMTo facilitate having source code and comments close together, you can include kernel-doc documentation blocks that are free-form comments instead of being kernel-doc for functions, structures, unions, enums, typedefs or variables. This could be used for something like a theory of operation for a driver or library code, for example.”h]”hXMTo facilitate having source code and comments close together, you can include kernel-doc documentation blocks that are free-form comments instead of being kernel-doc for functions, structures, unions, enums, typedefs or variables. This could be used for something like a theory of operation for a driver or library code, for example.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mîhjþ h²hubhÌ)�”}”(hŒFThis is done by using a ``DOC:`` section keyword with a section title.”h]”(hŒThis is done by using a ”…”�”}”(hjh²hh³Nh´NubjL)�”}”(hŒ``DOC:``”h]”hŒDOC:”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjubhŒ& section keyword with a section title.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Môhjþ h²hubhÌ)�”}”(hŒJThe general format of an overview or high-level documentation comment is::”h]”hŒIThe general format of an overview or high-level documentation comment is:”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Möhjþ h²hubj-)�”}”(hX7/** * DOC: Theory of Operation * * The whizbang foobar is a dilly of a gizmo. It can do whatever you * want it to do, at any time. It reads your mind. Here's how it works. * * foo bar splat * * The only drawback to this gizmo is that is can sometimes damage * hardware, software, or its subject(s). */”h]”hX7/** * DOC: Theory of Operation * * The whizbang foobar is a dilly of a gizmo. It can do whatever you * want it to do, at any time. It reads your mind. Here's how it works. * * foo bar splat * * The only drawback to this gizmo is that is can sometimes damage * hardware, software, or its subject(s). */”…”�”}”hjKsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´Møhjþ h²hubhÌ)�”}”(hŒºThe title following ``DOC:`` acts as a heading within the source file, but also as an identifier for extracting the documentation comment. Thus, the title must be unique within the file.”h]”(hŒThe title following ”…”�”}”(hjYh²hh³Nh´NubjL)�”}”(hŒ``DOC:``”h]”hŒDOC:”…”�”}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjYubhŒž acts as a heading within the source file, but also as an identifier for extracting the documentation comment. Thus, the title must be unique within the file.”…”�”}”(hjYh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjþ h²hubeh}”(h]”Œoverview-documentation-comments”ah ]”h"]”Œoverview documentation comments”ah$]”h&]”uh1hµhh·h²hh³hÊh´Mìubeh}”(h]”Œwriting-kernel-doc-comments”ah ]”h"]”Œwriting kernel-doc comments”ah$]”h&]”uh1hµhhh²hh³hÊh´Kubh¶)�”}”(hhh]”(h»)�”}”(hŒIncluding kernel-doc comments”h]”hŒIncluding kernel-doc comments”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj‰h²hh³hÊh´M ubhÌ)�”}”(hŒŒThe documentation comments may be included in any of the reStructuredText documents using a dedicated kernel-doc Sphinx directive extension.”h]”hŒŒThe documentation comments may be included in any of the reStructuredText documents using a dedicated kernel-doc Sphinx directive extension.”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M hj‰h²hubhÌ)�”}”(hŒ+The kernel-doc directive is of the format::”h]”hŒ*The kernel-doc directive is of the format:”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj‰h²hubj-)�”}”(hŒ".. kernel-doc:: source :option:”h]”hŒ".. kernel-doc:: source :option:”…”�”}”hj¶sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´Mhj‰h²hubhÌ)�”}”(hŒ}The *source* is the path to a source file, relative to the kernel source tree. The following directive options are supported:”h]”(hŒThe ”…”�”}”(hjÄh²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hjÌh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjÄubhŒq is the path to a source file, relative to the kernel source tree. The following directive options are supported:”…”�”}”(hjÄh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj‰h²hubj )�”}”(hhh]”(j# )�”}”(hXexport: *[source-pattern ...]* Include documentation for all functions in *source* that have been exported using ``EXPORT_SYMBOL`` or ``EXPORT_SYMBOL_GPL`` either in *source* or in any of the files specified by *source-pattern*. The *source-pattern* is useful when the kernel-doc comments have been placed in header files, while ``EXPORT_SYMBOL`` and ``EXPORT_SYMBOL_GPL`` are next to the function definitions. Examples:: .. kernel-doc:: lib/bitmap.c :export: .. kernel-doc:: include/net/mac80211.h :export: net/mac80211/*.c ”h]”(j) )�”}”(hŒexport: *[source-pattern ...]*”h]”(hŒexport: ”…”�”}”(hjëh²hh³Nh´Nubj6)�”}”(hŒ*[source-pattern ...]*”h]”hŒ[source-pattern ...]”…”�”}”(hjóh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjëubeh}”(h]”h ]”h"]”h$]”h&]”uh1j( h³hÊh´M&hjçubjB )�”}”(hhh]”(hÌ)�”}”(hŒÅInclude documentation for all functions in *source* that have been exported using ``EXPORT_SYMBOL`` or ``EXPORT_SYMBOL_GPL`` either in *source* or in any of the files specified by *source-pattern*.”h]”(hŒ+Include documentation for all functions in ”…”�”}”(hj h²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj ubhŒ that have been exported using ”…”�”}”(hj h²hh³Nh´NubjL)�”}”(h•[PŒ``EXPORT_SYMBOL``”h]”hŒ EXPORT_SYMBOL”…”�”}”(hj$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj ubhŒ or ”…”�”}”(hj h²hh³Nh´NubjL)�”}”(hŒ``EXPORT_SYMBOL_GPL``”h]”hŒEXPORT_SYMBOL_GPL”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj ubhŒ either in ”…”�”}”(hj h²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hjHh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj ubhŒ% or in any of the files specified by ”…”�”}”(hj h²hh³Nh´Nubj6)�”}”(hŒ*source-pattern*”h]”hŒsource-pattern”…”�”}”(hjZh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj ubhŒ.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjubhÌ)�”}”(hŒµThe *source-pattern* is useful when the kernel-doc comments have been placed in header files, while ``EXPORT_SYMBOL`` and ``EXPORT_SYMBOL_GPL`` are next to the function definitions.”h]”(hŒThe ”…”�”}”(hjrh²hh³Nh´Nubj6)�”}”(hŒ*source-pattern*”h]”hŒsource-pattern”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjrubhŒP is useful when the kernel-doc comments have been placed in header files, while ”…”�”}”(hjrh²hh³Nh´NubjL)�”}”(hŒ``EXPORT_SYMBOL``”h]”hŒ EXPORT_SYMBOL”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjrubhŒ and ”…”�”}”(hjrh²hh³Nh´NubjL)�”}”(hŒ``EXPORT_SYMBOL_GPL``”h]”hŒEXPORT_SYMBOL_GPL”…”�”}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjrubhŒ& are next to the function definitions.”…”�”}”(hjrh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjubhÌ)�”}”(hŒ Examples::”h]”hŒ Examples:”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M hjubj-)�”}”(hŒm.. kernel-doc:: lib/bitmap.c :export: .. kernel-doc:: include/net/mac80211.h :export: net/mac80211/*.c”h]”hŒm.. kernel-doc:: lib/bitmap.c :export: .. kernel-doc:: include/net/mac80211.h :export: net/mac80211/*.c”…”�”}”hjÄsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´M"hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jA hjçubeh}”(h]”h ]”h"]”h$]”h&]”uh1j" h³hÊh´M&hjäubj# )�”}”(hXJinternal: *[source-pattern ...]* Include documentation for all functions and types in *source* that have **not** been exported using ``EXPORT_SYMBOL`` or ``EXPORT_SYMBOL_GPL`` either in *source* or in any of the files specified by *source-pattern*. Example:: .. kernel-doc:: drivers/gpu/drm/i915/intel_audio.c :internal: ”h]”(j) )�”}”(hŒ internal: *[source-pattern ...]*”h]”(hŒ internal: ”…”�”}”(hjâh²hh³Nh´Nubj6)�”}”(hŒ*[source-pattern ...]*”h]”hŒ[source-pattern ...]”…”�”}”(hjêh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjâubeh}”(h]”h ]”h"]”h$]”h&]”uh1j( h³hÊh´M0hjÞubjB )�”}”(hhh]”(hÌ)�”}”(hŒ×Include documentation for all functions and types in *source* that have **not** been exported using ``EXPORT_SYMBOL`` or ``EXPORT_SYMBOL_GPL`` either in *source* or in any of the files specified by *source-pattern*.”h]”(hŒ5Include documentation for all functions and types in ”…”�”}”(hjh²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjubhŒ that have ”…”�”}”(hjh²hh³Nh´Nubjì )�”}”(hŒ**not**”h]”hŒnot”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jë hjubhŒ been exported using ”…”�”}”(hjh²hh³Nh´NubjL)�”}”(hŒ``EXPORT_SYMBOL``”h]”hŒ EXPORT_SYMBOL”…”�”}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjubhŒ or ”…”�”}”(hjh²hh³Nh´NubjL)�”}”(hŒ``EXPORT_SYMBOL_GPL``”h]”hŒEXPORT_SYMBOL_GPL”…”�”}”(hj?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjubhŒ either in ”…”�”}”(hjh²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjubhŒ% or in any of the files specified by ”…”�”}”(hjh²hh³Nh´Nubj6)�”}”(hŒ*source-pattern*”h]”hŒsource-pattern”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjubhŒ.”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M)hjþubhÌ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M-hjþubj-)�”}”(hŒ@.. kernel-doc:: drivers/gpu/drm/i915/intel_audio.c :internal:”h]”hŒ@.. kernel-doc:: drivers/gpu/drm/i915/intel_audio.c :internal:”…”�”}”hj‰sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´M/hjþubeh}”(h]”h ]”h"]”h$]”h&]”uh1jA hjÞubeh}”(h]”h ]”h"]”h$]”h&]”uh1j" h³hÊh´M0hjäh²hubj# )�”}”(hX¿identifiers: *[ function/type ...]* Include documentation for each *function* and *type* in *source*. If no *function* is specified, the documentation for all functions and types in the *source* will be included. *type* can be a ``struct``, ``union``, ``enum``, ``typedef`` or ``var`` identifier. Examples:: .. kernel-doc:: lib/bitmap.c :identifiers: bitmap_parselist bitmap_parselist_user .. kernel-doc:: lib/idr.c :identifiers: ”h]”(j) )�”}”(hŒ#identifiers: *[ function/type ...]*”h]”(hŒ identifiers: ”…”�”}”(hj§h²hh³Nh´Nubj6)�”}”(hŒ*[ function/type ...]*”h]”hŒ[ function/type ...]”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj§ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j( h³hÊh´M?hj£ubjB )�”}”(hhh]”(hÌ)�”}”(hXInclude documentation for each *function* and *type* in *source*. If no *function* is specified, the documentation for all functions and types in the *source* will be included. *type* can be a ``struct``, ``union``, ``enum``, ``typedef`` or ``var`` identifier.”h]”(hŒInclude documentation for each ”…”�”}”(hjÆh²hh³Nh´Nubj6)�”}”(hŒ *function*”h]”hŒfunction”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjÆubhŒ and ”…”�”}”(hjÆh²hh³Nh´Nubj6)�”}”(hŒ*type*”h]”hŒtype”…”�”}”(hjàh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjÆubhŒ in ”…”�”}”(hjÆh²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hjòh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjÆubhŒ. If no ”…”�”}”(hjÆh²hh³Nh´Nubj6)�”}”(hŒ *function*”h]”hŒfunction”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjÆubhŒD is specified, the documentation for all functions and types in the ”…”�”}”(hjÆh²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjÆubhŒ will be included. ”…”�”}”(hjÆh²hh³Nh´Nubj6)�”}”(hŒ*type*”h]”hŒtype”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjÆubhŒ can be a ”…”�”}”(hjÆh²hh³Nh´NubjL)�”}”(hŒ ``struct``”h]”hŒstruct”…”�”}”(hj:h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjÆubhŒ, ”…”�”}”(hjÆh²hh³Nh´NubjL)�”}”(hŒ ``union``”h]”hŒunion”…”�”}”(hjLh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjÆubhŒ, ”…”�”}”hjÆsbjL)�”}”(hŒ``enum``”h]”hŒenum”…”�”}”(hj^h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjÆubhŒ, ”…”�”}”hjÆsbjL)�”}”(hŒ ``typedef``”h]”hŒtypedef”…”�”}”(hjph²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjÆubhŒ or ”…”�”}”(hjÆh²hh³Nh´NubjL)�”}”(hŒ``var``”h]”hŒvar”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjÆubhŒ identifier.”…”�”}”(hjÆh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M3hjÃubhÌ)�”}”(hŒ Examples::”h]”hŒ Examples:”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M9hjÃubj-)�”}”(hŒ€.. kernel-doc:: lib/bitmap.c :identifiers: bitmap_parselist bitmap_parselist_user .. kernel-doc:: lib/idr.c :identifiers:”h]”hŒ€.. kernel-doc:: lib/bitmap.c :identifiers: bitmap_parselist bitmap_parselist_user .. kernel-doc:: lib/idr.c :identifiers:”…”�”}”hj¨sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´M;hjÃubeh}”(h]”h ]”h"]”h$]”h&]”uh1jA hj£ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j" h³hÊh´M?hjäh²hubj# )�”}”(hŒ»no-identifiers: *[ function/type ...]* Exclude documentation for each *function* and *type* in *source*. Example:: .. kernel-doc:: lib/bitmap.c :no-identifiers: bitmap_parselist ”h]”(j) )�”}”(hŒ&no-identifiers: *[ function/type ...]*”h]”(hŒno-identifiers: ”…”�”}”(hjÆh²hh³Nh´Nubj6)�”}”(hŒ*[ function/type ...]*”h]”hŒ[ function/type ...]”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjÆubeh}”(h]”h ]”h"]”h$]”h&]”uh1j( h³hÊh´MGhjÂubjB )�”}”(hhh]”(hÌ)�”}”(hŒAExclude documentation for each *function* and *type* in *source*.”h]”(hŒExclude documentation for each ”…”�”}”(hjåh²hh³Nh´Nubj6)�”}”(hŒ *function*”h]”hŒfunction”…”�”}”(hjíh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjåubhŒ and ”…”�”}”(hjåh²hh³Nh´Nubj6)�”}”(hŒ*type*”h]”hŒtype”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjåubhŒ in ”…”�”}”(hjåh²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjåubhŒ.”…”�”}”(hjåh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MBhjâubhÌ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MDhjâubj-)�”}”(hŒA.. kernel-doc:: lib/bitmap.c :no-identifiers: bitmap_parselist”h]”hŒA.. kernel-doc:: lib/bitmap.c :no-identifiers: bitmap_parselist”…”�”}”hj7sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´MFhjâubeh}”(h]”h ]”h"]”h$]”h&]”uh1jA hjÂubeh}”(h]”h ]”h"]”h$]”h&]”uh1j" h³hÊh´MGhjäh²hubj# )�”}”(hŒbfunctions: *[ function/type ...]* This is an alias of the 'identifiers' directive and deprecated. ”h]”(j) )�”}”(hŒ!functions: *[ function/type ...]*”h]”(hŒ functions: ”…”�”}”(hjUh²hh³Nh´Nubj6)�”}”(hŒ*[ function/type ...]*”h]”hŒ[ function/type ...]”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hjUubeh}”(h]”h ]”h"]”h$]”h&]”uh1j( h³hÊh´MJhjQubjB )�”}”(hhh]”hÌ)�”}”(hŒ?This is an alias of the 'identifiers' directive and deprecated.”h]”hŒCThis is an alias of the ‘identifiers’ directive and deprecated.”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MJhjqubah}”(h]”h ]”h"]”h$]”h&]”uh1jA hjQubeh}”(h]”h ]”h"]”h$]”h&]”uh1j" h³hÊh´MJhjäh²hubj# )�”}”(hXÓdoc: *title* Include documentation for the ``DOC:`` paragraph identified by *title* in *source*. Spaces are allowed in *title*; do not quote the *title*. The *title* is only used as an identifier for the paragraph, and is not included in the output. Please make sure to have an appropriate heading in the enclosing reStructuredText document. Example:: .. kernel-doc:: drivers/gpu/drm/i915/intel_audio.c :doc: High Definition Audio over HDMI and Display Port ”h]”(j) )�”}”(hŒ doc: *title*”h]”(hŒdoc: ”…”�”}”(hj’h²hh³Nh´Nubj6)�”}”(hŒ*title*”h]”hŒtitle”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj’ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j( h³hÊh´MVhjŽubjB )�”}”(hhh]”(hÌ)�”}”(hXHInclude documentation for the ``DOC:`` paragraph identified by *title* in *source*. Spaces are allowed in *title*; do not quote the *title*. The *title* is only used as an identifier for the paragraph, and is not included in the output. Please make sure to have an appropriate heading in the enclosing reStructuredText document.”h]”(hŒInclude documentation for the ”…”�”}”(hj±h²hh³Nh´NubjL)�”}”(hŒ``DOC:``”h]”hŒDOC:”…”�”}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj±ubhŒ paragraph identified by ”…”�”}”(hj±h²hh³Nh´Nubj6)�”}”(hŒ*title*”h]”hŒtitle”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj±ubhŒ in ”…”�”}”(hj±h²hh³Nh´Nubj6)�”}”(hŒ*source*”h]”hŒsource”…”�”}”(hjÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj±ubhŒ. Spaces are allowed in ”…”�”}”(hj±h²hh³Nh´Nubj6)�”}”(hŒ*title*”h]”hŒtitle”…”�”}”(hjïh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj±ubhŒ; do not quote the ”…”�”}”(hj±h²hh³Nh´Nubj6)�”}”(hŒ*title*”h]”hŒtitle”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj±ubhŒ. The ”…”�”}”(hj±h²hh³Nh´Nubj6)�”}”(hŒ*title*”h]”hŒtitle”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j5hj±ubhŒ° is only used as an identifier for the paragraph, and is not included in the output. Please make sure to have an appropriate heading in the enclosing reStructuredText document.”…”�”}”(hj±h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MMhj®ubhÌ)�”}”(hŒ Example::”h]”hŒExample:”…”�”}”(hj+h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MShj®ubj-)�”}”(hŒl.. kernel-doc:: drivers/gpu/drm/i915/intel_audio.c :doc: High Definition Audio over HDMI and Display Port”h]”hŒl.. kernel-doc:: drivers/gpu/drm/i915/intel_audio.c :doc: High Definition Audio over HDMI and Display Port”…”�”}”hj9sbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´MUhj®ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jA hjŽubeh}”(h]”h ]”h"]”h$]”h&]”uh1j" h³hÊh´MVhjäh²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j hj‰h²hh³hÊh´NubhÌ)�”}”(hŒcWithout options, the kernel-doc directive includes all documentation comments from the source file.”h]”hŒcWithout options, the kernel-doc directive includes all documentation comments from the source file.”…”�”}”(hjYh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MXhj‰h²hubhÌ)�”}”(hŒÙThe kernel-doc extension is included in the kernel source tree, at ``Documentation/sphinx/kerneldoc.py``. Internally, it uses the ``tools/docs/kernel-doc`` script to extract the documentation comments from the source.”h]”(hŒCThe kernel-doc extension is included in the kernel source tree, at ”…”�”}”(hjgh²hh³Nh´NubjL)�”}”(hŒ%``Documentation/sphinx/kerneldoc.py``”h]”hŒ!Documentation/sphinx/kerneldoc.py”…”�”}”(hjoh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjgubhŒ. Internally, it uses the ”…”�”}”(hjgh²hh³Nh´NubjL)�”}”(hŒ``tools/docs/kernel-doc``”h]”hŒtools/docs/kernel-doc”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjgubhŒ> script to extract the documentation comments from the source.”…”�”}”(hjgh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M[hj‰h²hubj5)�”}”(hŒ.. _kernel_doc:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œ kernel-doc”uh1j4h´M`hj‰h²hh³hÊubh¶)�”}”(hhh]”(h»)�”}”(hŒ+How to use kernel-doc to generate man pages”h]”hŒ+How to use kernel-doc to generate man pages”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhj¥h²hh³hÊh´McubhÌ)�”}”(hŒJTo generate man pages for all files that contain kernel-doc markups, run::”h]”hŒITo generate man pages for all files that contain kernel-doc markups, run:”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mehj¥h²hubj-)�”}”(hŒ$ make mandocs”h]”hŒ$ make mandocs”…”�”}”hjÄsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´Mghj¥h²hubhÌ)�”}”(hŒ.Or calling ``script-build-wrapper`` directly::”h]”(hŒ Or calling ”…”�”}”(hjÒh²hh³Nh´NubjL)�”}”(hŒ``script-build-wrapper``”h]”hŒscript-build-wrapper”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjÒubhŒ directly:”…”�”}”(hjÒh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mihj¥h²hubj-)�”}”(hŒ+$ ./tools/docs/sphinx-build-wrapper mandocs”h]”hŒ+$ ./tools/docs/sphinx-build-wrapper mandocs”…”�”}”hjòsbah}”(h]”h ]”h"]”h$]”h&]”j<j=uh1j,h³hÊh´Mkhj¥h²hubhÌ)�”}”(hŒlThe output will be at ``/man`` directory inside the output directory (by default: ``Documentation/output``).”h]”(hŒThe output will be at ”…”�”}”(hjh²hh³Nh´NubjL)�”}”(hŒ``/man``”h]”hŒ/man”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjubhŒ4 directory inside the output directory (by default: ”…”�”}”(hjh²hh³Nh´NubjL)�”}”(hŒ``Documentation/output``”h]”hŒDocumentation/output”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhjubhŒ).”…”�”}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mmhj¥h²hubhÌ)�”}”(hŒVOptionally, it is possible to generate a partial set of man pages by using SPHINXDIRS:”h]”hŒVOptionally, it is possible to generate a partial set of man pages by using SPHINXDIRS:”…”�”}”(hj2h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mphj¥h²hubhŒ block_quote”“”)�”}”(hŒ+$ make SPHINXDIRS=driver-api/media mandocs ”h]”hÌ)�”}”(hŒ*$ make SPHINXDIRS=driver-api/media mandocs”h]”hŒ*$ make SPHINXDIRS=driver-api/media mandocs”…”�”}”(hjFh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MshjBubah}”(h]”h ]”h"]”h$]”h&]”uh1j@h³hÊh´Mshj¥h²hubhÜ)�”}”(hŒŽWhen SPHINXDIRS={subdir} is used, it will only generate man pages for the files explicitly inside a ``Documentation/{subdir}/.../*.rst`` file.”h]”hÌ)�”}”(hŒŽWhen SPHINXDIRS={subdir} is used, it will only generate man pages for the files explicitly inside a ``Documentation/{subdir}/.../*.rst`` file.”h]”(hŒdWhen SPHINXDIRS={subdir} is used, it will only generate man pages for the files explicitly inside a ”…”�”}”(hj^h²hh³Nh´NubjL)�”}”(hŒ$``Documentation/{subdir}/.../*.rst``”h]”hŒ Documentation/{subdir}/.../*.rst”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jKhj^ubhŒ file.”…”�”}”(hj^h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MwhjZubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj¥h²hh³hÊh´Nubeh}”(h]”(Œ+how-to-use-kernel-doc-to-generate-man-pages”j¤eh ]”h"]”(Œ+how to use kernel-doc to generate man pages”Œ kernel_doc”eh$]”h&]”uh1hµhj‰h²hh³hÊh´McŒexpect_referenced_by_name”}”jŠj™sŒexpect_referenced_by_id”}”j¤j™subeh}”(h]”Œincluding-kernel-doc-comments”ah ]”h"]”Œincluding kernel-doc comments”ah$]”h&]”uh1hµhhh²hh³hÊh´M ubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÊhºŒKernel-doc comments”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”Œentry”Œ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”j½Œ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”}”Œsphinx c domain”]”(jjà j¼ esŒrefids”}”j¤]”j™asŒnameids”}”(j†jƒj?j<j‘jŽjÑjÎjƒj€jØjÕjÉjÆjtjqjjþjjjljij×jÔj j j§ j¤ jû jø jó jð j~j{j–j“jŠj¤j‰j†uŒ nametypes”}”(j†‰j?ˆj‘‰jщjƒ‰j؉jɉjt‰j‰j‰jl‰j׉j ‰j§ ‰jû ‰jó ‰j~‰j–‰jŠˆj‰‰uh}”(jƒh·j<j6jŽj©jÎj”j€jÏjÕj†jÆjÛjqjÔjþjÑjjjijjÔjwj jÚj¤ j jø jª jð j j{jþ j“j‰j¤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”]”hŒsystem_message”“”)�”}”(hhh]”hÌ)�”}”(hhh]”hŒ0Hyperlink target "kernel-doc" is not referenced.”…”�”}”hj)sbah}”(h]”h ]”h"]”h$]”h&]”uh1hËhj&ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÊŒline”M`uh1j$ubaŒ transformer”NŒ include_log”]”Œ decoration”Nh²hub.