STRUCT RTL8366RB(9)
π struct rtl8366rb(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for struct rtl8366rb, and it's literally just the little data blob where the RTL8366RB driver keeps all its RTL8366RB-specific stuff. that's the whole vibe. let's get into it π«Ά
πΈ NAME πΈ
struct rtl8366rb β RTL8366RB-specific data π
like, specifically RTL8366RB. not RTL8366. not RTL8369. don't @ me π
β¨ SYNOPSIS β¨
struct rtl8366rb {
unsigned int max_mtu[RTL8366RB_NUM_PORTS];
bool pvid_enabled[RTL8366RB_NUM_PORTS];
#if IS_ENABLED(CONFIG_NET_DSA_REALTEK_RTL8366RB_LEDS);
struct rtl8366rb_led
leds[RTL8366RB_NUM_PORTS][RTL8366RB_NUM_LEDGROUPS];
#endif;
};
yes the #endif; has a semicolon on it. no we're not going to talk about it. it's iconic. periodt π
π Members π
max_mtuβ the per-port max MTU setting π like, every single port gets its own entry inmax_mtu[RTL8366RB_NUM_PORTS], one max-MTU value each. no cap.pvid_enabledβ tells you if PVID is set for the respective port π oneboolper port inpvid_enabled[RTL8366RB_NUM_PORTS], so you can check who's got their PVID situation going on and who doesn't. lowkey useful.ledsβ the per-port and per-ledgroup LED info π¦ that'sleds[RTL8366RB_NUM_PORTS][RTL8366RB_NUM_LEDGROUPS], a whole 2D grid ofstruct rtl8366rb_ledβ port on one axis, LED group on the other. main character energy fr fr. β
heads up bestie:ledsonly exists whenCONFIG_NET_DSA_REALTEK_RTL8366RB_LEDSis enabled. that whole member is wrapped in the#if, so if the config isn't on, it's justβ¦ not there. vibe check failed for LED girlies π
π₯ SEE ALSO π₯
- Kernel file
./drivers/net/dsa/realtek/rtl8366rb.hβ go read the actual header, iykyk π
π okay that's the whole page, you ate that. source/version line says ./drivers/net/dsa/realtek, dated October 2026 β so yeah, future-coded of them. mwah, bye 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