v4l2_g_parm_cap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 for V4L2_BUF_TYPE_VIDEO_CAPTURE(_MPLANE) β€” that's literally why there's a _cap in 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 β€” the struct video_device pointer. 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 β€” the VIDIOC_G_PARM argument. 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:


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