ENUM HL_DEVICE_STATUS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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