STRUCT RTL8365MB(9)
π struct rtl8365mb(9) β the Kernel API Manual moment π
okay so this is from the Kernel API Manual, and bestie, it's literally the driver private data page. let's get into it β¨
πΈ NAME πΈ
struct rtl8365mb β driver private data. that's it, that's the whole vibe. private. data. for the driver. π
π¦ SYNOPSIS π¦
struct rtl8365mb {
struct realtek_priv *priv;
int irq;
const struct rtl8365mb_chip_info *chip_info;
struct rtl8365mb_cpu cpu;
struct mutex mib_lock;
struct rtl8365mb_port ports[RTL8365MB_MAX_NUM_PORTS];
struct phylink_pcs pcs;
bool sds_supported;
};
like, look at her. she's got everything. π
β¨ Members β¨
privβ pointer to the parentrealtek_privdata. her parent, her roots, her whole lineage π«Άirqβ the registered IRQ, or zero. that's the whole range, no notes πchip_infoβ chip-specific info about the attached switch. it's giving "which chip are we even dealing with" energy π₯cpuβ CPU tagging and CPU port configuration for this chip. very main character, very CPU πmib_lockβ a mutex that prevents concurrent reads of MIB counters. no two besties reading the counters at the same time, periodt πportsβ per-port data. one for every port, no cap π§pcsβ the PCS for the SerDes external interface. external interface, external slay βsds_supportedβ SerDes tuning parameters match the chip option, so the SerDes interface modes can be advertised. literally the green light for advertising those modes β¨
π Description π
Private data for this driver. short, sweet, iconic. that's the whole description and honestly? she ate. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/dsa/realtek/rtl8365mb_main.c enum rtl8365mb_vlan_egress_mode(9)struct rtl8365mb_extint(9)struct rtl8365mb_chip_info(9)struct rtl8365mb_cpu(9)struct rtl8365mb_port(9)
go read them, iykyk ππ
ngl bestie, if you ever forget what struct rtl8365mb is holding, just remember: priv, irq, chip_info, cpu, mib_lock, ports, pcs, sds_supported. eight little members, one big vibe check. π
k bye ily, this page came from ./drivers/net/dsa/realtek, dated October 2026, and it's literally titled struct rtl8365mb(9) β okurrr see you in the next manpage, 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