qcom_mdt_load(9)
π qcom_mdt_load(9) β like, the Kernel API Manual, bestie π
okay so real quick, the manual name is qcom_mdt_load β that's the whole vibe of this page, it's the kernel API manual for it, and we're about to get into it π
β¨ NAME β¨
qcom_mdt_load β loads the firmware whose header is loaded as fw. That's the whole job. She's a loader. Iconic behavior honestly π«Ά
πΈ SYNOPSIS πΈ
int qcom_mdt_load (struct device *dev , const struct firmware *fw ,
const char *fw_name , int pas_id , void *mem_region , phys_addr_t
mem_phys , size_t mem_size , phys_addr_t *reloc_base );
eight arguments. EIGHT. not me counting them twice π but like, she ate, we move.
π¦ ARGUMENTS π¦
devβ the device handle, aka where you associate your resources. think of it as the friend you bring to the party so you're not standing alone πfwβ the firmware object for the mdt file. the actual goods.fw_nameβ name of the firmware. it's used to construct the segment file names, so like... it does the naming math for you, no cap β¨pas_idβ the PAS identifier. that's it. that's the whole description. she's mysterious, she's lowkey giving main character energy πmem_regionβ the allocated memory region you're loading the firmware into. that's the bucket πͺ£mem_physβ the physical address of that allocated memory region.phys_addr_t, so like, respect her type.mem_sizeβ the size of the allocated memory region,size_tflavored πreloc_baseβ the adjusted physical address after relocation. she gets updated, she's aphys_addr_t *, she's out here living her best pointer life π
π§ DESCRIPTION π§
Returns0on success, negativeerrnootherwise.
that's it. that's the section. short king behavior fr fr β success is 0, failure is a negative errno, periodt π
β SEE ALSO β
Kernel file ./drivers/soc/qcom/mdt_loader.c β the source of truth, the mothership, go read her:
the whole friend group. iykyk π¦
and that's the page, bestie!! π«Ά big mwah to ./drivers/soc/qcom for making it all happen, dated October 2026 β literally future vibes, we love to see it πβ¨π
π¦ 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