t7xx_dpmaif_rx_frag_alloc(9)
π t7xx_dpmaif_rx_frag_alloc(9) β aka the Kernel API Manual page you've been waiting for π
okay bestie, so this is a page straight out of the Kernel API Manual, and it's all about one very specific little function. she's not famous, she's not flashy, but she is the reason your big packets don't just fall apart. let's get into it β¨
πΈ NAME πΈ
t7xx_dpmaif_rx_frag_alloc β literally the function that allocates buffers for the Fragment BAT ring π
π¦ SYNOPSIS π¦
int t7xx_dpmaif_rx_frag_alloc (struct dpmaif_ctrl *dpmaif_ctrl , struct
dpmaif_bat_request *bat_req , const unsigned int buf_cnt , const bool
initial );
likeβ¦ that's the whole signature, no cap. four args, one int back π«Ά
β¨ ARGUMENTS β¨
dpmaif_ctrlβ Pointer to the DPMAIF context structure. the main-character struct, she holds the context πbat_reqβ Pointer to the BAT request structure. the request in question, iconic.buf_cntβ Number of buffers to allocate. yes, anunsigned int, and yes, it's exactly how many you're getting πinitialβ Indicates if the ring is being populated for the first time. abool, so likeβ¦ true or false, pick one π
π§ DESCRIPTION π§
okay so here's the lore: Fragment BAT is what gets used when the received packet does not fit in a normal BAT entry. like, she's too big for the regular slot, so she needs her own thing π
This function allocates a page fragment and stores the start address of the page into the Fragment BAT ring. that's the job. that's the whole vibe. β¨
and then β important part, don't skip β if this is not the initial call, notify the HW about the new entries. so if initial is false, the hardware gets told about the new entries. if it's the first call, she just sets things up quietly. iykyk π¦
π₯ RETURN π₯
0β Success. we love to see it π-ERRORβ Error code. it's giving "something went sideways" π
π SEE ALSO π
- Kernel file
./drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.cβ go read the source bestie, it's all there π t7xx_dpmaif_rx_buf_alloc(9)t7xx_dpmaif_bat_alloc(9)t7xx_dpmaif_rx_stop(9)
and that's the page!! π this whole thing ships out of ./drivers/net/wwan/t7xx and it's dated October 2026 β so like, from the future, slay. mwah, study hard, and remember: page fragments are a lifestyle πβ¨
π¦ 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