ufshcd_memory_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ufshcd_memory_alloc(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the Kernel API Manual entry for ufshcd_memory_alloc(9) β€” this is the one that gets all the host memory space data structures set up. slay. ✨

✨ NAME ✨

ufshcd_memory_alloc β€” allocate memory for host memory space data structures 🫢

🌸 SYNOPSIS 🌸

int ufshcd_memory_alloc (struct ufs_hba *hba );

🫢 ARGUMENTS 🫢

  • hba β€” per adapter instance πŸ’…

πŸ’… DESCRIPTION πŸ’…

  1. Allocate DMA memory for the Command Descriptor array β€” each command descriptor consists of Command UPIU, Response UPIU, and PRDT πŸ”₯
  2. Allocate DMA memory for the UTP Transfer Request Descriptor List (UTRDL) πŸ’–
  3. Allocate DMA memory for the UTP Task Management Request Descriptor List (UTMRDL) πŸŽ€
  4. Allocate memory for the local reference block (lrb) 🌸

πŸ”₯ RETURN πŸ”₯

0 for success, non-zero in case of failure. That’s the whole return story, bestie β€” no secret bonus values hiding in here 😌

πŸ‘€ SEE ALSO πŸ‘€

Kernel file: ./drivers/ufs/core/ufshcd.c πŸ“

cute sign-off bestie: this page is from ./drivers/ufs/core, October 2026 edition, for ufshcd_memory_alloc(9) β€” byeeee 🫢✨

πŸ“¦ where this page comes from