hl_print_resize_sync_engine(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 with hl_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 of TPC/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