devlink_port_type_clear(9)
π« devlink_port_type_clear(9) π«
okay so bestie, welcome to the Kernel API Manual β this one's a short lil function page but she's got OPINIONS. let's get into it π
β¨ NAME β¨
devlink_port_type_clear β clears the port type, that's the whole gig π
π¦ SYNOPSIS π¦
void devlink_port_type_clear (struct devlink_port *devlink_port );
like, it returns nothing (void), it takes one thing, and it's done. no notes, she's efficient π₯
πΈ ARGUMENTS πΈ
devlink_portβ the devlink port in question. that's it. that's the arg. π«Ά
π DESCRIPTION π
okay so here's the tea:
If a driver is calling this to clear the Ethernet type, it's most likely doing something wrong. π
not me side-eyeing your driver code rn π fr fr, if you're reaching for devlink_port_type_clear on an Ethernet type, the kernel is basically looking at you like π β that's the warning, and it's real. take the hint, bestie.
π§ SEE ALSO π§
all the siblings and cousins live in the Kernel file ./net/devlink/port.c β go say hi to the whole fam π
devlink_port_init(9)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_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)
and that's the page!! π mwah π
sign-off time, and no i'm not skipping it: this lil icon comes from ./net/devlink and the date on the vibes is October 2026. literally a time capsule β go forth and clear your port types responsibly πβ¨
π¦ 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