realtek_smi_probe(9)
β¨ realtek_smi_probe(9) β¨
okay so bestie, this is a page straight out of the Kernel API Manual β like, the manual manual, realtek_smi_probe(9) energy. buckle up, it's giving driver-core realness π
πΈ NAME πΈ
realtek_smi_probe β probe a platform device for an SMI-connected switch π
π¦ SYNOPSIS π¦
int realtek_smi_probe (struct platform_device *pdev );
π ARGUMENTS π
pdevβ theplatform_deviceyou're probing on. that's the one, that's the main character π«Ά
β¨ DESCRIPTION β¨
okay so here's the vibe: this function is literally designed to be your .probe in a platform_driver. no cap.
the way it works is β first it calls the common probe function for both interfaces (yes, both, it's egalitarian like that π), and then it initializes the values that are specific to SMI-connected devices. after that little glow-up, it finally calls a common function to register the DSA switch. iconic behavior, honestly π₯
π§ CONTEXT π§
- can sleep π΄ (it's allowed, it's fine, let it nap)
- it takes and releases
priv->map_lockπ
π RETURN π
Returns 0 on success π β and a negative error on failure π (as is tradition).
π SEE ALSO π
- Kernel file
./drivers/net/dsa/realtek/realtek-smi.c realtek_smi_remove(9)realtek_smi_shutdown(9)
and that's the whole page, bestie β periodt π β¨
this cutie lives in ./drivers/net/dsa/realtek, dated October 2026, and yes the page is still literally called realtek_smi_probe(9) β iykyk ππΈ
π¦ 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