__kcsan_check_read_write(9)
π NAME π
okay so bestie, gather round β __kcsan_check_read_write is literally the function that checks a regular read-write access for races. that's it, that's the whole job. no cap.
this page lives in the Kernel API Manual, and it's giving "short but important" energy fr fr. π
β¨ SYNOPSIS β¨
__kcsan_check_read_write (ptr , size );
like, that's the whole call. two args, zero drama. π¦
πΈ ARGUMENTS πΈ
ptrβ the address of access. i.e. where the thing you're touching actually lives in memory. point it at your data and let kcsan do its little vibe check. πsizeβ the size of access. how many bytes we're out here reading/writing. be honest about it, the checker needs to know. π
bestie pls actually pass the real size, this is the whole point of the function π
π SEE ALSO π
this is the part where the manpage just goes full friend-group-tagging-everyone energy. all of these are in the kernel file ./include/linux/kcsan-checks.h, and honestly? iconic lineup. π₯
__kcsan_check_access(9)__kcsan_mb(9)__kcsan_wmb(9)__kcsan_rmb(9)__kcsan_release(9)kcsan_disable_current(9)kcsan_enable_current(9)kcsan_nestable_atomic_begin(9)kcsan_nestable_atomic_end(9)kcsan_flat_atomic_begin(9)kcsan_flat_atomic_end(9)kcsan_atomic_next(9)kcsan_set_access_mask(9)kcsan_begin_scoped_access(9)kcsan_end_scoped_access(9)__kcsan_check_read(9)__kcsan_check_write(9)kcsan_check_read(9)kcsan_check_write(9)kcsan_check_read_write(9)ASSERT_EXCLUSIVE_WRITER(9)ASSERT_EXCLUSIVE_WRITER_SCOPED(9)ASSERT_EXCLUSIVE_ACCESS(9)ASSERT_EXCLUSIVE_ACCESS_SCOPED(9)ASSERT_EXCLUSIVE_BITS(9)
(yes it lists kcsan_check_read_write(9) and __kcsan_check_read_write(9)-adjacent stuff β it's a whole family, they're all slaying in their own lane π)
and that's the page!! short, sweet, and race-free (hopefully). π§
sign-off time: this lil masterpiece came from the source tree at ./include/linux, dated October 2026, and it's filed under __kcsan_check_read_write(9). mwah, bye bestie πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms