nfp_eth_set_mod_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfp_eth_set_mod_enable(9) β€” Kernel API Manual

okay so bestie, welcome to the nfp_eth_set_mod_enable page ✨ this one lives in the Kernel API Manual and honestly? it's giving "small function, big job" energy πŸ’–


🌸 NAME 🌸

nfp_eth_set_mod_enable β€” set the PHY module enable control bit πŸŽ€

✨ SYNOPSIS ✨

int nfp_eth_set_mod_enable (struct nfp_cpp *cpp , unsigned int idx ,
       bool enable );

like, that's the whole signature, no cap 🫢

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cpp β€” the NFP CPP handle, your main character pointer fr πŸ’…
  • idx β€” the NFP chip-wide port index, so we know which port we're talking about πŸ”₯
  • enable β€” the desired state, literally just "do you want it on or not" πŸ‘‘

πŸ’€ DESCRIPTION πŸ’€

Enable or disable the PHY module πŸ’œ and yes, in case you were wondering, this usually means setting the TX lanes disable bits β€” that's the vibe, that's the whole bit, iykyk 🌈

⭐ RETURN ⭐

  • 0 β€” configuration successful, we ate and left no crumbs πŸ‘‘
  • 1 β€” no changes were needed, lowkey nothing to do πŸ™ˆ
  • -ERRNO β€” configuration failed, and the errno tells you why 😭

🧚 SEE ALSO 🧚

Kernel file ./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c β€” the source, the mothership, go read it bestie πŸ“–

and the whole friend group of related functions:


πŸŽ€ that's the whole page, bestie β€” every argument, every return value, every single SEE ALSO reference, all of it. no cap. πŸŽ€

and a cute lil sign-off: this one's sourced from ./drivers/net/ethernet/netrono... and dated October 2026 β€” slay, iconic, periodt πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from