dprc_add_new_devices(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the fsl_mc_device that 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 in obj_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 πŸ“–

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