On Fri, 31 Dec 2021 01:49:54 +0000 Yevgeny Kliteynik wrote:
Actually, this was written based on debugfs functions documentation, where
it states that "if an error occurs, NULL will be returned"
https://www.kernel.org/doc/htmldocs/filesystems/API-debugfs-create-dir.html
Looking at the code, I see that it's no longer the case.
Oh, I see. That looks like some old, out of date version of the docs.
The text was already correct in 5.15, it seems:
https://elixir.bootlin.com/linux/v5.15/source/fs/debugfs/inode.c#L549
Also this render of the docs is correct:
https://www.kernel.org/doc/html/latest/filesystems/api-summary.html#c.debugfs_create_dir
I don't really know who's responsible for the kernel.org docs...
Let's CC Jon.
Jon, is the www.kernel.org/doc/htmldocs/ copy intentionally what it is?
Anyone we should talk to?