realtek_smi_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… realtek_smi_remove β€” like, the kernel API manual bestie edition ✨

okay so you're looking at the realtek_smi_remove(9) page, and honestly? it's a short one, but it eats. this is the kernel API manual and we're about to make it make sense 🫢


🌸 NAME 🌸

realtek_smi_remove β€” remove the driver of a SMI-connected switch 🧚

like, the whole vibe of this function is "okay we're done here, pack it up" and it does that job flawlessly no cap πŸ’…


✨ SYNOPSIS ✨

void realtek_smi_remove (struct platform_device *pdev );

that's it. that's the whole signature. one argument, returns nothing, iconic behaviour tbh πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” the platform_device to be removed. yes bestie, that one, the one you're yeeting out of existence πŸ—‘οΈβœ¨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• this function is meant to be used as the .remove in a platform_driver β€” like its whole designated role in life, its main character moment 🌟

and what does it actually do? two things, in this exact order, and the order matters:

  1. first it unregisters the DSA switch πŸŽ€
  2. then it calls the common remove function πŸ’«

that's the whole flow. first one, then the other. no skipping, no reordering, we respect the sequence in this house 🫢


πŸ’œ CONTEXT πŸ’œ

can sleep 😴 β€” meaning yes, this one is allowed to nap, it's not one of those "you must not sleep here" situations, so go off, take your time, it's giving cozy 🌈


⭐ RETURN ⭐

nothing. literally nothing. it returns void. no value, no drama, just vibes and a job well done πŸ’€βœ¨


πŸ”₯ SEE ALSO πŸ”₯

  • kernel file ./drivers/net/dsa/realtek/realtek-smi.c β€” the source, go read it iykyk πŸ“–
  • realtek_smi_probe(9) β€” the other half of the story, the beginning of the arc 🌱
  • realtek_smi_shutdown(9) β€” different function, similar energy, go check it πŸ‘€

and that's the page!! πŸ’– this little beauty lives in ./drivers/net/dsa/realtek, dropped in October 2026 β€” so mark your calendar bestie, and remember: it unregisters the DSA switch, then calls the common remove function. periodt. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from