lpfc_scsi_dev_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_scsi_dev_block(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for lpfc_scsi_dev_block(9). this one is short but it's doing Important Work: it's the β€œeverybody freeze” button for SCSI hosts. ✨


πŸŽ€ NAME πŸŽ€

lpfc_scsi_dev_block β€” set all scsi hosts to block state.

🫢 SYNOPSIS 🫢

void lpfc_scsi_dev_block (struct lpfc_hba *phba );

🌸 ARGUMENTS 🌸

  • phba β€” a pointer to the HBA context object. that's the context handle the function works with, and yes, you gotta pass it in. πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the vibe: this function walks the vport list and sets each SCSI host to block state by invoking the fc_remote_port_delete routine. no cap, it's a whole walk-through. πŸ’…

it gets invoked with EEH when the device's PCI slot has been permanently disabled. that's the scenario: EEH path, permanently disabled PCI slot, and this function does its block-state thing. 🫢

πŸ‘€ SEE ALSO πŸ‘€

go touch grass in this kernel file:

  • ./drivers/scsi/lpfc/lpfc_scsi.c

and here's the whole squad of related functions, fr fr:


mwah πŸ’‹ β€” sending love from source ./drivers/scsi/lpfc, dated October 2026, on the lpfc_scsi_dev_block(9) page. periodt. πŸ’œ

πŸ“¦ where this page comes from