lpfc_sli4_nvmet_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_sli4_nvmet_alloc

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one's a little function from the SCSI lpfc driver and honestly it's giving "small but mighty" energy. Let's get into it πŸŽ€


🌸 NAME 🌸

lpfc_sli4_nvmet_alloc β€” allocates an SLI4 Receive buffer 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

struct rqb_dmabuf * lpfc_sli4_nvmet_alloc (struct lpfc_hba *phba );

πŸ’– ARGUMENTS πŸ’–

  • phba β€” the HBA you're allocating a receive buffer for, like, that's the whole vibe check right there πŸ‘‘

⭐ DESCRIPTION ⭐

So what does it actually do? It allocates a DMA-mapped receive buffer straight out of the lpfc_hrb_pool PCI pool β€” and it also grabs a non-DMA-mapped container to go with it 🧚✨ that's it, that's the whole job, and it does it flawlessly, no cap.

πŸ”₯ RETURN πŸ”₯

  • pointer to HBQ on success πŸŽ‰
  • NULL on failure πŸ’€ (sad but honest)

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/scsi/lpfc/lpfc_mem.c, plus the whole friend group:


ngl, if you're poking around in ./drivers/scsi/lpfc you're lowkey built different πŸ’œ

and that's the tea, bestie πŸ“ this page came to you courtesy of the source tree at ./drivers/scsi/lpfc, dated October 2026 β€” periodt, go forth and allocate responsibly πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from