nfp_eth_set_configured(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfp_eth_set_configured(9) β€” the Kernel API Manual glow-up πŸ¦‹

okay so bestie, this is nfp_eth_set_configured from the Kernel API Manual and honestly it's giving "small function, big job" energy. it flips one (1) control bit and the whole PHY either shows up to the party or leaves the group chat. iconic.


✨ NAME ✨

nfp_eth_set_configured β€” sets that PHY module configured control bit, periodt πŸŽ€


🌸 SYNOPSIS 🌸

int nfp_eth_set_configured (struct nfp_cpp *cpp , unsigned int idx ,
       bool configed );

like literally that's the whole vibe. three args, one int back πŸ’–


🫢 ARGUMENTS 🫢

  • cpp β€” your NFP CPP handle. the main character of the parameter list ngl πŸ¦‹
  • idx β€” the NFP chip-wide port index. chip-wide, bestie, not per-something-else, don't come for me πŸ™ˆ
  • configed β€” the desired state, i.e. what you actually want it to be ⭐

πŸ’œ DESCRIPTION πŸ’œ

so what does it do? it sets the ifup/ifdown state on the PHY. that's it. that's the whole description. lowkey elegant, highkey important πŸ”₯

up = plugged in and thriving. down = not. the bit does the talking πŸ’…


πŸ”₯ RETURN πŸ”₯

here's the vibe check on the return values:

  • 0 β€” configuration successful, slay πŸŽ‰
  • 1 β€” no changes were needed, it was already that, so nothing happened (still valid, still ate) πŸ’€
  • -ERRNO β€” configuration failed 😭 and the errno tells you why
fr fr, do not ignore that negative return. -ERRNO means it did not work. that's not a vibe, that's a bug you gotta go fix 🚨

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, all linked, all valid 🌈✨


and that's the page!! πŸŽ€ source is ./drivers/net/ethernet/netrono... (yes it's cut off in the original, i'm not gonna invent the rest, that's a no from me πŸ™…β€β™€οΈ) and the date on this baddie is October 2026. go set your bits, bestie, and remember: 0 good, 1 fine, -ERRNO bad πŸ’–πŸ¦‹πŸ’…

πŸ“¦ where this page comes from