lpfc_sli4_rb_alloc(9)
π lpfc_sli4_rb_alloc(9) π
okay so bestie, welcome to the kernel API manual for lpfc_sli4_rb_alloc β yes that's a lot of letters, no you don't have to say it out loud, we're just gonna vibe through it together π«Ά
β¨ NAME β¨
lpfc_sli4_rb_alloc β allocate an SLI4 Receive buffer π
πΈ SYNOPSIS πΈ
struct hbq_dmabuf * lpfc_sli4_rb_alloc (struct lpfc_hba *phba );
that's it. one argument. we love a low-effort icon π
π ARGUMENTS π
phbaβ the HBA you're allocating a receive buffer for, like it's the main character and you're getting it a gift π
π¦ DESCRIPTION π¦
so what it actually does: it allocates a DMA-mapped receive buffer from the lpfc_hrb_pool PCI pool, and along with it, a non-DMA-mapped container for that buffer. two for the price of one, lowkey iconic β¨
π NOTES π
ok bestie listen to me very carefully π this one is not interrupt-safe, and it must be called with no locks held. no cap. do not come in here holding a lock, that's not the vibe fr fr π
β RETURN β
pointer to HBQ on success β and NULL on failure, which is giving "we tried π"
π SEE ALSO π
kernel file ./drivers/scsi/lpfc/lpfc_mem.c and its little friend group π§:
lpfc_mem_alloc(9)lpfc_mem_free(9)lpfc_mem_free_all(9)lpfc_mbuf_alloc(9)__lpfc_mbuf_free(9)lpfc_mbuf_free(9)lpfc_nvmet_buf_alloc(9)lpfc_nvmet_buf_free(9)lpfc_els_hbq_alloc(9)lpfc_els_hbq_free(9)lpfc_sli4_rb_free(9)lpfc_sli4_nvmet_alloc(9)lpfc_sli4_nvmet_free(9)lpfc_in_buf_free(9)lpfc_rq_buf_free(9)
and that's the whole page, bestie, you ate that π this gem lives in ./drivers/scsi/lpfc, dated October 2026, and it's serving kernel API manual energy from the lpfc_sli4_rb_alloc(9) crew. mwah ππ
π¦ 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