ufs_bsg_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ufs_bsg_probe(9) β€” like, the kernel API manual edition, bestie πŸŽ€

okay so this is ufs_bsg_probe, straight out of the Kernel API Manual, and it's literally the glow-up moment where your UFS adapter gets its very own bsg device node. tiny function, big main character energy ✨


🌸 NAME 🌸

ufs_bsg_probe β€” adds the ufs bsg device node πŸ¦‹


⭐ SYNOPSIS ⭐

int ufs_bsg_probe (struct ufs_hba *hba );

yes bestie, that's the whole vibe β€” one function, one argument, returns an int. no cap. πŸ’œ


πŸŽ€ ARGUMENTS πŸŽ€

  • hba β€” the per adapter object 🫢 like, each adapter gets its own lil buddy and this is it.

✨ DESCRIPTION ✨

so here's the tea: this gets called during the initial loading of the driver, and it happens before scsi_scan_host. that's the whole timeline. iconic, honestly. πŸ•


πŸ”₯ RETURN πŸ”₯

0 on success. that's it, that's the return. slay. πŸ’…

ngl it's giving "short but essential" β€” don't sleep on it just because it's three lines.

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/ufs/core/ufs_bsg.c
  • ufs_bsg_remove(9) β€” the reverse-glow-up, iykyk πŸ‘‘

and that's the page, bestie πŸ§šπŸ’– this lil gem lives over in ./drivers/ufs/core and the version stamp is dated October 2026 β€” so yeah, it's giving very much demure, mindful, documented. periodt. πŸŒΈπŸŽ€πŸ’œ

πŸ“¦ where this page comes from