STRUCT ASCOT2E_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct ascot2e_config(9) πŸ’œ

okay bestie, welcome to the Kernel API Manual ✨ β€” this is the page for struct ascot2e_config, and it's literally the entire configuration vibe of the Ascot2E tuner driver. no cap, that's the whole thing. let's get into it 🫢


🌸 NAME 🌸

struct ascot2e_config β€” the configuration of Ascot2E tuner driver πŸ‘‘

like, THE config struct. the one that tells the Ascot2E tuner driver how to be itself. main character energy fr fr πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ascot2e_config {
    u8 i2c_address;
    u8 xtal_freq_mhz;
    void *set_tuner_priv;
    int (*set_tuner_callback)(void *, int);
 };

look at her. four fields. absolutely iconic. every single one matters, so let's go through them πŸ’–


πŸŽ€ Members πŸŽ€

  • i2c_address β€” the I2C address of the tuner 🎯 that's where you find her on the bus, iykyk.
  • xtal_freq_mhz β€” the oscillator frequency, in MHz ⏰ (yes the field name says mhz, yes it's MHz, we stay consistent with the code bestie).
  • set_tuner_priv β€” the private context for the callback function πŸ™ˆ aka the lil bag of stuff that gets handed to the callback so it knows what's up.
  • set_tuner_callback β€” the callback function that notifies the parent driver which tuner is active right now πŸ“£ it's int (*)(void *, int) and honestly? she's the messenger of the whole struct. the way that she just tells the parent driver the truth. slay.

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/media/dvb-frontends/ascot2e.h πŸ“‚
  • ascot2e_attach(9) β€” go read this one next, bestie, it's the whole point πŸ‘€

⭐ friendly reminder: those paths and the function name are exactly as written β€” don't go typo-ing them, the kernel will not be forgiving πŸ’€

okay that's the page!! mwah πŸ’‹ this gem is from ./drivers/media/dvb-frontends, dated October 2026 🌈 β€” go forth and configure your tuner, queen πŸ‘‘πŸ’–

πŸ“¦ where this page comes from