hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/Documentation/gpu/introduction.rst
....@@ -51,6 +51,22 @@
5151
5252 Also read the :ref:`guidelines for the kernel documentation at large <doc_guide>`.
5353
54
+Documentation Requirements for kAPI
55
+-----------------------------------
56
+
57
+All kernel APIs exported to other modules must be documented, including their
58
+datastructures and at least a short introductory section explaining the overall
59
+concepts. Documentation should be put into the code itself as kerneldoc comments
60
+as much as reasonable.
61
+
62
+Do not blindly document everything, but document only what's relevant for driver
63
+authors: Internal functions of drm.ko and definitely static functions should not
64
+have formal kerneldoc comments. Use normal C comments if you feel like a comment
65
+is warranted. You may use kerneldoc syntax in the comment, but it shall not
66
+start with a /** kerneldoc marker. Similar for data structures, annotate
67
+anything entirely private with ``/* private: */`` comments as per the
68
+documentation guide.
69
+
5470 Getting Started
5571 ===============
5672