t4_init_portinfo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is t4_init_portinfo(9) from the Kernel API Manual πŸ’– and the whole assignment is: allocate a virtual interface and initialize port_info. no cap, that's literally the name and the game.


🌸 SYNOPSIS 🌸

int t4_init_portinfo (struct port_info *pi , int mbox , int port , int
pf , int vf , u8 mac[] );

πŸŽ€ ARGUMENTS πŸŽ€

  • pi β€” the port_info. yes queen, the actual struct.
  • mbox β€” the mailbox to use for the FW command.
  • port β€” the physical port associated with the VI.
  • pf β€” the PF owning the VI.
  • vf β€” the VF owning the VI.
  • mac β€” the MAC address of the VI.

πŸ’… DESCRIPTION πŸ’…

so this function allocates a virtual interface for the given physical port. literally that's the main character move ✨.

if mac is not NULL, it contains the MAC address of the VI as assigned by FW. also, mac should be large enough to hold an Ethernet address β€” don't be out here giving it a tiny little buffer, bestie 😭.

it returns < 0 on error. periodt.

πŸ¦‹ SEE ALSO πŸ¦‹


okay that's the whole page πŸ’… source/version tea: this one lives with the kernel source at ./drivers/net/ethernet/chelsio..., and the date on it is October 2026 β€” t4_init_portinfo(9) signing off 🫢

πŸ“¦ where this page comes from