kcsan_check_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kcsan_check_read

okay so bestie, welcome to the Kernel API Manual β€” yes that's the manual we're in, we're doing kernel stuff today, put your hair up πŸŽ€

This one's kcsan_check_read β€” she checks regular read access for races. That's the whole vibe. KCSAN's whole thing is spotting data races, and this little icon is you telling it "hey, I'm doing a normal (non-atomic) read right here, please keep an eye out for me" πŸ‘€βœ¨


🌸 SYNOPSIS

kcsan_check_read (ptr , size );

literally that's it, two args, no drama πŸ’…


✨ ARGUMENTS

  • ptr β€” the address of the access. like, where you're reading from 🫢
  • size β€” the size of the access. how many bytes you're grabbing, bestie πŸ“

πŸ¦‹ SEE ALSO

full squad, no cap β€” these all live in the kernel file ./include/linux/kcsan-checks.h:

like I said. a whole squad πŸŒˆπŸ‘‘


ngl the read checks are genuinely iconic β€” they're how KCSAN knows what's a plain read versus all the fancy atomic/scoped stuff above. use her, she ate πŸ’–

okay that's the whole page bestie, go be a main character in your kernel 🧚

this one's served up from ./include/linux, dated October 2026 β€” mwah, catch you in the next manpage πŸ’‹πŸ«ΆπŸŒŸ

πŸ“¦ where this page comes from