rproc_add_subdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

rproc_add_subdev β€” bestie, this is the one that adds a subdevice to a remoteproc ✨

So like, we're in the Kernel API Manual, page rproc_add_subdev(9), and honestly? It's giving "small function, big responsibilities." Let's get into it 🫢


🌸 SYNOPSIS 🌸

void rproc_add_subdev (struct rproc *rproc , struct rproc_subdev *subdev
);

Yeah that's it. Two args, no return value, void and unbothered πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • rproc β€” the rproc handle you're adding the subdevice to πŸ‘‘ like, this is the main character's home, okay?
  • subdev β€” the subdev handle you're registering 🌸 this is the little guy moving in.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: the caller is responsible for populating the optional subdevice function pointers. That's on you, bestie. Not the function's problem. Not the kernel's problem. Yours πŸ™ˆ

So like, before you call this, make sure you've filled in whatever optional function pointers your subdevice needs. rproc_add_subdev is not gonna do it for you β€” no cap, it literally just adds and registers. The rest? That's your lore to write ✍️


⭐ SEE ALSO ⭐

Lowkey the longest SEE ALSO ever, but we don't gatekeep here πŸ’– First up, the kernel file it lives in:

./drivers/remoteproc/remoteproc_core.c

And then, the whole friend group:

Go read them all, iykyk πŸ“šβœ¨ (also rproc_remove_subdev is right there at the end β€” foreshadowing, bestie πŸ’€)


Reminder boo: populate those optional function pointers before you call this. That's the whole caveat and it's non-negotiable πŸŽ€

Okay that's the whole page! This one's from the ./drivers/remoteproc corner of the kernel, dated October 2026, and it's rproc_add_subdev(9) β€” slay, go add some subdevices responsibly πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from