lpfc_mem_free_all(9)
π 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_poollpfc_mbuf_poollpfc_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:
lpfc_mem_alloc(9)lpfc_mem_free(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_alloc(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)
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
- 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