blkg_rwstat_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ blkg_rwstat_read(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a lil function from the kernel block layer and honestly it's giving "tiny but essential" energy. it lives in ./block and it's lowkey the read half of the blkg_rwstat squad πŸŽ€


🌸 NAME 🌸

blkg_rwstat_read β€” read the current values of a blkg_rwstat

✨ SYNOPSIS ✨

void blkg_rwstat_read (struct blkg_rwstat *rwstat , struct
       blkg_rwstat_sample *result );

like, that's the whole signature, no cap 🫢

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rwstat β€” the blkg_rwstat you wanna read, bestie. this is the thing you're peeking at πŸ‘€
  • result β€” where to put the current values. yes, you gotta give it somewhere to land πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

Read the current snapshot of rwstat and return it in the result counts. that's it, that's the vibe β€” you hand it the stat, it hands you back a lil snapshot of the counts as they are right now ✨ literally a snapshot moment, main character energy πŸ“Έ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./block/blk-cgroup-rwstat.h, plus the rest of the crew:


πŸŽ€ friendly reminder: blkg_rwstat_read is the reader, not the writer β€” if you're trying to change the stats you want blkg_rwstat_add(9) or blkg_rwstat_reset(9), iykyk πŸ’…

and that's a wrap, bestie 🌈 this page came from ./block in the Kernel API Manual, dated October 2026, and it's still filed under blkg_rwstat_read(9) β€” slay πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from