devm_qcom_pas_context_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, iykyk
  • mem_phys β€” subsystem reserve memory start address, like where the memory begins bestie
  • mem_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:


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