devm_rproc_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 ⭐

  • 0 on 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