dpdmai_get_tx_queue(9)
π dpdmai_get_tx_queue β Kernel API Manual, bestie edition
okay so this is a page from the Kernel API Manual, and it's all about dpdmai_get_tx_queue β yeah, the name is a mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
dpdmai_get_tx_queue β retrieve Tx queue attributes. that's it, that's the whole gig π it goes and fetches the attributes of a transmit queue for you, no cap.
πΈ SYNOPSIS πΈ
int dpdmai_get_tx_queue (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , u8 queue_idx , u8 priority , struct dpdmai_tx_queue_attr *attr
);
literally copy it exactly like that, spacing and all, because the synopsis is iconic and we don't touch it π
it returns an int, so yk it's gonna tell you how it went.
π¦ ARGUMENTS π¦
six of them, count 'em, and every single one matters:
mc_ioβ pointer to the MC portal's I/O object, so basically the little doorway your command goes through πͺ you gotta hand it over.cmd_flagsβ command flags, and they're one or more ofMC_CMD_FLAG_(yes, the trailing underscore is part of the vibe, keep it).tokenβ the token of the DPDMAI object ποΈ like your ticket that says "yes this object, right here."queue_idxβ the DMA queue index. just a lil number pointing at which queue you mean π’priorityβ selects the queue relative to the number of priorities configured at DPDMAI creation π so like, the priority layout got set up when the DPDMAI was made, and this picks the queue in relation to that.attrβ the returned DMA Tx queue attributes π this is the output, the whole reason we're here, the payoff.
β RETURN β
so um. the page has a RETURN section and it's... empty π« like genuinely nothing listed under it. no return values spelled out. the function signature says int, but this section is giving nothing and we're not gonna invent facts, so: consider this the blank space where a return description would live. iconic of it tbh π
π SEE ALSO π
go read these next, bestie, they're all in the kernel file ./drivers/dma/fsl-dpaa2-qdma/dpdmai.c and they're all siblings of this function:
dpdmai_open(9)dpdmai_close(9)dpdmai_destroy(9)dpdmai_enable(9)dpdmai_disable(9)dpdmai_reset(9)dpdmai_get_attributes(9)dpdmai_set_rx_queue(9)dpdmai_get_rx_queue(9)
reminder thatcmd_flagswants one or more ofMC_CMD_FLAG_β don't just make stuff up, use the real flag names, iykyk π
and that's the page, bestie π this one lives in ./drivers/dma/fsl-dpaa2-qdma and it's dated October 2026 β so yeah, future girl summer πΈ mwah, go read dpdmai_get_rx_queue(9) next, the pair is iconic β¨
π¦ 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