locking/atomic: docs: Add atomic operations to the driver basic API documentation
Add the generated atomic headers to driver-api/basics.rst in order to provide documentation for the Linux kernel's atomic operations. At the same time, dtop the x86 atomic header, which provides kerneldoc comments for some arch_atomic*_*() operations. The arch_atomic*_*() operations are now purely an implenentation detail of the raw_atomic*_*() ops, and outside of implementing the atomics, code should use the raw_atomic*_*() forms. [Mark: add atomic-{instrumented,long}.h, update commit message] Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20230605070124.3741859-27-mark.rutland@arm.com
This commit is contained in:
Родитель
ad8110706f
Коммит
e74f4059d1
|
@ -84,7 +84,13 @@ Reference counting
|
|||
Atomics
|
||||
-------
|
||||
|
||||
.. kernel-doc:: arch/x86/include/asm/atomic.h
|
||||
.. kernel-doc:: include/linux/atomic/atomic-instrumented.h
|
||||
:internal:
|
||||
|
||||
.. kernel-doc:: include/linux/atomic/atomic-arch-fallback.h
|
||||
:internal:
|
||||
|
||||
.. kernel-doc:: include/linux/atomic/atomic-long.h
|
||||
:internal:
|
||||
|
||||
Kernel objects manipulation
|
||||
|
|
Загрузка…
Ссылка в новой задаче