STRUCT HL_DIO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct hl_dio(9) β€” like, the whole vibe check πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's struct hl_dio(9), and it's literally the glow-up page for the habanalabs direct storage interaction interface. yes, that's a mouthful, but we're gonna get through it together 🫢


✨ NAME ✨

struct hl_dio β€” ngl, this struct is the whole describes habanalabs direct storage interaction interface moment. it's giving "I hold the direct storage tea" πŸ’…


🌸 SYNOPSIS 🌸

okay here's the actual struct, copy it exactly, no edits, no cap:

struct hl_dio {
    struct hl_p2p_region *p2prs;
    s64 __percpu *inflight_ios;
    u8 np2prs;
    u8 io_enabled;
 };

like, look at her. four members. flawless. main character energy πŸ‘‘


πŸŽ€ Members πŸŽ€

breaking down every single one because we do not skip details in this group chat:

  • p2prs β€” array of p2p regions. that's it, that's the whole thing, iconic ✨
  • inflight_ios β€” percpu counter for inflight ios. she's counting, per cpu, always watching πŸ‘€
  • np2prs β€” number of elements in p2prs. so like, the size of the array bestie, keep up πŸ’–
  • io_enabled β€” 1 if io is enabled, 0 otherwise. binary queen 🌈

πŸ”₯ SEE ALSO πŸ”₯

go check these out, iykyk:

  • Kernel file ./drivers/accel/habanalabs/common/hldio.h
  • struct hl_p2p_region(9)
  • struct hl_dio_stats(9)

fr fr, this struct is small but she contains multitudes. don't sleep on her πŸ’€

and that's the page, bestie!! πŸ’œ cute little sign-off before you go: this whole thing lives in ./drivers/accel/habanalabs/common, dated October 2026, and yes β€” she's still struct hl_dio(9) through and through. slay, stay hydrated, read your headers πŸ“πŸ§š

πŸ“¦ where this page comes from