dprc_add_new_devices(9)
π dprc_add_new_devices (kernel API manual, section 9)
okay bestie, so this page is dprc_add_new_devices β and yes it lives in the Kernel API Manual, section 9, so it's a kernel-internals girly. It's literally the function that "Adds devices to the logical bus for a DPRC". That's the whole vibe. Let's get into it β¨
πΈ SYNOPSIS πΈ
void dprc_add_new_devices (struct fsl_mc_device *mc_bus_dev ,
struct fsl_mc_obj_desc *obj_desc_array ,
int num_child_objects_in_mc );
yes it returns void, she's doing her job quietly and leaving, we respect that π«Ά
π ARGUMENTS π
mc_bus_devβ a pointer to thefsl_mc_devicethat represents a DPRC object. it's giving main character energy: the device that is the DPRC πobj_desc_arrayβ an array of device descriptors for the child devices that are currently present in the physical DPRC. like, the receipts of who's actually in the building rn πnum_child_objects_in_mcβ the number of entries inobj_desc_array. the count. the headcount. don't lie to her about how many besties are coming π
π¦ DESCRIPTION π¦
so what she does is: synchronize the state of the Linux bus driver with the actual state of the MC, by adding the objects that have been newly discovered in the physical DPRC. that's it. that's the whole thing. the bus driver and the MC get on the same page, and the new objects get added. no cap, it's literally just a sync-and-add β¨
the way that a function can be this focused and still be iconic π
π SEE ALSO π
kernel file ./drivers/bus/fsl-mc/dprc-driver.c β go read the source, iykyk π
dprc_remove_devices(9)check_plugged_state_change(9)dprc_scan_objects(9)dprc_scan_container(9)dprc_irq0_handler_thread(9)dprc_setup(9)dprc_probe(9)dprc_cleanup(9)dprc_remove(9)
the whole squad is here fr fr π₯
heads up bestie: this page is from ./drivers/bus/fsl-mc, dated October 2026 β so if you're reading this from a different tree, vibe check the source before you trust anything π
and that's a wrap!! ty for coming to my ted talk, go add some devices, slay, periodt πππ¦
π¦ 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