tuner_g_tuner(9)
π tuner_g_tuner β a Kernel API Manual moment
okay bestie, so this one lives in the Kernel API Manual and it's literally called tuner_g_tuner(9). the "g" is for get btw, iykyk. it's giving "hand me the tuner tea" energy and honestly? iconic.
β¨ NAME β¨
tuner_g_tuner β fill in tuner information π
like, that's the whole job. it fills in the tuner info. no cap.
π¦ SYNOPSIS π¦
int tuner_g_tuner (struct v4l2_subdev *sd , struct v4l2_tuner *vt );
that's the signature, copy it exactly please, i am begging π«Ά
π ARGUMENTS π
sdβ pointer tostruct v4l2_subdev. yes bestie, the subdev. the main character of this whole situation.vtβ pointer tostruct v4l2_tuner. this is the one that comes back all filled in, like a glow-up but for a struct β¨
πΈ DESCRIPTION πΈ
so when this returns, the structure vt will be all filled in with tuner information β but only if the tuner matches vt->type. like, it's gotta be the right match or nothing happens. vibe check first, info second π
β NOTE β
vt->typehas to be initialized before you call this. not optional, not a suggestion, it's the rule π and who does that init for you? eithervideo_ioctl2or the bridge driver. so like, somebody's already got you covered, but know that it's happening, okay? π
π SEE ALSO π
the kernel file ./drivers/media/v4l2-core/tuner-core.c β go read it, it's tea β
and the whole squad:
enum tuner_pad_index(9)enum if_vid_dec_pad_index(9)set_type(9)tuner_s_type_addr(9)tuner_s_config(9)tuner_lookup(9)tuner_probe(9)tuner_remove(9)check_mode(9)set_mode(9)set_freq(9)set_tv_freq(9)tuner_fixup_std(9)set_radio_freq(9)tuner_status(9)tuner_standby(9)tuner_g_frequency(9)tuner_s_tuner(9)
every single one, we don't skip the friends π
that's the whole page bestie, slay π
source: ./drivers/media/v4l2-core β dated October 2026 π mwah, see u in the next manpage π¦β¨
π¦ 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