qcom_scm_ocmem_unlock(9)
π qcom_scm_ocmem_unlock β bestie's guide to the kernel API manual
okay so picture this: we're deep in the Linux kernel docs, right in qcom_scm_ocmem_unlock(9), and honestly? this one's a little legend. Let me put you on. π«Ά
β¨ NAME β¨
qcom_scm_ocmem_unlock β literally just calls the OCMEM unlock interface so an OCMEM region gets released from the initiator you point at. That's the whole vibe. No cap. π¦
πΈ SYNOPSIS πΈ
int qcom_scm_ocmem_unlock (enum qcom_scm_ocmem_client id , u32 offset ,
u32 size );
like, that's it. three lil arguments and it returns an int. the way that it's so short and yet so iconic π
π ARGUMENTS π
idβ the tz initiator id π« (yes, that's the one that has to match up with yourenum qcom_scm_ocmem_client, no notes)offsetβ the OCMEM offset, as promised πsizeβ and the OCMEM size. slay. that's the region, bestie π
ngl, each one of these is doing exactly what the label says β no secret lore here, justid,offset,size. lowkey refreshing.
π¦ SEE ALSO π¦
okay this list is long and every single entry stays, because we don't do skipping around here π
Kernel file ./drivers/firmware/qcom/qcom_scm.c struct, plus:
qcom_scm_qseecom_resp(9)qcom_scm_call(9)qcom_scm_call_atomic(9)qcom_scm_set_warm_boot_addr(9)qcom_scm_set_cold_boot_addr(9)qcom_scm_cpu_power_down(9)qcom_scm_is_pas_available(9)qcom_scm_restore_sec_cfg_available(9)qcom_scm_assign_mem(9)qcom_scm_ocmem_lock_available(9)qcom_scm_ocmem_lock(9)qcom_scm_ice_available(9)qcom_scm_ice_invalidate_key(9)qcom_scm_ice_set_key(9)qcom_scm_derive_sw_secret(9)qcom_scm_generate_ice_key(9)qcom_scm_prepare_ice_key(9)qcom_scm_import_ice_key(9)qcom_scm_hdcp_available(9)qcom_scm_hdcp_req(9)qcom_scm_qseecom_call(9)qcom_scm_qseecom_get_version(9)qcom_scm_qseecom_app_get_id(9)qcom_scm_qseecom_app_send(9)qcom_scm_qtee_invoke_smc(9)qcom_scm_qtee_callback_response(9)qcom_scm_is_available(9)
main character energy across the whole SCM family, fr fr π
it's giving "small function, huge ecosystem." go read the neighbors if you want the full story π
β¨ okay that's the page!! sign-off time: this lil beauty lives in ./drivers/firmware/qcom and the version stamp is from October 2026 β so like, technically future-dated, which is very main character of it. mwah ππ
π¦ 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