lpfc_sc_to_bg_opcodes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_sc_to_bg_opcodes(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the lpfc_sc_to_bg_opcodes(9) page, straight out of the Kernel API Manual ✨ this one's a little function from the lpfc crew and it's literally just here to figure out which BlockGuard opcodes go with a specific SCSI command. short king, but important 🫢


🌸 NAME 🌸

lpfc_sc_to_bg_opcodes β€” determine the BlockGuard opcodes to be used with the specified SCSI command πŸ’…


✨ SYNOPSIS ✨

int lpfc_sc_to_bg_opcodes (struct lpfc_hba *phba , struct scsi_cmnd *sc
, uint8_t *txop , uint8_t *rxop );

like, copy it exactly bestie, don't @ me about the spacing 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • phba β€” the Hba for which this call is being executed. yes, that Hba, the one you're running the call on πŸ¦‹
  • sc β€” the SCSI command to examine πŸ” give it a little vibe check
  • txop β€” (out) BlockGuard operation for transmitted data πŸ“€
  • rxop β€” (out) BlockGuard operation for received data πŸ“₯
both txop and rxop are out params, so they're where the answers get written, not where you put stuff in. periodt πŸ’…

πŸ”₯ RETURN πŸ”₯

zero on success; non-zero if tx and/or rx op cannot be determined πŸ’€

so like β€” 0 is the slay outcome, anything non-zero means something couldn't be figured out, no cap.


🌈 SEE ALSO 🌈

the kernel file lives right here, iconic:

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

and okay, the whole friend group showed up for this one, so here's literally everybody πŸ‘‘:


and that's the whole page bestie, no crumbs left πŸ“

sign-off szn β€” this cutie comes to you from ./drivers/scsi/lpfc, dated October 2026, and it's all under the lpfc_sc_to_bg_opcodes(9) name πŸ’– go forth and determine those opcodes, you've got this 🧚✨
πŸ“¦ where this page comes from