tuner_g_frequency(9)
π tuner_g_frequency(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this lil page is all about tuner_g_frequency, which is, like, literally the function that gets you the tuned frequency for the tuner. yes that tuner. iykyk π
β¨ NAME β¨
tuner_g_frequency β Get the tuned frequency for the tuner πΈ
π¦ SYNOPSIS π¦
int tuner_g_frequency (struct v4l2_subdev *sd , struct v4l2_frequency *f
);
likeβ¦ that's the whole signature, no notes π
π ARGUMENTS π
sdβ pointer tostruct v4l2_subdev. that's your subdev bestie π«Άfβ pointer tostruct v4l2_frequency. this is the one that's gonna get filled in, main character energy fr β¨
π§ DESCRIPTION π§
so at return β like, when the call comes back β the structure f will be filled with the tuner frequency, but only if the tuner matches f->type. conditional slay, no cap π
β NOTE β
f->type should be initialized before calling it!! π
and like, no stress, because this is done by either video_ioctl2 or by the bridge driver. so it's handled, but bestieβ¦ it's still your vibe check to know about it π
π SEE ALSO π
- Kernel file
./drivers/media/v4l2-core/tuner-core.cπ 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_tuner(9)tuner_s_tuner(9)
like, the whole friend group, and they all ate π₯
and that's the page!! π¦ this iconic lil doc lives in ./drivers/media/v4l2-core, dated October 2026 β mwah, go get that frequency bestie ππ
π¦ 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