rproc_add_carveout(9)
π¦ rproc_add_carveout β the Kernel API Manual, bestie edition β¨
okay so you're here for rproc_add_carveout(9), which lives in section 9 of the Kernel API Manual (that's the kernel-internals girlies π
). Sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
rproc_add_carveout β register an allocated carveout region πΈ
π SYNOPSIS π
void rproc_add_carveout (struct rproc *rproc , struct rproc_mem_entry *mem );
π ARGUMENTS π
rprocβ the rproc handle, your main character reference to the remote processor πmemβ the memory entry you're registering, ie the thing you're putting on the list π«
π₯ DESCRIPTION π₯
So this function registers the memory entry you pass in (mem) into the rproc carveouts list. That's it. That's the whole vibe. β¨
β οΈ but like, heads up bestie: the carveout you're registering has to have been allocated before you register it. The function does the registering, not the allocating β no cap, it will not do that for you π so make sure your carveout is already allocated first, fr fr.
π¦ SEE ALSO π¦
And now the part where I tag literally everyone in the group chat π
the kernel file ./drivers/remoteproc/remoteproc_core.c plus all of these iconic siblings:
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_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_remove_subdev(9)rproc_get_by_child(9)rproc_report_crash(9)
and that's the whole page, bestie β¨ it came from ./drivers/remoteproc, dated October 2026 β so go forth, register your carveouts, and remember: allocate first, register second, slay always π
ππ
π¦ 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