lpfc_sli4_b...k_diag_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this page comes straight out of the Kernel API Manual, and the vibe is: one lil' function that flips a switch on your HBA. that's it. that's the whole personality. iconic of it honestly ✨


🌸 NAME 🌸

lpfc_sli4_bsg_set_link_diag_state β€” set sli4 link diag state πŸ’…


✨ SYNOPSIS ✨

int lpfc_sli4_bsg_set_link_diag_state (struct lpfc_hba *phba , uint32_t diag );

like, that's the whole signature. no surprises, no plot twists 🌈


πŸŽ€ ARGUMENTS πŸŽ€

  • phba β€” Pointer to the HBA context object. yeah it's your HBA, your main character struct, the whole context 🫢
  • diag β€” Flag for set link to diag or normal operation state. so like, this is the little sign you hold up: diag mode on one side, normal operation on the other πŸͺ§

πŸ’– DESCRIPTION πŸ’–

so what does this function actually do? it's responsible for issuing a sli4 mailbox command β€” a whole mailbox command, very official πŸ“¬ β€” and that command is what sets the link to either diag state or normal operation state. that's the entire job. it shows up, it sends the mailbox command, it slays, it leaves πŸ’…

no cap, that's it. it does not skip steps, it does not do extra credit, it just sends the thing that flips the link state. periodt.


πŸ”₯ SEE ALSO πŸ”₯

first up, the source file itself, because obviously:

  • Kernel file ./drivers/scsi/lpfc/lpfc_bsg.c

and now the entire friend group β€” every single one of these, in order, no skipping, we don't do that here 🫢:


like yes it's a long list but that's the whole bsg crew and they all ate πŸ’… don't be weird about it

and that's the page!! mwah πŸ’‹ this lil' rewrite signs off from ./drivers/scsi/lpfc, dated October 2026, and it's all about lpfc_sli4_b...k_diag_state(9) β€” okurrr go read the source bestie πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from