hl_init_pb_single_dcore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hl_init_pb_single_dcore β€” a kernel API manual moment πŸ’–

okay so bestie, we're in the <pink>Kernel API Manual</pink> and today's main character is hl_init_pb_single_dcore(9). yes it's a mouthful. no you may not shorten it. she earned that name ✨


🌸 NAME 🌸

hl_init_pb_single_dcore β€” sets the pb for a single dcore in HW, according to the given configuration. that's it, that's the vibe πŸŽ€


✨ SYNOPSIS ✨

int hl_init_pb_single_dcore (struct hl_device *hdev , u32 dcore_offset ,
u32 num_instances , u32 instance_offset , const u32 pb_blocks[] , u32
blocks_array_size , const u32 *user_regs_array , u32
user_regs_array_size );

she's an int, she takes eight things, and honestly? she ate πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hdev β€” pointer to the hl_device structure. your main character struct fr fr 🫢
  • dcore_offset β€” the offset from the dcore0, iykyk πŸ’œ
  • num_instances β€” how many instances you want the config applied to. count 'em bestie πŸ”₯
  • instance_offset β€” the offset between instances ⭐
  • pb_blocks β€” the blocks array πŸŽ€
  • blocks_array_size β€” the blocks array size. yes, it's the size of the blocks array. we love a self-explanatory queen πŸ‘‘
  • user_regs_array β€” the unsecured register array πŸ™ˆ
  • user_regs_array_size β€” the unsecured register array size 🌸

🌈 SEE ALSO 🌈

kernel file ./drivers/accel/habanalabs/common/security.c β€” go read her, she's iconic πŸ’–

the whole friend group, no cap:

lowkey a whole squad πŸ§šπŸ’œ


ngl bestie this one lives in ./drivers/accel/habanalabs/common, dated October 2026, and it's version-having and copyright-having because it's a whole official hl_init_pb_single_dcore(9) situation. protect her. πŸ“

and that's the page!! mwah, go configure some hardware responsibly, periodt πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from