lpfc_sli4_rb_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🧚:


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