rproc_free(9)
β¨ rproc_free(9) β¨
okay so bestie, we're in the Kernel API Manual today and this page is literally the cleanup arc of the remoteproc saga π it's short, it's sweet, and it ate. let's get into it π
πΈ NAME πΈ
rproc_free β the un-roll of rproc_alloc(), no cap π«Ά
π SYNOPSIS π
void rproc_free (struct rproc *rproc );
π¦ ARGUMENTS π¦
rprocβ the remote processor handle π like, the actualstruct rproc *bestie is handing over. this is the main character of the function, periodt.
π§ DESCRIPTION π§
okay so here's the tea β this function decrements the rproc dev refcount. that's the whole vibe. one step down on the counter, that's it, that's the job.
and then β if no one holds any reference to rproc anymore β its refcount would now drop to zero, and it would be freed. π«§β¨ so if you were the last one holding on, congrats, you just yeeted it into the void. iconic behavior honestly. but like... only if nobody else is holding a reference, iykyk π
π SEE ALSO π
everything in the Kernel file ./drivers/remoteproc/remoteproc_core.c β and like, the whole friend group fr fr π«Ά go read these next, bestie:
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)devm_rproc_add(9)rproc_type_release(9)rproc_alloc(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)
lowkey a reminder bestie: this frees stuff. like, actually frees it. if refcounts are messy the vibe check will NOT be passing π so keep your references tidy, mwah π
πΈ mwah, that's the page! brought to you straight outta ./drivers/remoteproc, dated October 2026 β catch you on the next manpage, bestie, ily, bye!! ππβ¨
π¦ 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