lpfc_queuecommand(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_queuecommand(9) πŸŽ€

okay bestie, welcome to the lpfc_queuecommand(9) page from the Kernel API Manual β€” yes, the manual name is folded in right here because we're cute like that. this is the scsi_host_template queuecommand entry point and it's giving kernel-driver main character energy. πŸ’–


✨ NAME ✨

lpfc_queuecommand β€” the scsi_host_template queuecommand entry point. periodt. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

the signature is literally:

enum scsi_qc_status lpfc_queuecommand (struct Scsi_Host *shost , struct
       scsi_cmnd *cmnd );

🌸 ARGUMENTS 🌸

  • shost β€” kernel scsi host pointer. the host's main character pointer, basically. 🫢
  • cmnd β€” pointer to the scsi_cmnd data structure. the command data bestie itself. πŸ’…

πŸ’– DESCRIPTION πŸ’–

okay so picture this: the driver registers this routine with the scsi midlayer so it can submit a cmd to process. our little routine prepares an IOCB from the scsi command and provides it to firmware. then, after the driver finished processing the command, the done callback gets invoked. that's the whole flow, no cap. ✨

Return value:

  • 0 β€” success, slay. 🌈
  • SCSI_MLQUEUE_HOST_BUSY β€” block all devices served by this host temporarily. yes, all of them, temporarily. πŸ’€

πŸŽ€ SEE ALSO πŸŽ€

the whole squad is linked here β€” every single one, iykyk:


and the source/version + date? that's ./drivers/scsi/lpfc with October 2026, so thank you for coming to my ted talk, bestie πŸ«ΆπŸ’œπŸ§š

πŸ“¦ where this page comes from