bnx2x_fcoe_get_wwn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bnx2x_fcoe_get_wwn β€” the Kernel API Manual, but make it make sense

okay so bestie, this one's from the Kernel API Manual and honestly it's a tiny little function that just wants to hand you a WWN. that's it. that's the whole vibe. it returns the requested WWN value for this port, and we're gonna go through it together, no cap πŸŽ€


✨ NAME ✨

bnx2x_fcoe_get_wwn β€” return the requested WWN value for this port

like, you ask it for a WWN, it gives you the WWN. iconic behavior honestly πŸ¦‹


🌸 SYNOPSIS 🌸

int bnx2x_fcoe_get_wwn (struct net_device *dev , u64 *wwn , int type );

three things go in, an int comes out. it's giving very "simple function, minding its own business" ✨


πŸ’– ARGUMENTS πŸ’–

  • dev β€” net_device. yes, that's the entire description. the docs said what they said, and what they said was "net_device." we love a low-effort king πŸ‘‘
  • wwn β€” output buffer. this is where the answer lands, so like… give it somewhere to live, bestie. it's an output, not an input, so don't go in expecting it to already have your answer in it πŸ™ˆ
  • type β€” WWN type: NETDEV_FCOE_WWNN (node) or NETDEV_FCOE_WWPN (port). so you're either asking for the node flavor or the port flavor. pick your fighter, there's only these two πŸ’…
lowkey the whole point: you say which kind of WWN you want (NETDEV_FCOE_WWNN for node, NETDEV_FCOE_WWPN for port) and this thing goes and gets it for you. that's the plot πŸ“

πŸ”₯ SEE ALSO πŸ”₯

first up, the source file itself lives at:

./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h

and then there's the whole extended friend group. yes, all of them. i'm not skipping a single one, bestie, we're doing the full roll call 😭🫢

that's the whole group chat. every single one of them. slay 🌈⭐


and that's the page, bestie!! πŸ’œ source on this one is ./drivers/net/ethernet/broadco... and it's dated October 2026 β€” so like, future-dated lore, we love that for us. go get your WWN, you've got this πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from