devlink_port_init(9)
β¨ NAME β¨
devlink_port_init β Init devlink port. This is the devlink_port_init(9) page from the Kernel API Manual, bestie π
πΈ SYNOPSIS πΈ
void devlink_port_init (struct devlink *devlink , struct devlink_port
*devlink_port );
π ARGUMENTS π
devlinkβ devlink. That's the one, bestie π«Άdevlink_portβ devlink port. Yep, the port vibe π
π DESCRIPTION π
Okay so this function initializes the essential stuff that is needed for functions that may be called before devlink port registration. Iconic little setup moment, no cap β¨
π«Ά Optional alert: calling this function is optional, and it's not needed in case the driver does not use such functions. So if that's not your driver's situation, you can literally skip it π
π¦ SEE ALSO π¦
Kernel file ./net/devlink/port.c is right there, and the whole squad is:
devlink_port_fini(9)devl_port_register_with_ops(9)devlink_port_register_with_ops(9)devl_port_unregister(9)devlink_port_unregister(9)devlink_port_type_eth_set(9)devlink_port_type_ib_set(9)devlink_port_type_clear(9)devlink_port_attrs_set(9)devlink_port_attrs_pci_pf_set(9)devlink_port_attrs_pci_vf_set(9)devlink_port_attrs_pci_sf_set(9)devl_port_fn_devlink_set(9)devlink_port_linecard_set(9)
Cute little sign-off: this page's source/version is ./net/devlink, dated October 2026, and it's still serving devlink_port_init(9) realness ππ
π¦ 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