kcsan_set_access_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ kcsan_set_access_mask β€” the kcsan(9) girlies are gonna eat this up

okay so bestie, welcome to the kcsan_set_access_mask page of the Kernel API Manual ✨ it's short, it's sweet, it's literally one function, and yes we're gonna make it iconic anyway πŸ’…


🌸 NAME 🌸

kcsan_set_access_mask β€” set access mask. that's it. that's the whole name. short king behavior fr fr 🫢


✨ SYNOPSIS ✨

void kcsan_set_access_mask (unsigned long mask );

like, look at her. void return, takes one unsigned long, no notes. main character energy honestly πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mask β€” a bitmask. yes bestie, that's the entire description, the manpage is not gonna elaborate, so neither am I πŸ™ˆ it's a bitmask. bits. masked. slay.

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” kcsan_set_access_mask sets the access mask for all accesses in the current context, but only if the mask is non-zero. zero? nothing happens. we love a conditional πŸ’€

and then the actual reporting rule, which is the important part so pay attention bestie πŸ‘€: only value changes to bits set in the mask will be reported.

read that again. bits set in the mask. that's the whole vibe check. if a bit isn't in your mask, its changes are simply not the moment πŸ’…

ngl this is the kind of thing where getting the mask wrong means you're silently not seeing reports, so like... double check your bits, bestie 😭

πŸ”₯ SEE ALSO πŸ”₯

the whole kcsan friend group showed up, no cap πŸ‘‘


and that's the page!! 🌈 this lil beauty lives in ./include/linux, and it's dated October 2026 β€” so like, future icon behavior honestly ⭐ go read the rest of the kcsan girls, they're all linked above, ily, bye πŸ’œπŸ§šπŸ“

πŸ“¦ where this page comes from