nfp_eth_read_ports(9)
β¨ nfp_eth_read_ports(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for nfp_eth_read_ports β yes that's the (9) section, we're in kernel-land now, put your seatbelt on π
π NAME π
nfp_eth_read_ports β retrieve port information π¦
like, it goes and gets the port info for you. that's the whole vibe.
πΈ SYNOPSIS πΈ
struct nfp_eth_table * nfp_eth_read_ports (struct nfp_cpp *cpp );
π§ ARGUMENTS π§
cppβ the NFP CPP handle π«Ά that's your lil ticket into the NFP CPP world, and this function needs it to do literally anything.
π DESCRIPTION π
So here's the tea β: this function reads the port information from the device. That's it. That's the job. It reads it, hands it back to you.
β οΈ important bestie: the returned structure should be freed withkfreeonce it's no longer needed. not "whenever", not "eh, the kernel will figure it out" βkfree, when you're done. no cap. π
β RETURN β
- a populated ETH table π₯ β slay, it worked
- or
NULLon error π β it did not work, that's the whole signal
π SEE ALSO π
Kernel file:
./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c
and the whole friend group π―ββοΈ β go say hi:
nfp_eth_config_commit_end(9)nfp_eth_set_mod_enable(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)
okay that's the page!! π mwah, go read your ports responsibly. and remember β this little cutie came out of ./drivers/net/ethernet/netrono... and it's dated October 2026, so it's fresh, it's iconic, it's giving main character energy π
β¨π¦π
π¦ 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