STRUCT MODCTRL_MATCH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

struct modctrl_match(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this one is all about struct modctrl_match, aka the matching table entry for convctrl configuration. fr fr, also peep section 8.2.1 of the manual if you want the full lore. πŸ¦‹


πŸŽ€ NAME πŸŽ€

struct modctrl_match β€” matching table entry for convctrl configuration. See section 8.2.1 of manual. ✨


🌸 SYNOPSIS 🌸

struct modctrl_match {
    u32 mode_cfg;
    u8 conv[MIIC_MODCTRL_CONF_CONV_MAX];
};

🧚 Members 🧚

  • mode_cfg β€” the configuration value for convctrl. that's her whole job, and she ate. πŸ’–
  • conv β€” configuration of ethernet port muxes. First index is SWITCH_PORTIN, then index 1 - 5 are CONV1 - CONV5 for RZ/N1 SoCs. In case of RZ/T2H and RZ/N2H SoCs, the first index is SWITCH_PORTIN then index 0 - 3 are CONV0 - CONV3. lowkey important to get those indices right, no cap. 🫢

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/net/pcs/pcs-rzn1-miic.c
  • struct miic_phy_link_cfg(9)
  • struct miic(9)
  • struct miic_of_data(9)
  • struct miic_port(9)

like, go read the whole friend group if you're curious. iykyk. πŸ‘‘


mwah πŸ’‹ β€” source path ./drivers/net/pcs, dated October 2026. xoxo, your kernel bestie, signing off πŸŽ€βœ¨

πŸ“¦ where this page comes from