nfp_eth_set_mod_enable(9)
π 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:
nfp_eth_read_ports(9)nfp_eth_config_commit_end(9)nfp_eth_set_configured(9)__nfp_eth_set_aneg(9)__nfp_eth_set_fec(9)nfp_eth_set_fec(9)__nfp_eth_set_txpause(9)__nfp_eth_set_rxpause(9)nfp_eth_set_pauseparam(9)__nfp_eth_set_speed(9)__nfp_eth_set_split(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms