lan78xx_mac_eee_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lan78xx_mac_eee_enable πŸ’–

okay so bestie, welcome to the lan78xx_mac_eee_enable(9) page β€” it's a kernel API manual entry, and honestly? it's giving "small function, big job." Let's get into it 🫢


✨ NAME ✨

lan78xx_mac_eee_enable β€” literally the function that turns MAC-side EEE support on or off. That's it, that's the whole vibe 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

int lan78xx_mac_eee_enable (struct lan78xx_net *dev , bool enable );

no cap, that's the whole signature β€” copy it exactly, don't be cute with it πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” your LAN78xx device, the main character of this whole operation πŸ‘‘
  • enable β€” pass true to enable EEE, or false to disable it. yes queen, you're the one in charge here ⭐

πŸ’œ DESCRIPTION πŸ’œ

So what does this actually do? It sets or clears the MAC_CR_EEE_EN_ bit, and that bit is what controls Energy Efficient Ethernet (EEE) operation πŸ’–

And here's the lowkey interesting part: according to the current understanding of the LAN7800 documentation, this bit can be modified while TX and RX are enabled. Like, you don't have to shut everything down first. And ngl, no explicit requirement was found to disable the data paths before changing this bit β€” so fr fr, that's where things stand based on what's documented right now πŸ¦‹

just to be clear bestie β€” this is "according to current understanding" of the docs, and "no explicit requirement was found." it's not a promise that nothing can ever go weird, it's just what the documentation says πŸ’€

πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸ’š
  • a negative error code if it doesn't slay 😭

🌈 SEE ALSO 🌈

the kernel file ./drivers/net/usb/lan78xx.c and these iconic siblings:


and that's the page, bestie!! this one lives in ./drivers/net/usb, dated October 2026 β€” go off, read the source, and remember: the bit is MAC_CR_EEE_EN_ and you're the one flipping it πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from