hl_state_dum...single_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hl_state_dum...single_block(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one's a lil kernel helper from the habanalabs crew, and honestly? she's giving "quiet utility icon." let's get into it πŸŽ€


🌸 NAME 🌸

hl_state_dump_print_syncs_single_block β€” prints the active sync objects on a single block, no cap 🫢


✨ SYNOPSIS ✨

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

like, that's the whole vibe. returns an int. six args. she's thorough πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hdev β€” pointer to the device, literally the main character here πŸ‘‘
  • index β€” the sync manager block index, and it starts with E_N (iykyk)
  • buf β€” destination buffer double pointer, meant to be used with hl_snprintf_resize πŸ“
  • size β€” pointer to the size container
  • offset β€” pointer to the offset container
  • map β€” the sync engines names map 🌈

πŸ’– DESCRIPTION πŸ’–

okay so the actual deal: this returns 0 on success, or an error code on failure. that's it. that's the whole description. short queen energy, we respect it 😭✨


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr:


ngl bestie, if you're poking around in ./drivers/accel/habanalabs/common/, go read the source too β€” the manpage is cute but the code is the real tea 🧚

and that's a wrap, babe πŸ’œ this lil gem lives in ./drivers/accel/habanalabs/common, dated October 2026 β€” stan a kernel doc that knows what it is πŸŽ€βœ¨ slay.

πŸ“¦ where this page comes from