v4l2_spi_new_subdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_spi_new_subdev πŸ’…

okay bestie, welcome to the Kernel API Manual page for v4l2_spi_new_subdev β€” yes it's a mouthful, yes it's iconic, and yes we're gonna get through it together 🫢


✨ NAME ✨

v4l2_spi_new_subdev β€” loads an spi module and hands you back an initialized &struct v4l2_subdev. that's the whole vibe. it's giving "plug in, get subdev" πŸ”₯


🌸 SYNOPSIS 🌸

struct v4l2_subdev * v4l2_spi_new_subdev (struct v4l2_device *v4l2_dev ,
struct spi_controller *ctlr , struct spi_board_info *info );

like, that's the signature, no notes, copy it exactly if you're typing it out πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • v4l2_dev β€” pointer to struct v4l2_device. literally just a pointer to one of those, nothing more dramatic than that.
  • ctlr β€” pointer to struct spi_controller. yes bestie, the spi controller ✨
  • info β€” pointer to struct spi_board_info. the board info, as one does πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

returns a struct v4l2_subdev pointer. that's it. that's the description. short and slay, honestly πŸ‘‘

ngl this one is bare bones β€” the manpage doesn't tell you anything more than "returns a struct v4l2_subdev pointer", so don't let anyone gaslight you into thinking there's a hidden paragraph. there isn't πŸ’€

🌈 SEE ALSO 🌈

okay this list is LONG, grab a snack πŸ“ the kernel file in question lives at ./include/media/v4l2-common.h, and here's every single friend it wants you to meet:

like I said. a whole friend group 😭


alright that's the page!! source path is ./include/media, and it's dated October 2026 β€” so future-you can cite it, iykyk πŸ’œ stay hydrated, read your kernel headers, and remember: v4l2_spi_new_subdev returns a struct v4l2_subdev pointer. periodt 🌟

πŸ“¦ where this page comes from