pru_rproc_get(9)
β¨ pru_rproc_get β¨
okay bestie, gather round, because this is a page from the Kernel API Manual and it's honestly kind of a big deal π
πΈ NAME πΈ
pru_rproc_get β grab the PRU rproc instance from a device node, no cap
π¦ SYNOPSIS π¦
struct rproc * pru_rproc_get (struct device_node *np , int index , enum
pruss_pru_id *pru_id );
π ARGUMENTS π
npβ the user/client device node. like, the device node of whoever's asking π«Άindexβ the index to use for theti,pruspropertypru_idβ optional pointer to return the PRU remoteproc processor id. optional!! you don't have to pass it β¨
π DESCRIPTION π
So what this function actually does: it looks through a client device node's ti,prus property at index index and returns the rproc handle for a valid PRU remote processor if it finds one. it's giving "let me check the property real quick and see if your PRU is in there" π
Bestie, listen β the function allows only one user to own the PRU rproc resource at a time. one. singular. main character energy only, no plus-ones π
The caller must call pru_rproc_put when done with the rproc. like, that's the whole etiquette. but good news!! it's not required if the function returns a failure β you're off the hook in that case π
And when the optional pru_id pointer is passed, the PRU remoteproc processor id is returned. cute little bonus info π
π₯ RETURN π₯
rproc handle on success, and an ERR_PTR on failure using one of these error values:
-ENODEVif device is not found β literally nowhere to be found π-EBUSYif PRU is already acquired by anyone β somebody else got there first, it's taken π-EPROBE_DEFERis PRU device is not probed yet β not ready yet, come back later β
π§ SEE ALSO π§
- Kernel file
./drivers/remoteproc/pru_rproc.c enum pru_iomem(9)struct pru_private_data(9)struct pru_rproc(9)pru_rproc_set_firmware(9)pru_rproc_put(9)pru_rproc_set_ctable(9)
and that's the whole page, bestie, you ate that π«Άβ¨ this little gem lives in ./drivers/remoteproc, dated October 2026, and the header/footer vibe is pru_rproc_get(9) β go forth and get your rproc responsibly π
π¦ 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