STRUCT RTL2832_PLATFORM_DATA(9)
β¨ struct rtl2832_platform_data(9) β¨
okay bestie, so this is a page straight out of the Kernel API Manual β yes, that Kernel API Manual β and today's main character is struct rtl2832_platform_data, aka the platform data for the rtl2832 driver. it's giving "little struct, big responsibilities" and honestly? we're obsessed. π
πΈ NAME πΈ
struct rtl2832_platform_data β Platform data for the rtl2832 driver
like, that's literally her job description. no notes. π
π¦ SYNOPSIS π¦
here's the whole glow-up, laid out exactly as it lives in the header:
struct rtl2832_platform_data {
u32 clk;
#define RTL2832_TUNER_FC2580 0x21;
#define RTL2832_TUNER_TUA9001 0x24;
#define RTL2832_TUNER_FC0012 0x26;
#define RTL2832_TUNER_E4000 0x27;
#define RTL2832_TUNER_FC0013 0x29;
#define RTL2832_TUNER_R820T 0x2a;
#define RTL2832_TUNER_R828D 0x2b;
#define RTL2832_TUNER_SI2157 0x2c;
u8 tuner;
struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *);
int (*slave_ts_ctrl)(struct i2c_client *, bool);
int (*pid_filter)(struct dvb_frontend *, u8, u16, int);
int (*pid_filter_ctrl)(struct dvb_frontend *, int);
};
look at all those function pointers. so many little callbacks holding hands. π«Ά
π Members π
clkβ the clock frequency, and she's got a whole vibe check of options:4000000,16000000,25000000,28800000. pick your girl, they're all valid. βtunerβ which tuner model is actually being used. (the#defines up top are the guest list:RTL2832_TUNER_FC25800x21,RTL2832_TUNER_TUA90010x24,RTL2832_TUNER_FC00120x26,RTL2832_TUNER_E40000x27,RTL2832_TUNER_FC00130x29,RTL2832_TUNER_R820T0x2a,RTL2832_TUNER_R828D0x2b,RTL2832_TUNER_SI21570x2c.) π₯get_dvb_frontendβ Get DVB frontend. that's it, that's the whole job, and she does it flawlessly. β¨get_i2c_adapterβ Get I2C adapter. go get that adapter bestie we believe in you. πslave_ts_ctrlβ Control slave TS interface. control it!! lowkey main character energy honestly. πpid_filterβ Set PID to PID filter. very specific, very demure. πpid_filter_ctrlβ Control PID filter. the sequel to the previous one and it ate. π
π§ SEE ALSO π§
- Kernel file
./drivers/media/dvb-frontends/rtl2832.hβ go read it, iykyk π
ngl if you need the real source of truth, it's that header file up there. no cap. π¦
okay that's the whole page, bestie!! this one came from ./drivers/media/dvb-frontends, dated October 2026, and it's titled struct rtl28...latform_data(9) in the index (the truncation is serving mysterious icon energy, we don't question it). stay slaying, go read your headers, mwah ππΈβ¨
π¦ 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