STRUCT HL_OPEN_STATS_INFO(9)
π
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βtrueif 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.henum
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
- 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