hl_state_dum...single_block(9)
π 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 withE_N(iykyk)bufβ destination buffer double pointer, meant to be used withhl_snprintf_resizeπsizeβ pointer to the size containeroffsetβ pointer to the offset containermapβ 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:
- Kernel file
./drivers/accel/habanalabs/common/state_dump.c hl_format_as_binary(9)resize_to_fit(9)hl_snprintf_resize(9)hl_sync_engine_to_string(9)hl_print_resize_sync_engine(9)hl_state_dump_get_sync_name(9)hl_state_dump_get_monitor_name(9)hl_state_dump_free_sync_to_engine_map(9)hl_state_dump_get_sync_to_engine(9)hl_state_dump_read_sync_objects(9)hl_state_dump_free_sync_objects(9)hl_state_dump_print_syncs(9)hl_state_dump_alloc_read_sm_block_monitors(9)hl_state_dump_free_monitors(9)hl_state_dump_print_monitors_single_block(9)hl_state_dump_print_monitors(9)hl_state_dump_print_engine_fences(9)hl_state_dump_print_fences(9)hl_state_dump(9)
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
- 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