kcsan_disable_current(9)
π kcsan_disable_current β the kernel API manual, but make it make sense π
okay bestie, so we're in the Kernel API Manual today and the star of the show is kcsan_disable_current(9). she's short, she's sweet, she does exactly one thing and she does it iconically. let's get into it β¨
πΈ NAME πΈ
kcsan_disable_current β disable KCSAN for the current context π
like, for this context specifically. not everything. not forever. just here, just now. main character energy but make it scoped π«Ά
β¨ SYNOPSIS β¨
void kcsan_disable_current (void );
that's the whole signature, no cap. returns void, takes void. minimalism ate π₯
π¦ ARGUMENTS π¦
voidβ no arguments. literally zero. nothing to pass, nothing to worry about, she don't want anything from you π
π DESCRIPTION π
Supports nesting.
that's it. that's the description. and honestly? iconic. the way that a two-word description can carry so much π
what it means for you, bestie: you can call this more than once, and it stacks β that's the nesting thing, and it's supported, so go off π
ngl the original page really said "supports nesting" and dipped. respect fr fr.
π§ SEE ALSO π§
Kernel file ./include/linux/kcsan-checks.h β that's where she lives, go say hi π
and the whole squad, because KCSAN has so many friends and you should lowkey meet all of them:
__kcsan_check_access(9)__kcsan_mb(9)__kcsan_wmb(9)__kcsan_rmb(9)__kcsan_release(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)
okay that's the full roster, every single one, no skips π iykyk π
and that's the page!! thank you for coming to my ted talk π«Ά this little gem comes out of ./include/linux and it's dated October 2026 β so yeah, she's from the future and she's still just saying "supports nesting." queen behavior π β
π¦ 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