hl_ack_pb_with_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hl_ack_pb_with_mask β€” NAME ✨

okay so bestie, welcome to hl_ack_pb_with_mask(9) from the Kernel API Manual 🫢 β€” this one is literally hl_ack_pb_with_mask: ack pb with mask in HW according to given configuration. yes that's the whole vibe. it's giving "one job, does it well" πŸ‘‘


🌸 SYNOPSIS 🌸

void hl_ack_pb_with_mask (struct hl_device *hdev , u32 num_dcores , u32
dcore_offset , u32 num_instances , u32 instance_offset , const u32
pb_blocks[] , u32 blocks_array_size , u64 mask );

no cap, that's the exact signature β€” copy it character for character or the compiler will absolutely humble you 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • hdev β€” pointer to hl_device structure. it's the main character, the whole device, the moment πŸ’–
  • num_dcores β€” number of decores to apply configuration to. lowkey important: set it to HL_PB_SHARED if you need to apply only once πŸ‘€
  • dcore_offset β€” the offset between dcores. spacing matters, bestie ✨
  • num_instances β€” number of instances to apply configuration to. how many little guys are getting the treatment πŸ¦‹
  • instance_offset β€” the offset between instances. yes, also spacing. we love consistency πŸ’…
  • pb_blocks β€” blocks array. it's an array. of blocks. iconic πŸŽ€
  • blocks_array_size β€” blocks array size. (the size of the blocks array. iykyk 🌸)
  • mask β€” enabled instances mask: 1 = enabled, 0 = disabled. that's it, that's the whole bit situation 🧚

πŸ”₯ SEE ALSO πŸ”₯

kernel file ./drivers/accel/habanalabs/common/security.c β€” go read the source, it's highkey the real manpage πŸ’œ

and then the whole friend group, in this exact order:


⭐ reminder bestie: mask is 1-enabled / 0-disabled, and num_dcores gets HL_PB_SHARED when you only want to apply it once. those are the two little details that'll get you every time πŸ™ˆ

alright that's the page!! brought to you by the good people over at ./drivers/accel/habanalabs/common, dated October 2026 β€” mwah, go ack some pbs responsibly πŸ’–πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from