cppi5_hdesc_calc_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cppi5_hdesc_calc_size ✨

Okay bestie, so this one lives in the Kernel API Manual, section 9 β€” it's a kernel function, and honestly it's giving "small but mighty" πŸ’…


🌸 NAME 🌸

cppi5_hdesc_calc_size β€” Calculate Host Packet Descriptor size πŸŽ€


✨ SYNOPSIS ✨

u32 cppi5_hdesc_calc_size (bool epib , u32 psdata_size , u32
sw_data_size );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • epib β€” is EPIB present πŸ‘€
  • psdata_size β€” PSDATA size
  • sw_data_size β€” SWDATA size

πŸ’– RETURN πŸ’–

It gives you back the required Host Packet Descriptor size πŸ”₯ β€” but heads up, it returns 0 if PSDATA > CPPI5_INFO0_HDESC_PSDATA_MAX_SIZE πŸ’€ like, that's the "nope, too big" answer, no cap.

Fr fr, watch that 0 β€” it's not a size, it's the "your PSDATA exceeded the max" signal πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./include/linux/dma/ti-cppi5.h β€” and the whole squad, because apparently everyone's invited to this party πŸ’œ


Okay that's the whole page, bestie β€” you ate that 🫢 Source is ./include/linux/dma, dated October 2026, and this cutie is cppi5_hdesc_calc_size(9) β€” periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from