hl_init_pb_single_dcore(9)
π 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 thehl_devicestructure. your main character struct fr fr π«Άdcore_offsetβ the offset from thedcore0, 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:
hl_get_pb_block(9)hl_unset_pb_in_block(9)hl_unsecure_register(9)hl_unsecure_register_range(9)hl_unsecure_registers(9)hl_unsecure_registers_range(9)hl_ack_pb_security_violations(9)hl_config_glbl_sec(9)hl_secure_block(9)hl_init_pb_with_mask(9)hl_init_pb(9)hl_init_pb_ranges_with_mask(9)hl_init_pb_ranges(9)hl_init_pb_ranges_single_dcore(9)hl_ack_pb_with_mask(9)hl_ack_pb(9)hl_ack_pb_single_dcore(9)
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 officialhl_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
- 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