devlink_port_type_clear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ’–


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