hl_state_du...ngine_fences(9)
π hl_state_dump_print_engine_fences β the Kernel API Manual (section 9) girlies, this one's for you β¨
okay so bestie, welcome to the hl_state_dump_print_engine_fences(9) page of the Kernel API Manual β section 9, we're in the deep kernel lore now, and honestly? it's giving documentation main character energy. π
πΈ NAME πΈ
hl_state_dump_print_engine_fences β no cap, this one does exactly what it says on the tin: it prints the active fences for one specific engine. like, that engine. the one you asked for. periodt. π
π¦ SYNOPSIS π¦
int hl_state_dump_print_engine_fences (struct hl_device *hdev , enum
hl_sync_engine_type engine_type , char **buf , size_t *size , size_t
*offset );
copy that exactly, bestie β don't be out here retyping the signature from memory, that's how you end up with a bug at 3am. π
β¨ ARGUMENTS β¨
hdevβ pointer to the device π the whole vibe check starts here,struct hl_device *, this is your device, your main character.engine_typeβ engine type to use βοΈ anenum hl_sync_engine_type, so pick your engine and commit to it, iykyk.bufβ destination buffer double pointer, made to be used withhl_snprintf_resizeπ yes a double pointer, she's fancy like that.sizeβ pointer to the size container π it's asize_t *, she holds the size, let her do her job.offsetβ pointer to the offset container π§ also asize_t *, she tracks where you're at. lowkey essential, don't skip her.
π₯ SEE ALSO π₯
the whole squad is here, and they all ate:
- Kernel file
./drivers/accel/habanalabs/common/state_dump.cβ like, the actual source, go read her π 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_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_fences(9)hl_state_dump(9)
bestie seriously, that's the full list, every single one β I would never ghost a SEE ALSO reference. π
and that's the page, gorgeous π this icon of a manpage lives over in ./drivers/accel/habanalabs/common, and she's dated October 2026 β mark your calendars, she said see you then π«Άπβ
no cap, you're a kernel dev now. π
π¦ 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