ufshcd_prepare_req_desc_hdr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ufshcd_prepare_req_desc_hdr(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual β€” this one's a deep-cut UFS driver page and honestly? kind of iconic. it's a tiny little function that does one very specific thing and does it well. let's get into it πŸŽ€


✨ NAME ✨

ufshcd_prepare_req_desc_hdr β€” Fill UTP Transfer request descriptor header according to request descriptor according to request.

(yes, it says "according to request" twice. no, I'm not fixing it. it's the original wording, and honestly? it ate. periodt πŸ’…)


🌸 SYNOPSIS 🌸

void ufshcd_prepare_req_desc_hdr (struct ufs_hba *hba , struct
ufshcd_lrb *lrbp , u8 *upiu_flags , enum dma_data_direction cmd_dir ,
int ehs_length );

no return value, bestie β€” it's a void situation. it goes in, it does the thing, it leaves. main character energy fr fr πŸ¦‹


🫢 ARGUMENTS 🫢

  • hba β€” the per adapter instance. like, the one adapter we're living in right now, our whole world.
  • lrbp β€” pointer to the local reference block. she's the local girl, the LRB, the one holding the receipts. πŸ”₯
  • upiu_flags β€” flags required in the header. yes, it's a u8 *, yes it's picky, no we don't argue with her.
  • cmd_dir β€” the request's data direction. an enum dma_data_direction, so she's got options and she knows it. lowkey mysterious πŸ’œ
  • ehs_length β€” the Total EHS Length, measured in 32-byte units of all Extra Header Segments. that's the exact unit, don't be out here rounding, ngl πŸ™ˆ
quick vibe check: ehs_length is a count of 32-byte units, not a raw byte count. do not come for that unit, bestie, it will come for you. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

okay so this is the part where the manpage just,,,, lists the entire UFS driver like it's a group-chat roll call. buckle up. Kernel file ./drivers/ufs/core/ufshcd.c plus these absolute legends:

like,,,, that's the whole friend group. every single one. no gatekeeping here πŸ’–


and that's the page!! source/version + date energy for the sign-off: this lil beauty lives under ./drivers/ufs/core and is dated October 2026 β€” so she's future-proofed, she's timestamped, she's that girl. go fill those request descriptor headers bestie, slay πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from