adap2pinfo(9)
π 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 anstruct 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 π
- Kernel file
./drivers/net/ethernet/chelsio/cxgb4vf/adapter.hπ (the header bestie, go look at it) t4_read_reg(9)t4_write_reg(9)t4_read_reg64(9)t4_write_reg64(9)port_name(9)t4_os_set_hw_addr(9)netdev2pinfo(9)netdev2adap(9)
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
- 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