qcom_mdt_load(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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_t flavored 🌈
  • reloc_base β€” the adjusted physical address after relocation. she gets updated, she's a phys_addr_t *, she's out here living her best pointer life πŸ’…

🧚 DESCRIPTION 🧚

Returns 0 on success, negative errno otherwise.

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