Skip to content

Commit 2017e3c

Browse files
kangtasticJonathan Corbet
authored andcommitted
Documentation: core-api: Add error pointer functions to kernel-api
Bring the error pointer functions (e.g. ERR_PTR(), PTR_ERR()) into the docs build so that they can be cross-referenced elsewhere. List them as kernel library functions in the kernel-api document. Nowhere else seems to fit, and they need to go *somewhere*. Signed-off-by: James Seo <james@equiv.tech> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20230509175543.2065835-4-james@equiv.tech
1 parent 4d744ce commit 2017e3c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/core-api/kernel-api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ Command-line Parsing
9696
.. kernel-doc:: lib/cmdline.c
9797
:export:
9898

99+
Error Pointers
100+
--------------
101+
102+
.. kernel-doc:: include/linux/err.h
103+
:internal:
104+
99105
Sorting
100106
-------
101107

0 commit comments

Comments
 (0)