kcsan_enable_current(9)
π kcsan_enable_current(9) β Kernel API Manual π
okay bestie, welcome to the kcsan_enable_current page from the Kernel API Manual β¨ this one's a shortie but she's important, so pay attention π«Ά
β¨ NAME β¨
kcsan_enable_current β re-enable KCSAN for the current context π
like, you know how you can turn KCSAN off for the current context? yeah. this is the glow-up that turns it back on π₯
πΈ SYNOPSIS πΈ
void kcsan_enable_current (void );
that's it. that's the whole vibe. no args, no return, just vibes π¦
π ARGUMENTS π
voidβ no arguments π literally none. zero. nada. she takes nothing and she gives nothing back (well,void). the most low-maintenance function you will ever meet, no cap π
π§ DESCRIPTION π§
Supports nesting. πͺβ¨
that's the whole description and honestly? iconic. it means you can call this baby multiple times over the top of itself and she just gets it β stacks on stacks, layers on layers, like a cute little matryoshka doll situation ππ«Ά
ngl it's the counterpart to the disable side of things, so if you've been wandering around with KCSAN switched off for the current context, this is your girl bringing the lights back on ππ‘
π SEE ALSO π
the whole KCSAN friend group, fr fr β go say hi to all of them (kernel file ./include/linux/kcsan-checks.h is where they all hang out π):
__kcsan_check_access(9)__kcsan_mb(9)__kcsan_wmb(9)__kcsan_rmb(9)__kcsan_release(9)kcsan_disable_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)
like, the whole squad π«Άπ₯
aaaand that's the page, bestie π this gem lives in ./include/linux and the version stamp says October 2026 β so go forth, re-enable that KCSAN, and slay ππ
β¨
π¦ 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