v4l2_ctrl_query_fill(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so v4l2_ctrl_query_fill β€” it literally fills in a struct v4l2_queryctrl for you. that's the whole vibe. this page is from the Kernel API Manual, bestie, so grab a snack πŸ“ and let's get into it.


✨ SYNOPSIS ✨

int v4l2_ctrl_query_fill (struct v4l2_queryctrl *qctrl , s32 min , s32
       max , s32 step , s32 def );

πŸŽ€ ARGUMENTS πŸŽ€

  • qctrl β€” pointer to the struct v4l2_queryctrl you want filled. this is the main character of the operation, no cap πŸ‘‘
  • min β€” the minimum value for the control
  • max β€” the maximum value for the control
  • step β€” the control step
  • def β€” the default value for the control

πŸ’… DESCRIPTION πŸ’…

So what it does is it fills the struct v4l2_queryctrl fields for the query control. that's it, that's the whole job ✨

NOTE: this function assumes that the qctrl->id field is already filled. like, you gotta set that up yourself first, bestie β€” it's not gonna do it for you πŸ™ˆ

As for how it goes: it returns -EINVAL if the control is not known by the V4L2 core, and 0 on success. slay πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

okay this list is long long, but i'm not skipping a single one, iykyk πŸ’œ and also, kernel file ./include/media/v4l2-common.h:


and that's the page!! 🫢 before you go β€” this lil beauty lives in ./include/media, it's from the October 2026 drop, and the page itself is v4l2_ctrl_query_fill(9). go fill some structs, bestie, you're gonna ate it up 🌈⭐

πŸ“¦ where this page comes from