hl_state_dump_print_syncs(9)
π hl_state_dump_print_syncs β bestie edition
okay so this is a page from the Kernel API Manual, section 9 β it's hl_state_dump_print_syncs(9) and it's literally all about printing out your active sync objects. grab a lil snack, we're doing this π
β¨ NAME β¨
hl_state_dump_print_syncs β print active sync objects
like... that's the whole job. it prints the sync objects that are currently active. iconic behavior, no notes π
β¨ SYNOPSIS β¨
int hl_state_dump_print_syncs (struct hl_device *hdev , char **buf ,
size_t *size , size_t *offset );
yes bestie, that's the signature, copy it exactly β spaces and all. it returns an int, takes a struct hl_device * and then three pointer-y friends. π«Ά
β¨ ARGUMENTS β¨
hdevβ pointer to the device. the main character, honestly πbufβ destination buffer double pointer, and it's meant to be used withhl_snprintf_resize. double pointer, so yes, it's giving pointer to a pointer energy β that's not a typo, that's the assignment πsizeβ pointer to the size container. it holds the size. it points at the thing that holds the size. you get it πoffsetβ pointer to the offset container. same deal, but offset flavored β¨
β¨ DESCRIPTION β¨
Returns 0 on success or error code on failure.
that's it. that's the description. short and sweet and lowkey perfect. so like β 0? slay, we ate. anything else? error code, and the failure vibe check did not pass π keep that in mind before you assume things went fine, fr fr.
β¨ SEE ALSO β¨
- Kernel file
./drivers/accel/habanalabs/common/state_dump.cβ the actual source, go look at it if you're nosy (affectionate) π₯ 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_single_block(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)
that's a whole friend group right there, and they all show up in the same ./drivers/accel/habanalabs/common directory. iykyk π
and that's the page!! π¦ this gem comes from ./drivers/accel/habanalabs/common, dated October 2026, and it's filed under hl_state_dump_print_syncs(9) in the Kernel API Manual β go forth and print those syncs, bestie ππ
π¦ 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