hl_print_resize_sync_engine(9)
β¨ hl_print_resize_sync_engine(9) β¨
okay bestie, this one lives in the Kernel API Manual and it's genuinely such a helpful little helper β like the friend who holds your bag while you do the actual work π
. It formats an engine name and ID using hl_snprintf_resize.
πΈ NAME πΈ
hl_print_resize_sync_engine β a helper function, bestie! It formats the engine name and ID using hl_snprintf_resize. That's it, that's the whole job, and it does it slayfully β¨
π¦ SYNOPSIS π¦
int hl_print_resize_sync_engine (char **buf , size_t *size , size_t
*offset , enum hl_sync_engine_type engine_type , u32 engine_id );
look at that signature. gorgeous. no notes π«Ά
π ARGUMENTS π
bufβ a destination buffer double pointer, and it's literally meant to be used withhl_snprintf_resize. double pointer. she's fancy πsizeβ pointer to the size container πoffsetβ pointer to the offset container βengine_typeβ the engine type, which is one ofTPC/MME/DMAπengine_idβ the engine's numerical id π₯
π DESCRIPTION π
It returns 0 on success, or an error code on failure. that's the vibe check, that's the whole story, no cap πβ¨
π SEE ALSO π
the whole friend group, fr fr β first the kernel file:
./drivers/accel/habanalabs/common/state_dump.c
and then all of these icons π«Ά:
hl_format_as_binary(9), resize_to_fit(9), hl_snprintf_resize(9), hl_sync_engine_to_string(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_engine_fences(9), hl_state_dump_print_fences(9), hl_state_dump(9)
π reminder bestie: that SEE ALSO list is long long. do not skip it. she ate and left no crumbs.
and that's the page!! π§ made with love from ./drivers/accel/habanalabs/common, October 2026, part of the Kernel API Manual, filed under hl_print_resize_sync_engine(9). mwah ππβ¨
π¦ 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