ufs_bsg_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ufs_bsg_remove(9) β€” the kernel API manual, but make it make sense

okay so bestie, welcome to ufs_bsg_remove(9) β€” yes that's the manual page name too, we're keeping it iconic like that ✨ this is the lil kernel API doc for the function that cleans up after everybody's favourite ufs-bsg node πŸŽ€


🌸 NAME 🌸

ufs_bsg_remove β€” detach and remove the added ufs-bsg node πŸ’«

like, the node is gone bestie, we're detaching it and removing it, that's the whole job 🫢


✨ SYNOPSIS ✨

void ufs_bsg_remove (struct ufs_hba *hba );

that's it. that's the whole signature. void in, void out, no return value, no drama πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hba β€” per adapter object 🌈 literally the per-adapter object, that's the vibe, that's what you're handing over

πŸ”₯ DESCRIPTION πŸ”₯

Should be called when unloading the driver.

no cap, that's the rule πŸ“Œ when you're unloading the driver, this is the function you call to tear down that ufs-bsg node you set up earlier. don't skip it, it's giving cleanup era 🧹✨


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/ufs/core/ufs_bsg.c β€” go read the source bestie, it's all there πŸ“–
  • ufs_bsg_probe(9) β€” the other half of the story, the setup to this teardown πŸ“

ngl, this one's a short page, but every word is doing its job. lowkey obsessed with how simple it is πŸ’–

and that's a wrap, bestie! πŸŽ€ this little page lives in ./drivers/ufs/core and it's dated October 2026, and yes we're still out here reading ufs_bsg_remove(9) in the year 2026, slay ⭐ bye pookie, go unload that driver responsibly πŸ’œ

πŸ“¦ where this page comes from