realtek_smi_remove(9)
π 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β theplatform_deviceto 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:
- first it unregisters the DSA switch π
- 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
- 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