netdev2pinfo(9)
π netdev2pinfo(9) π
okay so bestie, this page is from the Kernel API Manual, and the whole vibe is βget the port_info that goes with a net_device.β thatβs it. thatβs the assignment. π
π NAME π
netdev2pinfo β return the port_info structure associated with a net_device π¦
πΈ SYNOPSIS πΈ
struct port_info * netdev2pinfo (const struct net_device *dev );
π¦ ARGUMENTS π¦
devβ the netdev. literally the one and only argument, bestie π«Ά
β¨ DESCRIPTION β¨
okay so netdev2pinfo returns the struct port_info associated with a net_device. no cap, thatβs the whole description. itβs giving βshort and iconic.β π
β¨
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/chelsio/cxgb4vf/adapter.hπ 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),adap2pinfo(9),netdev2adap(9)π
mwah π source/version: ./drivers/net/ethernet/chelsio... Β· date: October 2026 Β· netdev2pinfo(9) out π
π¦ 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