rproc_remove_subdev(9)
π rproc_remove_subdev β a Kernel API Manual moment πΈ
okay so bestie, you know how rproc_add_subdev is the glow-up era where you register a subdevice? yeah. this page is the other side of that story β it's the un-register. welcome to the Kernel API Manual for rproc_remove_subdev, section 9, and honestly it's giving "cleanup era" and we love that for us.
β¨ NAME β¨
rproc_remove_subdev β remove a subdevice from a remoteproc π
like, take it off the list. gently. it's done its job.
β¨ SYNOPSIS β¨
void rproc_remove_subdev (struct rproc *rproc , struct rproc_subdev
*subdev );
no cap, it returns nothing β void is the whole personality. it just does the thing and exits. iconic π
β¨ ARGUMENTS β¨
rprocβ the rproc handle you're removing the subdevice from. this is the main character of the operation, the one who has to let go πsubdevβ the subdev handle, previously registered withrproc_add_subdev. yes this is the same handle from that function. it's a callback to an earlier episode. iykyk π¦
fr fr, these two need to match up βsubdevis the one that was registered withrproc_add_subdevbeforehand. that's the whole vibe check.
β¨ SEE ALSO β¨
okay the guest list is LONG, so buckle up bestie, we're doing a whole ensemble cast π
- Kernel file β
./drivers/remoteproc/remoteproc_core.c(the source, the blueprint, the birthplace π) 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_free(9)rproc_put(9)rproc_del(9)devm_rproc_alloc(9)rproc_add_subdev(9)rproc_get_by_child(9)rproc_report_crash(9)
basically the whole remoteproc friend group. read 'em all, they're all baddies π₯π
and that's the page!! no notes, 10/10, would commit again. this little masterpiece lives in ./drivers/remoteproc and the version/date stamp on it is October 2026 β so mark your calendars, screenshot it, put it in the group chat, whatever you gotta do πΈπ π§β¨ bye bestie!! π«Ά
π¦ 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