Skip to contentSkip to conversation

Improving documentation for application of error pointers

cocci Markus Elfring 1 participant 1 message Mar 28, 2023

lore
Share & tools
lore
#0 lore raw

Hello,

I found three places in the software documentation where the term “error pointer” is mentioned.

Example:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/core-api/printk-formats.rst?h=v6.3-rc4#n95

I am looking for more helpful explanations also according to details like the following.

1. Can any functions be especially marked for returning an error code within a pointer (after a failed call)?
https://elixir.bootlin.com/linux/v6.3-rc4/source/include/linux/err.h#L11

2. Does a possibility remain that such functions would occasionally return a null pointer?

Regards,
Markus