stmmac_of_get_mac_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

stmmac_of_get_mac_mode β€” bestie, this one retrieves the interface of the MAC πŸ’…

(welcome to the Kernel API Manual, you're gonna slay here fr fr)


🌸 SYNOPSIS 🌸

int stmmac_of_get_mac_mode (struct device_node *np );

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” the device-tree node, aka the actual source of truth we're reading from 🫢
    • device-tree node

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: it's basically the spiritual sibling of of_get_phy_mode, except this one's pulling the interface mode on the MAC side straight out of the device-tree 🌈

And lowkey the important assumption here β€” the way it's written, it assumes there's a mode converter in-between the MAC & PHY (think GMII-to-RGMII kinda situation, iykyk) πŸ”₯ So yes, that's the whole vibe check: converter in the middle, mode read off the MAC side, iconic behavior, no notes πŸ’–


πŸ’… SEE ALSO πŸ’…

(go read all of them, they're literally the whole friend group πŸ‘‘)


Okay that's the page!! πŸ“ Signing off from the Kernel API Manual, source path ./drivers/net/ethernet/stmicro..., dated October 2026 β€” mwah, take care of yourself and your MAC modes πŸ’œπŸ¦‹πŸŽ€

πŸ“¦ where this page comes from