STRUCT RTL8366RB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 in max_mtu[RTL8366RB_NUM_PORTS], one max-MTU value each. no cap.
  • pvid_enabled β€” tells you if PVID is set for the respective port πŸ‘‘ one bool per port in pvid_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's leds[RTL8366RB_NUM_PORTS][RTL8366RB_NUM_LEDGROUPS], a whole 2D grid of struct rtl8366rb_led β€” port on one axis, LED group on the other. main character energy fr fr. ⭐
heads up bestie: leds only exists when CONFIG_NET_DSA_REALTEK_RTL8366RB_LEDS is 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