v4l2_ctrl_query_fill(9)
π 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 thestruct v4l2_queryctrlyou want filled. this is the main character of the operation, no cap πminβ the minimum value for the controlmaxβ the maximum value for the controlstepβ the control stepdefβ 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:
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_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)
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
- 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