lpfc_nvmet_buf_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lpfc_nvmet_buf_alloc(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the lpfc_nvmet_buf_alloc(9) page from the Kernel API Manual β€” it's giving β€œgrab me an nvmet_buf from the lpfc_sg_dma_buf_pool PCI pool” energy, and honestly? iconic. πŸ’…βœ¨

✨ NAME ✨

lpfc_nvmet_buf_alloc β€” Allocate an nvmet_buf from the lpfc_sg_dma_buf_pool PCI pool πŸŽ€

🌸 SYNOPSIS 🌸

void * lpfc_nvmet_buf_alloc (struct lpfc_hba *phba , int mem_flags ,
       dma_addr_t *handle );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • phba β€” the HBA that owns the pool we're allocating from. like, the main character holding the stash 🫢
  • mem_flags β€” tells you if this is a priority allocation (MEM_PRI). priority means priority, bestie πŸ’…
  • handle β€” used to return the DMA-mapped address of the nvmet_buf πŸ“¬

πŸ”₯ DESCRIPTION πŸ”₯

Allocates a DMA-mapped buffer from the lpfc_sg_dma_buf_pool PCI pool. It allocates from the generic dma_pool_alloc function. no cap, that's the whole move ✨

🌈 RETURN 🌈

On success, you get a pointer to the allocated nvmet_buf; on failure, NULL. that's it β€” success pointer, failure NULL, periodt πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/scsi/lpfc/lpfc_mem.c β€” and here's the whole bestie lineup:

that's the tea from ./drivers/scsi/lpfc, dated October 2026, all about lpfc_nvmet_buf_alloc(9) πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from