nfp_eth_read_ports(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 with kfree once 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 NULL on 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:


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