t7xx_dpmaif_bat_alloc(9)
π t7xx_dpmaif_bat_alloc β Kernel API Manual, bestie edition π
okay so you found your way to t7xx_dpmaif_bat_alloc(9) and honestly? taste. this little icon lives in the Kernel API Manual, and she's about to allocate a whole BAT ring buffer for you. slay. β¨
β¨ NAME β¨
t7xx_dpmaif_bat_alloc β Allocate the BAT ring buffer. that's it, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
int t7xx_dpmaif_bat_alloc (const struct dpmaif_ctrl *dpmaif_ctrl ,
struct dpmaif_bat_request *bat_req , const enum bat_type buf_type );
she takes three args and returns an int, no cap. take a screenshot before you call her πΈ
π ARGUMENTS π
dpmaif_ctrlβ Pointer to DPMAIF context structure. your main character struct, literally the whole context of the operation π«Άbat_reqβ Pointer to BAT request structure. this is the request bestie herself, she's holding the receipts π§Ύbuf_typeβ BAT ring type. lowkey just tells her which flavor of BAT ring we're doing π
π¦ DESCRIPTION π¦
okay so here's what she actually does, and it's giving two-for-one:
This function allocates the BAT ring buffer shared with the HW device β yes, shared, like a group chat with the hardware β and it also allocates a buffer used to store information about the BAT skbs for further release. so she's not just handing you memory, she's setting up the little filing cabinet so those skbs can be properly released later. organized queen π
π₯ RETURN π₯
0β Success. we love a zero, we celebrate a zero π-ERRORβ Error code. not the moment, but at least she's honest about it π
β SEE ALSO β
- Kernel file
./drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.cβ go read the source, iykyk π t7xx_dpmaif_rx_buf_alloc(9)β the buffer-allocating sibling πt7xx_dpmaif_rx_frag_alloc(9)β fragment era, obsessed πt7xx_dpmaif_rx_stop(9)β for when it's time to stop, periodt β
ngl, these are the friends in the same friend group β if you're calling one, you probably wanna know the others π
and that's the page!! πΈ she's from ./drivers/net/wwan/t7xx, dated October 2026, and she answers to t7xx_dpmaif_bat_alloc(9) β that's the whole footer, mwah, thanks for coming to my ted talk ππ
π¦ 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