ENUM HL_DEVICE_STATUS(9)
π enum hl_device_status(9) π
Okay bestie, so this page is from the Kernel API Manual and it's literally all about enum hl_device_status β the whole vibe check of your device, like, is it slaying or is it in crisis? Every possible state a device can be in lives in this one little enum. Iconic. Let me walk you through it π«Ά
β¨ NAME β¨
enum hl_device_status β Device status information.
That's it, that's the whole thing. It tells you what's up with the device, no cap π
πΈ SYNOPSIS πΈ
enum hl_device_status {
HL_DEVICE_STATUS_OPERATIONAL ,
HL_DEVICE_STATUS_IN_RESET ,
HL_DEVICE_STATUS_MALFUNCTION ,
HL_DEVICE_STATUS_NEEDS_RESET ,
HL_DEVICE_STATUS_IN_DEVICE_CREATION ,
HL_DEVICE_STATUS_IN_RESET_AFTER_DEVICE_RELEASE ,
HL_DEVICE_STATUS_LAST
};
Like, that's the full menu, and each one is a different mood the device can be in. Let's get into it π
π Constants π
HL_DEVICE_STATUS_OPERATIONALβ Device is operational. Bestie is thriving, working as intended, main character energy fr fr β¨HL_DEVICE_STATUS_IN_RESETβ Device is currently during reset. It's going through something right now, let it cook πHL_DEVICE_STATUS_MALFUNCTIONβ Device is unusable. Oof. π It's not okay, and no amount of vibes is fixing it.HL_DEVICE_STATUS_NEEDS_RESETβ Device needs reset because auto reset was disabled. So like, autocorrect is off, someone's gotta do it manually πHL_DEVICE_STATUS_IN_DEVICE_CREATIONβ Device is operational but its creation is still in progress. It's working, but it's also still being built? The multitasking. πHL_DEVICE_STATUS_IN_RESET_AFTER_DEVICE_RELEASEβ Device is currently during reset that was triggered because the user released the device. Yeah, the user let go and now it's resetting, that's the whole thing π¦HL_DEVICE_STATUS_LASTβ Last status. Just the end-of-list marker, the little "you've reached the bottom" moment β
π₯ SEE ALSO π₯
Y'all gotta check out these too, they're all in the kernel file ./include/uapi/drm/habanalabs_accel.h enum land:
hl_goya_dma_direction(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_open_stats_info(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)
And that's the whole page, bestie! π§ This one lives in ./include/uapi/drm and the version date on it is October 2026 β so like, keep that in mind iykyk. Go forth and check your device's status responsibly ππΈ
π¦ 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