__ufshcd_send_uic_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __ufshcd_send_uic_cmd(9) β€” the Kernel API Manual glow-up

okay so bestie, we're in the Linux kernel API manual (yes, the (9) section, that's the kernel-internals one, iykyk), and today's main character is __ufshcd_send_uic_cmd. the double underscore is not a typo, it's giving "internal, don't @ me" ✨


🌸 NAME 🌸

__ufshcd_send_uic_cmd β€” Send UIC commands and retrieve the result πŸ’Œ

like, it sends the UIC commands and it brings back what happened. a full round trip. an icon. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int __ufshcd_send_uic_cmd (struct ufs_hba *hba , struct uic_command
*uic_cmd );

that's it. that's the whole call. two pointers in, one int out. no cap. πŸ”₯


πŸ‘‘ ARGUMENTS πŸ‘‘

  • hba β€” the per adapter instance πŸ’œ literally the UFS host bus adapter you're working with, your one and only.
  • uic_cmd β€” the UIC command 🌈 the actual command struct you're yeeting at it.

⭐ RETURN ⭐

0 if successful; < 0 upon failure.

so like β€” zero is the slay outcome πŸŽ‰ and anything negative means it did not, in fact, slay 😭. that's the whole vibe check, bestie.


🧚 SEE ALSO 🧚

okay this list is long long, but every single one of these is a real one and we are not skipping a single name, periodt. πŸ’… the whole thing lives in the kernel file ./drivers/ufs/core/ufshcd.c, and here's the entire crew (yes, all of them, fr fr):

ok bestie real talk: that's the whole list, every last one, no cuts, no "etc." β€” because there is no "etc." in a manpage πŸ’€ read them, love them, they're family.

🫢 the cute sign-off 🫢

this masterpiece of a page comes to you straight from ./drivers/ufs/core, dated October 2026, and it is and forever will be __ufshcd_send_uic_cmd(9) πŸŽ€ go forth and send those UIC commands, bestie β€” and remember, 0 is the only acceptable result πŸ’–βœ¨

πŸ“¦ where this page comes from