tuner_g_frequency(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to struct v4l2_subdev. that's your subdev bestie 🫢
  • f β€” pointer to struct 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 🌈

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