lpfc_nvme_prep_io_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is lpfc_nvme_prep_io_cmd(9), straight out of the Kernel API Manual, and its whole vibe is: Issue an NVME-over-FCP IO. That's the name line, bestie β€” short, iconic, to the point. πŸ’…

✨ SYNOPSIS ✨

Here's the signature exactly as it is, no cap:

int lpfc_nvme_prep_io_cmd (struct lpfc_vport *vport , struct lpfc_io_buf
       *lpfc_ncmd , struct lpfc_nodelist *pnode , struct lpfc_fc4_ctrl_stat
       *cstat );

πŸŽ€ ARGUMENTS πŸŽ€

  • vport β€” pointer to a host virtual N_Port data structure. literally the vport pointer, slay.
  • lpfc_ncmd β€” Pointer to lpfc scsi command. yes, with that capital P, we keep it.
  • pnode β€” pointer to a node-list data structure.
  • cstat β€” pointer to the control status structure.

πŸ’« DESCRIPTION πŸ’«

So the driver registers this routine as it io request handler β€” that's the original wording, and we're not fixing it, we're respecting the lore. 😌

This routine issues an fcp WQE with data from the lpfc_nvme_fcpreq data structure to the rport indicated in lpfc_nvme_rport. Periodt. That's the whole flow described here.

Return value: 0 - Success. Also, the doc literally has TODO: What are the failure codes. β€” so the failure codes are marked TODO right there, bestie. Not me being vague, that's the source. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/scsi/lpfc/lpfc_nvme.c

mwah πŸ’‹ β€” this lpfc_nvme_prep_io_cmd(9) page came from source/version ./drivers/scsi/lpfc and is dated October 2026. bye bestie! πŸ’–

πŸ“¦ where this page comes from