instrument_a...c_read_write(9)
π instrument_atomic_read_write(9) β from the Kernel API Manual, bestie π
okay so real talk, this one is short but it matters, and it lives in the instrument_a...c_read_write(9) corner of the kernel docs. it's giving "small but crucial", ykwim? let's get into it β¨
β¨ NAME β¨
instrument_atomic_read_write β basically it instruments an atomic read-write access π¦
like, that's the whole vibe check: atomic read-write goes in, gets instrumented. slay.
πΈ SYNOPSIS πΈ
void instrument_atomic_read_write (const volatile void *v , size_t size );
no cap, that's the exact signature β v is a const volatile void * and size is a size_t, and the whole thing returns void because it's out here doing work, not collecting receipts π
π ARGUMENTS π
vβ the address of the access π like, where the thing is happeningsizeβ the size of the access π like, how much of the thing is happening
both iconic, both required, no skips π«Ά
π DESCRIPTION π
okay so listen up, because this part is literally the whole point:
it instruments an atomic read-write access. and here's the detail you absolutely cannot drop β the instrumentation should be inserted before the actual write happens β
read that again, bestie. before. not after, not "whenever you get around to it". before. the ordering is the moment, iykyk π
π₯ SEE ALSO π₯
this is the friend group right here, all living in the kernel file ./include/linux/instrumented.h π
instrument_read(9)instrument_write(9)instrument_read_write(9)instrument_atomic_read(9)instrument_atomic_write(9)instrument_copy_to_user(9)instrument_copy_from_user_before(9)instrument_copy_from_user_after(9)instrument_memcpy_before(9)instrument_memcpy_after(9)instrument_get_user(9)instrument_put_user(9)
literally the whole squad, go say hi π
ngl the ordering thing is the one you'll regret ignoring, so likeβ¦ don't π
and that's the page! courtesy of ./include/linux, dated October 2026, filed under instrument_a...c_read_write(9) β mwah, go instrument something, you got this π§πβ¨
π¦ 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