STRUCT HL_OPEN_STATS_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct hl_open_stats_info(9) β€” like, the whole Kernel API Manual vibes ✨

okay bestie so this is from the Kernel API Manual (section 9, kernel API, iykyk) and it's literally all about device open statistics information πŸŽ€ like the receipts of how many times a device got opened and how long it stayed open. No cap, it's giving bookkeeping but make it cute 🌸


✨ NAME ✨

struct hl_open_stats_info β€” device open statistics information πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

struct hl_open_stats_info {
    __u64 open_counter;
    __u64 last_open_period_ms;
    __u8 is_compute_ctx_active;
    __u8 compute_ctx_in_release;
    __u8 pad[6];
 };

periodt, that's the whole struct πŸ‘‘


🌈 Members 🌈

  • open_counter β€” an ever growing counter, increased on each successful dev open πŸ”₯ so like… it only goes up, bestie, it never resets. Every successful open = +1.
  • last_open_period_ms β€” duration (ms) device was open last time ⏱️ literally how long the device stayed open that last time around.
  • is_compute_ctx_active β€” Whether there is an active compute context executing πŸ’« yes/no energy: is a compute context actually running right now?
  • compute_ctx_in_release β€” true if the current compute context is being released πŸ™ˆ like, it's on its way out bestie, say bye.
also there's a pad[6] field in there (just padding, no drama) 🫢 β€” it's in the synopsis, so we keep it, that's the rules ✨

🧚 SEE ALSO 🧚

okay so the whole friend group πŸ’œ first up, the Kernel file itself:

  • ./include/uapi/drm/habanalabs_accel.h enum

and then all the related pages, in order, no skips because we respect the lore πŸ‘‘:

  • hl_goya_dma_direction(9)
  • enum hl_device_status(9)
  • struct hl_info_hw_ip_info(9)
  • struct hl_info_pci_counters(9)
  • struct hl_info_clk_throttle(9)
  • struct hl_info_energy(9)
  • struct hl_power_info(9)
  • struct hl_info_sync_manager(9)
  • struct hl_info_cs_counters(9)
  • struct hl_info_last_err_open_dev_time(9)
  • struct hl_info_cs_timeout_event(9)
  • struct hl_info_razwi_event(9)
  • struct hl_info_undefined_opcode_event(9)
  • struct hl_info_hw_err_event(9)
  • struct hl_info_fw_err_event(9)
  • struct hl_info_engine_err_event(9)
  • struct hl_info_dev_memalloc_page_sizes(9)
  • struct hl_page_fault_info(9)
  • struct hl_user_mapping(9)
  • struct hl_info_args(9)

πŸ’€ lowkey a whole reading list, but that's the assignment and we ate πŸ“

aand that's the page bestie! πŸŽ€ it lives over in ./include/uapi/drm and it's dated October 2026 β€” so yes, future vibes, main character energy fr fr 🌟 slay, go read the friend group above πŸ’…βœ¨

πŸ“¦ where this page comes from