netdev2adap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… netdev2adap β€” the Kernel API Manual glow-up (section 9, bestie)

Okay so real talk, this one's a tiny little function but it's literally the glue holding your brain together when you're digging through the Chelsio driver. It's netdev2adap(9), and yes, the manual name is right there in the title because we're keeping it proper. πŸŽ€


✨ NAME ✨

netdev2adap β€” bestie, it returns the adapter structure that's associated with a net_device. That's the whole assignment. Simple, iconic, no notes. πŸ‘‘


🌸 SYNOPSIS 🌸

struct adapter * netdev2adap (const struct net_device *dev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the netdev. That's it, that's the argument. Hand it your net_device and we're cooking. πŸ“

πŸ’– DESCRIPTION πŸ’–

So what does it do, you ask? It returns the struct adapter associated with a net_device. One job, does it well. No cap. ✨


🌈 SEE ALSO 🌈

Fr fr, go read the whole squad, they all hang out together. 🫢


🧚 Quick reminder: this is a kernel-level type situation, so keep those const qualifiers exactly where they are. Respect the const. πŸ’…

That's the page! Sourced straight from ./drivers/net/ethernet/chelsio... and dated October 2026 β€” stay slaying out there, and may your adapters always be associated correctly. πŸ˜­πŸ’œπŸ”₯

πŸ“¦ where this page comes from