irdma_puda_alloc_buf(9)
π irdma_puda_alloc_buf (9) β the kernel API manual, bestie edition β¨
okay so. this is a page from the Kernel API Manual, and no, we're not skipping it, because the PUDA buffer allocation is honestly kind of a big deal. sit down, get a lil snack π, and let me tell you about the one (1) function that grabs you some memory for a buffer.
πΈ NAME πΈ
irdma_puda_alloc_buf β literally just: allocate mem for buffer. that's the whole vibe. it hands you a buffer. π
π¦ SYNOPSIS π¦
struct irdma_puda_buf * irdma_puda_alloc_buf (struct irdma_sc_dev *dev ,
u32 len );
so it takes two things and it gives you back a struct irdma_puda_buf *. no cap. π«Ά
β¨ ARGUMENTS β¨
devβ the iwarp device π like, THE main character here. it's astruct irdma_sc_dev *.lenβ length of buffer π au32, so you tell it how much you want.
π SEE ALSO π
first up, the lore: the kernel file lives at ./drivers/infiniband/hw/irdma/puda.c β that's the source of truth, go read it, iykyk π§
then the whole friend group π (yes, you gotta look at all of them, I don't make the rules):
irdma_puda_get_listbuf(9)irdma_puda_get_bufpool(9)irdma_puda_ret_bufpool(9)irdma_puda_post_recvbuf(9)irdma_puda_replenish_rq(9)irdma_puda_dele_buf(9)irdma_puda_get_next_send_wqe(9)irdma_puda_poll_info(9)irdma_puda_poll_cmpl(9)irdma_puda_send(9)irdma_puda_send_buf(9)irdma_puda_qp_setctx(9)irdma_puda_qp_wqe(9)irdma_puda_qp_create(9)irdma_puda_cq_wqe(9)irdma_puda_cq_create(9)irdma_puda_free_qp(9)irdma_puda_free_cq(9)irdma_puda_dele_rsrc(9)irdma_puda_allocbufs(9)irdma_puda_create_rsrc(9)irdma_ilq_putback_rcvbuf(9)irdma_ieq_get_fpdu_len(9)irdma_ieq_copy_to_txbuf(9)irdma_ieq_setup_tx_buf(9)irdma_ieq_check_first_buf(9)irdma_ieq_compl_pfpdu(9)irdma_ieq_create_pbufl(9)irdma_ieq_handle_partial(9)irdma_ieq_process_buf(9)irdma_ieq_process_fpdus(9)irdma_ieq_create_ah(9)irdma_ieq_handle_exception(9)irdma_ieq_receive(9)irdma_ieq_tx_compl(9)irdma_ieq_cleanup_qp(9)
like, that is a lot of cross-references and every single one ate π₯ go click through them, I believe in you.
π friendly reminder: everything here came straight from the page, bestie β I'm not out here inventing flags or behaviours. if it's not written above, it's not real. π
and that's the whole page! mwah π this beauty lives in ./drivers/infiniband/hw/irdma and it's dated October 2026 β yes, October 2026, don't ask me, that's just what the footer says π periodt. bye bestie, happy buffer-ing! πβπ
π¦ 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