hl_state_du...single_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay bestie, this is the hl_state_du...single_block(9) page from the Kernel API Manual, and the main character is hl_state_dump_print_monitors_single_block β€” it prints active monitors on a single block. That’s the whole vibe. πŸ’…

✨ SYNOPSIS ✨

int hl_state_dump_print_monitors_single_block (struct hl_device *hdev ,
       u32 index , char **buf , size_t *size , size_t *offset );

πŸŽ€ ARGUMENTS πŸŽ€

  • hdev β€” pointer to the device. The device in question, your fave struct, no cap. 🫢
  • index β€” sync manager block index starting with E_N. Keep that starting point in mind, bestie. ✨
  • buf β€” destination buffer double pointer to be used with hl_snprintf_resize. Double pointer, double the responsibility. πŸ’…
  • size β€” pointer to the size container. It’s giving β€œhold the size,” literally. πŸŽ€
  • offset β€” pointer to the offset container. The offset lives here, periodt. πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

Returns 0 on success or error code on failure. That’s the return contract, bestie: 0 means success, error code means failure. No extra lore, no secret plot twist. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/accel/habanalabs/common/state_dump.c

The whole squad:


Source/version: ./drivers/accel/habanalabs/common; date: October 2026; manual: hl_state_du...single_block(9). xoxo, your Unix bestie πŸ’– β€” periodt. 🫢

πŸ“¦ where this page comes from