cppi5_hdesc_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cppi5_hdesc_init β€” a Kernel API Manual moment ✨

okay so bestie, welcome to the glow-up of cppi5_hdesc_init(9) from the Kernel API Manual β€” this is the little guy that sets up the size of a Host Packet Descriptor, and honestly? she's lowkey iconic. let's get into it πŸŽ€


✨ NAME ✨

cppi5_hdesc_init β€” Init Host Packet Descriptor size πŸ¦‹


🌸 SYNOPSIS 🌸

void cppi5_hdesc_init (struct cppi5_host_desc_t *desc , u32 flags , u32
psdata_size );

that's the whole vibe check right there, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • desc β€” the Host packet descriptor, your main character πŸ’–
  • flags β€” the supported values are CPPI5_INFO0_HDESC_EPIB_PRESENT and CPPI5_INFO0_HDESC_PSINFO_LOCATION, pick your fighters 🫢
  • psdata_size β€” the PSDATA size, periodt ✨

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea: you get back the required Host Packet Descriptor size, and that's 0 β€” zero, nada, the whole thing β€” if PSDATA > CPPI5_INFO0_HDESC_PSDATA_MAX_SIZE. the way that max size is literally the line you do not cross 😭

fr fr, clock that 0 return β€” it's giving "too much PSDATA, bestie" and it is not a drill πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

It's all in the Kernel file ./include/linux/dma/ti-cppi5.h, and the whole friend group is here:

like, that's the entire group chat and they all ate πŸ’…πŸ‘‘


okayyy that's the page πŸŽ€ this gem lives in ./include/linux/dma, and the version stamp is October 2026 β€” so jot that down, bestie, and go init some descriptors πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from