mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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:
committed by
Peter Zijlstra
parent
ad8110706f
commit
e74f4059d1
@@ -84,7 +84,13 @@ Reference counting
|
|||||||
Atomics
|
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:
|
:internal:
|
||||||
|
|
||||||
Kernel objects manipulation
|
Kernel objects manipulation
|
||||||
|
Reference in New Issue
Block a user