lpfc_in_buf_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_in_buf_free β€” Kernel API Manual ✨

okay so welcome to the Kernel API Manual, bestie, and today's main character is lpfc_in_buf_free(9) β€” the little cleanup function that could 🫢


πŸŽ€ NAME πŸŽ€

lpfc_in_buf_free β€” Free a DMA buffer πŸ’–


✨ SYNOPSIS ✨

void lpfc_in_buf_free (struct lpfc_hba *phba , struct lpfc_dmabuf *mp );

literally that's the whole signature, no cap πŸ”₯


πŸ¦‹ ARGUMENTS πŸ¦‹

  • phba β€” the HBA that this buffer is associated with πŸ‘‘
  • mp β€” the buffer we're about to free πŸŽ€

🌸 DESCRIPTION 🌸

so basically this frees the given DMA buffer in the appropriate way, and "appropriate" is doing a LOT of work in that sentence πŸ‘€ β€” it depends on if the HBA is running in SLI3 mode with HBQs enabled. that's the vibe check it does before it commits, okurrr πŸ’…


πŸ’œ NOTES πŸ’œ

  • it takes phba->hbalock πŸ”’
  • it can be called with or without other locks held β€” so flexible, so iconic ⭐

🌈 RETURN 🌈

None πŸ™ˆ β€” it returns nothing, it just does the thing and dips πŸ’€


πŸ“ SEE ALSO πŸ“

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


🫢 and that's the page!! brought to you by ./drivers/scsi/lpfc, dated October 2026, and yes the title is still lpfc_in_buf_free(9) in case you forgot πŸ’–βœ¨πŸŽ€ iykyk πŸ¦‹

πŸ“¦ where this page comes from