Commit dd3e817e authored by Randy Dunlap's avatar Randy Dunlap Committed by Jonathan Corbet
Browse files

doc-guide: kernel-doc: add %CONST examples



Add examples of using '%' for formatting constant values to
facilitate more usage of "%CONST" in kernel-doc.

Suggested-by: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Message-ID: <20251104050930.720711-1-rdunlap@infradead.org>
parent 6894ea0b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -405,6 +405,10 @@ Domain`_ references.
``%CONST``
  Name of a constant. (No cross-referencing, just formatting.)

  Examples::

    %0    %NULL    %-1    %-EFAULT    %-EINVAL    %-ENOMEM

````literal````
  A literal block that should be handled as-is. The output will use a
  ``monospaced font``.