qcom_scm_assign_mem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, meet qcom_scm_assign_mem(9) β€” this one is from the Kernel API Manual, and it literally makes a secure call to reassign memory ownership. πŸ‘‘


🌸 SYNOPSIS 🌸

int qcom_scm_assign_mem (phys_addr_t mem_addr , size_t mem_sz , u64
       *srcvm , const struct qcom_scm_vmperm *newvm , unsigned int dest_cnt );

πŸŽ€ ARGUMENTS πŸŽ€

  • mem_addr β€” the mem region whose ownership needs to be reassigned. yes, that whole region. πŸ’…
  • mem_sz β€” the size of the region. simple as that.
  • srcvm β€” the vmid for the current set of owners; each set bit in the flag indicates a unique owner. iykyk. ✨
  • newvm β€” an array having the new owners and their corresponding permission flags. new owners, new vibe. πŸ¦‹
  • dest_cnt β€” the number of owners in the next set. count ’em. πŸ”’

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: it returns a negative errno on failure, or 0 on success with srcvm updated. that’s the whole mood. no cap. πŸ’–


πŸ’œ SEE ALSO πŸ’œ

the kernel file is ./drivers/firmware/qcom/qcom_scm.c, and the related references are:


and for the cute lil’ sign-off: this page’s source/version line points to ./drivers/firmware/qcom, dated October 2026, and the footer wraps back to qcom_scm_assign_mem(9). slay. πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from