v4l2_spi_new_subdev(9)
π 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 tostruct v4l2_device. literally just a pointer to one of those, nothing more dramatic than that.ctlrβ pointer tostruct spi_controller. yes bestie, the spi controller β¨infoβ pointer tostruct 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:
v4l2_ctrl_query_fill(9)enum v4l2_i2c_tuner_type(9)v4l2_i2c_new_subdev(9)v4l2_i2c_new_subdev_board(9)v4l2_i2c_subdev_set_name(9)v4l2_i2c_subdev_init(9)v4l2_i2c_subdev_addr(9)v4l2_i2c_tuner_addrs(9)v4l2_i2c_subdev_unregister(9)v4l2_spi_subdev_init(9)v4l2_spi_subdev_unregister(9)v4l_bound_align_image(9)v4l2_find_nearest_size_conditional(9)v4l2_find_nearest_size(9)v4l2_g_parm_cap(9)v4l2_s_parm_cap(9)enum v4l2_pixel_encoding(9)struct v4l2_format_info(9)v4l2_get_link_freq(9)v4l2_get_active_data_lanes(9)v4l2_link_freq_to_bitmap(9)devm_v4l2_sensor_clk_get(9)devm_v4l2_sensor_clk_get_legacy(9)
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
- 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