adap2pinfo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… adap2pinfo β€” the Kernel API Manual girlies know

okay so bestie, we're in the Kernel API Manual today and the star of the show is adap2pinfo(9) β€” literally the little function that hands you the port_info of a port. no cap, that's the whole vibe. πŸ¦‹


✨ NAME ✨

adap2pinfo β€” return the port_info of a port πŸŽ€


🌸 SYNOPSIS 🌸

struct port_info * adap2pinfo (struct adapter *adapter , int pidx );

like, that's it. that's the whole signature. she's compact, she's iconic. ✨


πŸ’– ARGUMENTS πŸ’–

  • adapter β€” ngl the manpage literally says -- undescribed -- 😭 so like, we know it's an struct adapter * and that's what we've got. it's giving mysterious main character energy. πŸ™ˆ
  • pidx β€” the port index πŸ”₯ like, which port you're asking about bestie.

🫢 DESCRIPTION 🫢

Return the port_info structure for the adapter. periodt. πŸ’…

you give her an adapter (and a port index, see above), she gives you back the struct port_info * β€” the whole point of the function, no notes, lowkey perfect. πŸ‘‘


🌈 SEE ALSO 🌈

all the sibling functions, the whole friend group, obsessed with them honestly πŸ§šπŸ’œ


fr fr: this is kernel API territory, so make sure you're actually reading the header before you go poking at things β€” ./drivers/net/ethernet/chelsio/cxgb4vf/adapter.h is right there bestie πŸ’€

and that's the page!! brought to you by the source/version from ./drivers/net/ethernet/chelsio... dated October 2026 ⭐ β€” slay, see you in the next manpage, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from