lpfc_do_offline(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_do_offline(9) β€” like, the Kernel API Manual page, bestie

okay so bestie, this is lpfc_do_offline, straight out of the Kernel API Manual β€” one function, it fires off a mailbox command and brings that link down. down bad. πŸ”₯


✨ NAME ✨

lpfc_do_offline β€” issues a mailbox command to bring the link down. that's it. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int lpfc_do_offline (struct lpfc_hba *phba , uint32_t type );

πŸŽ€ ARGUMENTS πŸŽ€

  • phba β€” the lpfc_hba pointer. literally just a pointer to your lpfc_hba, no cap 🫢
  • type β€” one of LPFC_EVT_OFFLINE, LPFC_EVT_WARM_START, or LPFC_EVT_KILL. pick your fighter πŸ’€

πŸ’œ NOTES πŸ’œ

okay so full transparency, this page has lore. πŸ“–

  • it just goes ahead and assumes any error coming back from lpfc_do_offline will be negative. like, it's built on that assumption, periodt.
  • it can wait up to 5 seconds for the port ring buffers count to hit zero. and if it doesn't hit zero? it prints a warning and keeps going anyway. main character energy, honestly.
  • oh and lpfc_workq_post_event returns a non-zero return code if the call fails β€” so like, check it. πŸ™ˆ

🌸 RETURN 🌸

  • -EIO β€” error posting the event 😭
  • zero β€” for success ✨ (slay)

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./drivers/scsi/lpfc/lpfc_attr.c, plus the entire squad β€” everyone's here, nobody got left out of the group chat:


and that's the whole page, bestie 🧚 she lives in ./drivers/scsi/lpfc, dated October 2026 β€” so go forth, bring that link down, and remember: negative errors, five seconds of ring-buffer patience, and a warning if it's not zero. iykyk πŸ’–βœ¨

πŸ“¦ where this page comes from