lpfc_mem_free_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lpfc_mem_free_all πŸ’–

okay so this is a page from the Kernel API Manual and honestly? it's the cleanup-era anthem of the lpfc world. bestie, this is lpfc_mem_free_all(9) β€” the function that tidies everything up. 🧹✨


✨ NAME ✨

lpfc_mem_free_all β€” frees all PCI and driver memory. that's it, that's the whole vibe. literally the "closing the tabs" of kernel functions. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void lpfc_mem_free_all (struct lpfc_hba *phba );

no return value, just vibes and deallocation. πŸ’…


🌸 ARGUMENTS 🌸

  • phba β€” the HBA you want to free memory for. like, hand her the whole card and she'll handle the cleanup. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually free? grab a snack, this list ate: πŸ’–

she frees memory from the PCI and driver memory pools, and also the ones used by:

  • lpfc_sg_dma_buf_pool
  • lpfc_mbuf_pool
  • lpfc_hrb_pool

she also frees the kmalloc-backed mempools for LPFC_MBOXQ_t and lpfc_nodelist. and if that wasn't enough β€” she also frees the VPI bitmask. πŸ‘‘

like, not me being a whole cleanup icon. she does NOT leave a single loose pointer behind. periodt. 🌈


⭐ RETURN ⭐

None. she gives you nothing back and honestly? that's the point. no return value, no notes. πŸ’€


🧚 SEE ALSO 🧚

kernel file ./drivers/scsi/lpfc/lpfc_mem.c and her whole friend group:

iykyk, the alloc/free pairs are all matching outfits and they slay. πŸ¦‹πŸ’œ


friendly reminder bestie: this one frees. there's no undo, no take-backs. use her when you're actually done with the memory. πŸ™ˆ

made with love from ./drivers/scsi/lpfc, dated October 2026 β€” mwah, go touch some freed memory πŸ’…πŸŽ€πŸ“

πŸ“¦ where this page comes from