aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2024-05-10 15:36:57 -0700
committerPaul E. McKenney <[email protected]>2024-05-30 15:06:26 -0700
commit020e6c22bd6e67592f38b47d0f1926a831482560 (patch)
treeb0bd5f516f5ef060840275221286e0881f426c01 /lib/memory-notifier-error-inject.c
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff)
kcsan: Add example to data_race() kerneldoc header
Although the data_race() kerneldoc header accurately states what it does, some of the implications and usage patterns are non-obvious. Therefore, add a brief locking example and also state how to have KCSAN ignore accesses while also preventing the compiler from folding, spindling, or otherwise mutilating the access. [ paulmck: Apply Bart Van Assche feedback. ] [ paulmck: Apply feedback from Marco Elver. ] Reported-by: Bart Van Assche <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Cc: Marco Elver <[email protected]> Cc: Breno Leitao <[email protected]> Cc: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions