cppi5_desc_get_type(9)
β¨ 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_HOSTCPPI5_INFO0_DESC_TYPE_VAL_MONOCPPI5_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 π«Ά:
struct cppi5_desc_hdr_t(9)struct cppi5_host_desc_t(9)struct cppi5_desc_epib_t(9)struct cppi5_monolithic_desc_t(9)cppi5_desc_is_tdcm(9)cppi5_desc_get_errflags(9)cppi5_desc_get_pktids(9)cppi5_desc_set_pktids(9)cppi5_desc_set_retpolicy(9)cppi5_desc_get_tags_ids(9)cppi5_desc_set_tags_ids(9)cppi5_hdesc_calc_size(9)cppi5_hdesc_init(9)cppi5_hdesc_update_flags(9)cppi5_hdesc_update_psdata_size(9)cppi5_hdesc_get_psdata_size(9)cppi5_hdesc_get_pktlen(9)cppi5_hdesc_set_pktlen(9)cppi5_hdesc_get_psflags(9)cppi5_hdesc_set_psflags(9)cppi5_hdesc_get_pkttype(9)cppi5_hdesc_set_pkttype(9)cppi5_hdesc_attach_buf(9)cppi5_hdesc_link_hbdesc(9)cppi5_hdesc_epib_present(9)cppi5_hdesc_get_psdata(9)cppi5_hdesc_get_swdata(9)enum cppi5_tr_types(9)enum cppi5_tr_event_size(9)enum cppi5_tr_trigger(9)enum cppi5_tr_trigger_type(9)struct cppi5_tr_type0_t(9)struct cppi5_tr_type1_t(9)struct cppi5_tr_type2_t(9)struct cppi5_tr_type3_t(9)struct cppi5_tr_type15_t(9)struct cppi5_tr_resp_t(9)enum cppi5_tr_resp_status_type(9)enum cppi5_tr_resp_status_submission(9)enum cppi5_tr_resp_status_unsupported(9)cppi5_trdesc_calc_size(9)cppi5_trdesc_init(9)cppi5_tr_init(9)cppi5_tr_set_trigger(9)cppi5_tr_csf_set(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms