lpfc_get_scsi_buf_s4(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_get_scsi_buf_s4 β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so real talk, we're in the Kernel API Manual and today's main character is lpfc_get_scsi_buf_s4. buckle up πŸ¦‹

✨ NAME ✨

lpfc_get_scsi_buf_s4 β€” grab a scsi buffer from the HBA's io_buf_list, no cap πŸ’–

🌸 SYNOPSIS 🌸

struct lpfc_io_buf * lpfc_get_scsi_buf_s4 (struct lpfc_hba *phba ,
struct lpfc_nodelist *ndlp , struct scsi_cmnd *cmnd );

🫢 ARGUMENTS 🫢

  • phba β€” the HBA that this call is being run for. like, the whole reason we're here πŸ’…
  • ndlp β€” pointer to a node-list data structure 🧚
  • cmnd β€” pointer to a scsi_cmnd data structure ⭐

πŸ‘‘ DESCRIPTION πŸ‘‘

so this routine literally takes a scsi buffer off the head of the hdwq io_buf_list and hands it right back to whoever called. slay ✨

Return codes, bestie, pay attention:

  • NULL β€” Error 😭
  • Pointer to lpfc_scsi_buf β€” Success πŸ”₯
ngl the error case is giving "it's not you, it's the buffer allocation" πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/lpfc/lpfc_scsi.c β€” that's the vibe check source, iykyk πŸ‘‘

and the whole friend group, fr fr:


okay that's the whole thing, periodt πŸ’œ this little cutie lives in ./drivers/scsi/lpfc, it's the October 2026 edition, and yes it's filed under lpfc_get_scsi_buf_s4(9) β€” go off, icon πŸŒŸπŸ’…

πŸ“¦ where this page comes from