STRUCT HL_DIO_STATS(9)
π struct hl_dio_stats(9) β like, the Kernel API Manual, bestie π
okay so welcome to the Kernel API Manual page for struct hl_dio_stats, and honestly? it's giving "let me count my Direct I/O wins and losses" and I'm obsessed. β¨
πΈ NAME πΈ
struct hl_dio_stats β Direct I/O statistics. that's it, that's the vibe. it's a little struct that keeps receipts on your DIO ops. π
π¦ SYNOPSIS π¦
bestie, here's the whole shape of her. every field, verbatim, no cap:
struct hl_dio_stats {
u64 total_ops;
u64 successful_ops;
u64 failed_ops;
u64 bytes_transferred;
size_t last_len_read;
};
β¨ Members β¨
total_opsβ total number of operations attempted. like, every single one that showed up to the party, whether it slayed or flopped. π«Άsuccessful_opsβ number of successful operations. the ones that ate and left no crumbs. πfailed_opsβ number of failed operations. it happens, we don't talk about it, but the struct does keep count. πbytes_transferredβ total bytes successfully transferred. only the successes get counted here, so it's the good-good number. π₯last_len_readβ length of the last read operation. yes, just the last one. main character read energy, iykyk. π
π SEE ALSO π
go touch grass in these files fr fr:
- Kernel file
./drivers/accel/habanalabs/common/hldio.hstructhl_p2p_region(9),struct hl_dio(9)
π lowkey reminder: keep every field spelled exactly like above, because the kernel does not do typos and neither should you π
and that's the page, bestie!! mwah π this lil beauty lives in ./drivers/accel/habanalabs/common and the version/date stamp on the original was October 2026 β so yeah, future-dated icon behavior, we love to see it. βπΈπ¦
π¦ 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