rproc_alloc_carveout(9)
π rproc_alloc_carveout(9) π
okay so bestie, literally welcome to the Kernel API Manual β yes, the actual Kernel API Manual, we're doing this π this page is all about rproc_alloc_carveout, and it's lowkey one of those tiny functions that just does the thing so let's get into it.
β¨ NAME β¨
rproc_alloc_carveout β allocates the specified carveout π
π¦ SYNOPSIS π¦
int rproc_alloc_carveout (struct rproc *rproc , struct rproc_mem_entry
*mem );
πΈ ARGUMENTS πΈ
rprocβ therprochandle, aka your main character struct pointer, the whole reason we're here π«Άmemβ the memory entry to allocate, the actual thing we're carving out, slay
π« DESCRIPTION π«
So this function allocates the specified memory entry mem, and it uses dma_alloc_coherent as the default allocator β no cap, that's the default allocator, it's giving "I got you, bestie" energy β¨
π RETURN π
0on success π- or an appropriate error code otherwise π (so like, vibe check your return value, fr fr)
π SEE ALSO π
okay this list is iconic, it's literally the whole remoteproc friend group, all of them, we are not skipping a single one π
- Kernel file
./drivers/remoteproc/remoteproc_core.c 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_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_remove_subdev(9)rproc_get_by_child(9)rproc_report_crash(9)
and that's the whole page bestie, go carve out your memory entry, you're gonna do amazing ππ§ββοΈ
so like, the source lives in ./drivers/remoteproc and the version/date stamp on this one is October 2026, and the manual it belongs to is the Kernel API Manual β mwah, that's the sign-off, 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