cdns_ufs_pltfrm_remove(9)
π cdns_ufs_pltfrm_remove(9) β a Kernel API Manual moment
okay so bestie, we're in the Kernel API Manual, section 9, and today's main character is cdns_ufs_pltfrm_remove β the little function whose whole job is removing the ufs driver. that's it. that's the vibe. she cleans up and she leaves. iconic behaviour honestly π§Ήβ¨
πΈ NAME πΈ
cdns_ufs_pltfrm_remove β literally just removes the ufs driver. no cap, that's the entire assignment π«Ά
β¨ SYNOPSIS β¨
void cdns_ufs_pltfrm_remove (struct platform_device *pdev );
likeβ¦ she takes one (1) pointer and returns absolutely nothing. void queen. she gives nothing and takes pdev. π
π ARGUMENTS π
pdevβ pointer to the platform device handle π¦ that's the one thing she needs from you, bestie. hand her the handle and she's good.
β RETURN β
0 (success). π that's it. zero. the most unproblematic number. she ate and left no crumbs, and also no error codes.
π SEE ALSO π
if you're obsessed with this file (and honestly same), the kernel file lives at ./drivers/ufs/host/cdns-pltfrm.c β go read the whole thing, it's giving lore π
and here's the whole friend group, all in section 9:
cdns_ufs_get_l4_attr(9)cdns_ufs_set_l4_attr(9)cdns_ufs_set_hclkdiv(9)cdns_ufs_hce_enable_notify(9)cdns_ufs_hibern8_notify(9)cdns_ufs_link_startup_notify(9)cdns_ufs_init(9)cdns_ufs_m31_16nm_phy_initialization(9)cdns_ufs_pltfrm_probe(9)
her sister function cdns_ufs_pltfrm_probe(9) is the one who adds stuff, so likeβ¦ they're a matched set. probe and remove. balance. harmony. the ecosystem is thriving πΈ
aaaand that's the page!! mwah π this little writeup comes to you straight from ./drivers/ufs/host, dated October 2026 β see you in the next one, bestie, stay slaying those kernel docs π¦ππ
π¦ 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