rproc_get_by_phandle(9)
π rproc_get_by_phandle(9) β¨
okay bestie, welcome to the Kernel API Manual β this one's called rproc_get_by_phandle(9) and it's genuinely one of the shorter ones so we can absolutely get through it together π«Ά
πΈ NAME πΈ
rproc_get_by_phandle β find a remote processor by phandle. that's it, that's the whole gig π
β SYNOPSIS β
struct rproc * rproc_get_by_phandle (phandle phandle );
like yes girl, hand it a phandle and it hands you back a struct rproc *. iconic behavior honestly π
π ARGUMENTS π
phandleβ the phandle pointing at the rproc. that's the one thing you gotta give it π¦
π§ DESCRIPTION π§
so here's the vibe: this function finds an rproc handle using the remote processor's phandle, and then returns a handle to the rproc. literally that's it. find + return. clean. efficient. main character energy β¨
π¨ okay this part is important, do NOT skip it: this function increments the remote processor's refcount, so you always need to use rproc_put to decrement it back once the rproc isn't needed anymore. no cap. if you don't, the refcount just sits there being wrong and that's not the energy we're bringing today π
π RETURN π
rproc handle on success π β and NULL on failure π
π SEE ALSO π
Kernel file ./drivers/remoteproc/remoteproc_core.c β and like, the whole friend group:
rproc_da_to_va(9)rproc_find_carveout_by_name(9)rproc_check_carveout_da(9)rproc_handle_vdev(9)rproc_handle_trace(9)rproc_handle_devmem(9)rproc_alloc_carveout(9)rproc_release_carveout(9)rproc_handle_carveout(9)rproc_add_carveout(9)rproc_mem_entry_init(9)rproc_of_resm_mem_entry_init(9)rproc_of_parse_firmware(9)rproc_alloc_registered_carveouts(9)rproc_resource_cleanup(9)rproc_trigger_recovery(9)rproc_crash_handler_work(9)rproc_boot(9)rproc_shutdown(9)rproc_detach(9)rproc_set_firmware(9)rproc_add(9)devm_rproc_add(9)rproc_type_release(9)rproc_alloc(9)rproc_free(9)rproc_put(9)rproc_del(9)devm_rproc_alloc(9)rproc_add_subdev(9)rproc_remove_subdev(9)rproc_get_by_child(9)rproc_report_crash(9)
and that's the whole page bestie, you ate that fr fr π₯ this little gem lives over in ./drivers/remoteproc and it's dated October 2026 β go forth and remember your rproc_put, i'm begging you ππ
π¦ 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