rproc_get_by_child(9)
π rproc_get_by_child β from the Kernel API Manual, bestie β¨
Okay so picture this: it's a kernel API manual page, the title is rproc_get_by_child(9), and it's here to teach you how to acquire the rproc handle of @dev's ancestor π«Ά. That's the whole vibe. Ancestor-hunting. Remote processor edition. Let's go π
β¨ NAME β¨
rproc_get_by_child β literally goes and grabs you the rproc handle of @dev's ancestor π
πΈ SYNOPSIS πΈ
struct rproc * rproc_get_by_child (struct device *dev );
That's it. One function, one argument, one struct rproc * coming back at you π
π ARGUMENTS π
devβ the child device whose ancestor we're trying to find π§ no cap, you hand it the kid and it goes looking up the family tree.
β RETURN β
It returns the ancestor rproc instance π β or NULL if it's not found π (so like, check for NULL, bestie, fr fr).
Not found =NULL. Don't be out here dereferencing aNULLand acting surprised π
π₯ SEE ALSO π₯
Bestie there are so many friends in this section, I'm obsessed π The kernel file is ./drivers/remoteproc/remoteproc_core.c, and everything below lives in the same family:
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_remove_subdev(9)rproc_report_crash(9)
Like I said. So many. A whole friend group π«π
That's the page, bestie!! π
β¨ Shoutout to ./drivers/remoteproc (that's the source, mwah π) and the date on this iconic little artifact: October 2026 ποΈπΈ Go forth and find those ancestors ππ
π¦ 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