v4l2_g_parm_cap(9)
π v4l2_g_parm_cap β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual page for v4l2_g_parm_cap(9) β yes the (9) is the section, we love a numbered era π
β¨ NAME β¨
v4l2_g_parm_cap β it's the helper routine for vidioc_g_parm, and its whole job is to fill that thing in by calling the get_frame_interval op of the subdev you hand it. that's it, that's the vibe π¦
heads up bestie: it only works forV4L2_BUF_TYPE_VIDEO_CAPTURE(_MPLANE)β that's literally why there's a_capin the function name, no cap fr π
πΈ SYNOPSIS πΈ
int v4l2_g_parm_cap (struct video_device *vdev , struct v4l2_subdev *sd
, struct v4l2_streamparm *a );
π ARGUMENTS π
vdevβ thestruct video_devicepointer. it's used to determine the device caps, so it's kind of the main character here πsdβ the sub-device pointer. the subdev in question πaβ theVIDIOC_G_PARMargument. the payload, the moment, the whole point β¨
π¦ SEE ALSO π¦
the kernel file ./include/media/v4l2-common.h and honestly a whole friend group of siblings, iykyk:
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_new_subdev(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_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)
and that's the page bestie π«Ά it lives in ./include/media, it's dated October 2026, and it's serving Kernel API Manual v4l2_g_parm_cap(9) realness. go read a subdev op, ily π
π¦ 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