devm_rproc_add(9)
β¨ devm_rproc_add β¨
okay so real talk, this is a page straight out of the Kernel API Manual and it's literally the glow-up version of rproc_add π
πΈ NAME πΈ
devm_rproc_add β the resource-managed rproc_add(), bestie. same energy, but the kernel cleans up after itself π§Ήβ¨
π¦ SYNOPSIS π¦
int devm_rproc_add (struct device *dev , struct rproc *rproc );
π ARGUMENTS π
devβ the underlying device, aka the main character this whole thing hangs off of π«Άrprocβ the remote processor handle you're registering. that's your girl. go register her π
π DESCRIPTION π
so this function does the exact same thing as rproc_add, no cap. but here's the slay: the registered rproc device gets automatically removed on driver detach. the kernel handles the breakup for you, so you don't have to write the messy cleanup code ππ
it's giving "responsible adult who does their own dishes." iconic. periodt. π
β RETURN β
0on success π- negative errno on failure π
π₯ SEE ALSO π₯
Kernel file ./drivers/remoteproc/remoteproc_core.c and honestly 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_get_by_phandle(9), rproc_set_firmware(9), 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)
go read them. iykyk ππ
mwah π that's the whole page! it came from the ./drivers/remoteproc directory, dated October 2026, and yes that's the same devm_rproc_add(9) you just read about β full circle moment, we love to see it π§ββοΈπ
π¦ 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