lpfc_scsi_p..._mgmt_cmd_s4(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_scsi_prep_task_mgmt_cmd_s4(9) πŸ’…

Okay so welcome to the Kernel API Manual page for lpfc_scsi_prep_task_mgmt_cmd_s4(9) β€” yes, the name is long, yes, it’s iconic, and yes, we’re getting into it πŸ’–


πŸŽ€ NAME πŸŽ€

lpfc_scsi_prep_task_mgmt_cmd_s4 β€” Convert SLI4 scsi TM cmd to FCP info unit.

That’s the whole vibe: this is the function that does that conversion. Slay ✨

✨ SYNOPSIS ✨

The signature is literally:

int lpfc_scsi_prep_task_mgmt_cmd_s4 (struct lpfc_vport *vport , struct
       lpfc_io_buf *lpfc_cmd , u64 lun , u8 task_mgmt_cmd );

🫢 ARGUMENTS 🫢

  • vport β€” the virtual port that this call is running for, bestie πŸ¦‹
  • lpfc_cmd β€” a pointer to the lpfc_io_buf data structure. Yep, exactly that πŸŽ€
  • lun β€” the logical unit number 🌸
  • task_mgmt_cmd β€” the SCSI task management command πŸ’…

πŸ’… DESCRIPTION πŸ’…

This routine creates the FCP information unit corresponding to task_mgmt_cmd for a device with the SLI-4 interface spec. That’s the main-character job of this function, fr fr πŸ‘‘

Return codes: 0 - Error, 1 - Success 😭

Not me double-checking that: 0 is Error and 1 is Success. That is what the page says, bestie β€” read it twice if you need to πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

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

And now the whole extended kernel family, no cap πŸ’–


mwah πŸ’‹ β€” source: ./drivers/scsi/lpfc Β· version/date: October 2026 Β· page: lpfc_scsi_prep_task_mgmt_cmd_s4(9) 🫢✨

πŸ“¦ where this page comes from