devm_qcom_pas_context_alloc(9)
π devm_qcom_pas_context_alloc(9) β the kernel API manual, bestie edition β¨
Okay so this is a page from the Kernel API Manual, and it's about devm_qcom_pas_context_alloc β yes that's a whole mouthful, don't worry, we're gonna get through it together π«Ά
πΈ NAME πΈ
devm_qcom_pas_context_alloc β allocate a peripheral authentication service context for a given peripheral β¨
π¦ SYNOPSIS π¦
struct qcom_pas_context * devm_qcom_pas_context_alloc (struct device
*dev , u32 pas_id , phys_addr_t mem_phys , size_t mem_size );
π ARGUMENTS π
devβ the PAS firmware device π§pas_idβ the peripheral authentication service id, iykykmem_physβ subsystem reserve memory start address, like where the memory begins bestiemem_sizeβ subsystem reserve memory size, aka how much we're working with π
β DESCRIPTION β
So the PAS context is device-resource managed β which is literally the best news ever, because it means the caller does not need to worry about freeing the context memory. Not me having to manually clean upβ¦ couldn't be this function π the devres magic handles it, you just vibe π
π RETURN π
It gives you back the new PAS context, or ERR_PTR on failure π (so like, check it, bestie, fr fr).
π₯ SEE ALSO π₯
Kernel file ./drivers/firmware/qcom/qcom_pas.c β and the whole squad:
qcom_pas_init_image(9)qcom_pas_metadata_release(9)qcom_pas_mem_setup(9)qcom_pas_get_rsc_table(9)qcom_pas_auth_and_reset(9)qcom_pas_prepare_and_auth_reset(9)qcom_pas_set_remote_state(9)qcom_pas_shutdown(9)qcom_pas_supported(9)qcom_pas_is_available(9)
And that's the whole page, bestie π this gem lives in ./drivers/firmware/qcom, stamped October 2026, and its name is β say it with me β devm_qcom_pas_context_alloc(9) π slay, go forth and allocate β¨π¦
π¦ 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