ufshcd_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” this page is all about ufshcd_init, which is literally the Driver initialization routine πŸŽ€. like, the one that kicks everything off. no cap.


πŸ’… SYNOPSIS πŸ’…

int ufshcd_init (struct ufs_hba *hba , void __iomem *mmio_base ,
       unsigned int irq );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • hba β€” per-adapter instance 🌸. your one and only, the main character struct.
  • mmio_base β€” base register address πŸ’«. the memory-mapped I/O spot where the registers live.
  • irq β€” Interrupt line of device 🌈. it's giving "hey, something happened, look at me".

⭐ RETURN ⭐

0 on success; < 0 on failure πŸ’€. like... zero is the slay outcome, anything negative is not the vibe, bestie 😭.


πŸ”₯ SEE ALSO πŸ”₯

the source of all this wisdom: Kernel file ./drivers/ufs/core/ufshcd.c πŸ“Œ

and here's the full friend group β€” yes, all of them, i wasn't about to ghost anybody 🫢:


mwah πŸ’œ that's the whole page, bestie β€” go init that driver, you're gonna eat ✨

./drivers/ufs/core Β· October 2026 Β· that's the version and date, periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from