hl_fw_copy_msg_to_device(9)
π
hl_fw_copy_msg_to_device (9) β Kernel API Manual π
okay bestie, welcome to the glow-up edition of the hl_fw_copy_msg_to_device(9) page from the Kernel API Manual. this one's short and sweet β it's literally just the part that actually moves the bytes. no cap. π¦
β¨ NAME β¨
hl_fw_copy_msg_to_device β copy message to device πΈ
β¨ SYNOPSIS β¨
int hl_fw_copy_msg_to_device (struct hl_device *hdev , struct
lkd_msg_comms *msg , void __iomem *dst , u32 src_offset , u32 size );
likeβ¦ look at her. iconic signature. π
β¨ ARGUMENTS β¨
hdevβ pointer tohl_devicestructure. your device main character. πmsgβ message. the actual message in question, bestie. β¨dstβ IO memory mapped address space to copy firmware to. yes, that's where the goods go. πsrc_offsetβ offset in src message to copy from. so you don't have to start at the very beginning, iykyk. π¦sizeβ amount of bytes to copy (0to copy the whole binary). zero means everything, periodt. π₯
β¨ DESCRIPTION β¨
this is, like, the actual copy of message data to the device. the real one. not a setup step, not a check β this is the copying. it's giving "doing the thing" energy. π
ngl the whole function is one job: message data β device. don't overthink her. π«Ά
β¨ SEE ALSO β¨
the whole friend group, fr fr β kernel file ./drivers/accel/habanalabs/common/firmware_if.c plus:
hl_fw_version_cmp(9)extract_u32_until_given_char(9)hl_get_sw_major_minor_subminor(9)hl_get_preboot_major_minor(9)hl_release_firmware(9)hl_fw_copy_fw_to_device(9)hl_fw_load_fw_to_device(9)hl_fw_send_cpu_message(9)hl_fw_preboot_update_state(9)hl_fw_dynamic_report_error_status(9)hl_fw_dynamic_send_cmd(9)hl_fw_dynamic_extract_fw_response(9)hl_fw_dynamic_wait_for_status(9)hl_fw_dynamic_send_clear_cmd(9)hl_fw_dynamic_send_protocol_cmd(9)hl_fw_compat_crc32(9)hl_fw_dynamic_validate_memory_bound(9)hl_fw_dynamic_validate_descriptor(9)hl_fw_dynamic_read_and_validate_descriptor(9)hl_fw_dynamic_request_descriptor(9)hl_fw_dynamic_read_device_fw_version(9)hl_fw_dynamic_copy_image(9)hl_fw_dynamic_copy_msg(9)hl_fw_boot_fit_update_state(9)hl_fw_dynamic_load_image(9)hl_fw_linux_update_state(9)hl_fw_dynamic_send_msg(9)hl_fw_dynamic_init_cpu(9)hl_fw_static_init_cpu(9)hl_fw_init_cpu(9)
go read them too, you'll be obsessed. π
and that's the page, bestie!! π§π brought to you by the lovely humans of ./drivers/accel/habanalabs/common, dated October 2026 β mwah, catch you in the next manpage πβ
π¦ 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