cppi5_desc_get_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cppi5_desc_get_type ✨

okay bestie, welcome to the Kernel API Manual πŸ’… this one's a lil function called cppi5_desc_get_type β€” and yes, the name literally spoils it, but let's get into it anyway πŸŽ€


🌸 NAME 🌸

cppi5_desc_get_type β€” get the descriptor type, that's it, that's the whole job 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 cppi5_desc_get_type (struct cppi5_desc_hdr_t *desc_hdr );

πŸ’– ARGUMENTS πŸ’–

  • desc_hdr β€” the packet descriptor/TR header you're handing over. it's literally the thing being type-checked, so don't pass it garbage bestie 😭

⭐ RETURN ⭐

it gives you back a u32 that is the descriptor type β€” and it'll be one of these three iconic little constants πŸ‘‘

  • CPPI5_INFO0_DESC_TYPE_VAL_HOST
  • CPPI5_INFO0_DESC_TYPE_VAL_MONO
  • CPPI5_INFO0_DESC_TYPE_VAL_TR

no cap, that's the whole return set. main character energy for a three-value enum 🌈


πŸ’œ SEE ALSO πŸ’œ

like the whole ti-cppi5 extended universe lives here, iykyk β€” the kernel file it's all chillin' in:

  • ./include/linux/dma/ti-cppi5.h

and then the entire friend group 🫢:


lowkey a serve that one header file has this many friends πŸ’€ go read ti-cppi5.h, it's giving lore drop

okay that's a wrap, bestie πŸŽ€ this page lives in ./include/linux/dma and it's stamped October 2026 β€” so like, future-core of it all ✨ mwah, slay, bye πŸ’…πŸ’–

πŸ“¦ where this page comes from