blkg_rwstat_total(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… blkg_rwstat_total(9) β€” Kernel API Manual ✨

okay bestie, welcome to the blkg_rwstat_total page, this one's short and sweet and honestly kind of a vibe πŸŽ€


🌸 NAME 🌸

blkg_rwstat_total β€” reads the total count of a blkg_rwstat, that's the whole job, and she does it slayfully πŸ’–


✨ SYNOPSIS ✨

uint64_t blkg_rwstat_total (struct blkg_rwstat *rwstat );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rwstat β€” the blkg_rwstat you want to read, like handing your bestie the aux, except the aux is a struct 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so basically this function returns the total count of rwstat, and the key detail here is it doesn't care about IO direction at all β€” no cap, total is total πŸ’€

and here's the part that's lowkey iconic: you can call this function without synchronization and it takes care of u64 atomicity all by itself. she handles her own business, main character energy fr fr πŸ”₯


🌈 SEE ALSO 🌈

kernel file ./block/blk-cgroup-rwstat.h, plus the whole friend group: blkg_rwstat_add(9), blkg_rwstat_read(9), blkg_rwstat_reset(9), blkg_rwstat_add_aux(9) β€” go say hi to all of them πŸ’œ


and that's the page!! πŸ“ shoutout to ./block for the source, October 2026 for the date, and the blkg_rwstat_total(9) header for holding it down β€” mwah, periodt πŸ’…βœ¨πŸ§š

πŸ“¦ where this page comes from