lpfc_bg_err_opcodes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_bg_err_opcodes β€” from the Kernel API Manual, bestie πŸŽ€

okay so real talk, this is a page straight out of the Kernel API Manual, and it's lowkey one of those tiny functions that does one extremely specific thing and does it with main character energy. no cap. ✨


✨ NAME ✨

lpfc_bg_err_opcodes β€” figure out (reDetermine, if we're being fancy 🌸) the BlockGuard opcodes that go with the specified SCSI command, specifically so you can force a guard tag error. yes bestie, on purpose. it's giving chaos on purpose πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

look at that signature. four args, returns an int, very demure, very mindful 🫢


🌸 ARGUMENTS 🌸

  • phba β€” The Hba for which this call is being executed. your whole adapter, the icon πŸ‘‘
  • sc β€” The SCSI command to examine. this is the one we're snooping on πŸ”
  • txop β€” (out) BlockGuard operation for transmitted data. an output param, so it gets written to, not read from πŸ“€
  • rxop β€” (out) BlockGuard operation for received data. same deal, the other direction πŸ“₯
both txop and rxop are (out) params, meaning the function fills them in for you. don't come in with your own values and expect them to survive, that's not the vibe πŸ™ˆ

⭐ RETURN ⭐

zero on success; non-zero if tx and/or rx op cannot be determined. so like, 0 = slay, anything else = we couldn't figure out the opcodes, no biggie πŸ’–


🌈 SEE ALSO 🌈

the kernel file in question, first of all:

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

and then the entire extended friend group, fr fr, absolutely iconic lineup, every single one of them:

like, sixty-eight cross-references? the way this page is basically a group chat invite list πŸ˜­πŸ’œ


okay and finally, the sign-off, because every queen has a credits roll πŸ‘‘

this one lives under ./drivers/scsi/lpfc, dated October 2026, and yes, it answers to the name lpfc_bg_err_opcodes(9). periodt πŸ’…βœ¨

πŸ“¦ where this page comes from