__kcsan_mb(9)
π __kcsan_mb(9) β bestie, it's giving full memory barrier instrumentation
okay so real talk, we're deep in the Kernel API Manual (section 9, the kernel-adjacent girlies know) and today's main character is __kcsan_mb. that name? lowkey cryptic. the job? a full memory barrier, but make it instrumented. no cap.
β¨ NAME β¨
__kcsan_mb β full memory barrier instrumentation π§ β‘
like, it's the KCSAN-flavored full memory barrier. that's the whole vibe.
π SYNOPSIS π
void __kcsan_mb (void );
yep. that's it. she takes nothing, she returns nothing, she simply is. iconic behavior honestly.
π¦ ARGUMENTS π¦
voidβ no arguments π fr fr, zero. nada. the function said "i don't need input, i'm built different."
ngl there is literally nothing else in this section and i respect the confidence.
π SEE ALSO π
okay so this is the part where the manpage just dumps the whole friend group on you π and every single one of them is a real one. no skipping, we're listing all of them because they all ate:
- the kernel source file
./include/linux/kcsan-checks.hβ that's the home base π __kcsan_check_access(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_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)
that's the whole group chat bestie, go say hi π«Ά
lowkey reminder: this page only tells you what __kcsan_mb is. the actual details of how KCSAN instruments any of this live in those other pages β don't come for me, i'm just the messenger π
so yeah. __kcsan_mb(9), full memory barrier instrumentation, takes void, gives void, hangs out in ./include/linux/kcsan-checks.h with all her friends. slay. periodt. π₯π
this little love letter comes to you from the Kernel API Manual, dated October 2026, sourced from ./include/linux β mwah, take care of her πβ¨
π¦ 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