ufshcd_complete_dev_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME

ufshcd_complete_dev_init β€” checks device readiness. This page is from the Kernel API Manual, bestie, and it's the whole readiness-check situation for a UFS device. No cap.

✨ SYNOPSIS

int ufshcd_complete_dev_init (struct ufs_hba *hba );

🫢 ARGUMENTS

  • hba β€” the per-adapter instance, aka one adapter's own little universe.

🌸 DESCRIPTION

Okay so here's the tea β˜•: it sets the fDeviceInit flag and then polls until the device toggles it. That's the move. It's giving "are we ready or not" energy, and it will keep checking.

πŸŽ€ RETURN

  • 0 β€” success, yay ✨.
  • > 0 β€” the UFS device reported an OCS error 😭.
  • < 0 β€” another error occurred, boo πŸ’€.

πŸ¦‹ SEE ALSO

All the cross-refs, bestie β€” every single one is right here:


And that's the page, bestie πŸ’…: source/version home is ./drivers/ufs/core, dated October 2026, and the function is ufshcd_complete_dev_init(9). Periodt 🫢

πŸ“¦ where this page comes from