blkg_rwstat_read(9)
β¨ 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β theblkg_rwstatyou 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_readis the reader, not the writer β if you're trying to change the stats you wantblkg_rwstat_add(9)orblkg_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
- 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