cxgb4_port_viid(9)
π cxgb4_port_viid β get the VI id of a port
okay so bestie, welcome to the Kernel API Manual β¨ this one is short and sweet and honestly kind of a little icon. it's cxgb4_port_viid, and it does exactly one (1) thing, and it does it flawlessly. no cap.
β¨ SYNOPSIS β¨
unsigned int cxgb4_port_viid (const struct net_device *dev );
that's it. that's the whole vibe. one function, one arg, returns an unsigned int. slay π
π«Ά ARGUMENTS π«Ά
devβ the net device for the port. literally just hand it thestruct net_device *for whichever port you're curious about and it's like "say less" π
π¦ DESCRIPTION π¦
okay so the whole entire job here: it returns the VI id of the given port. that's the description. that's the mission. it's giving "small function, big main character energy" π and honestly we love a single-responsibility queen.
no side quests, no surprises, no hidden behaviour β you give it a port, you get the VI id back. periodt. π
ngl the manpage is literally four lines long and I respect the confidence so much π
π SEE ALSO π
the kernel file lives right here, bestie:
./drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
and here's the whole friend group β go say hi π«Ά:
cxgb4_change_mac(9)cxgb4_write_rss(9)setup_rss(9)setup_sge_queues(9)cxgb4_set_rspq_intr_params(9)cxgb4_create_server(9)cxgb4_best_mtu(9)cxgb4_best_aligned_mtu(9)cxgb4_port_chan(9)cxgb4_port_e2cchan(9)cxgb4_port_idx(9)cxgb_up(9)
anyway that's the whole page, you ate that π it's from ./drivers/net/ethernet/chelsio... and it's dated October 2026 β so like, future energy, iykyk β π¦ see you in the next manpage bestie, 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