lpfc_bg_err_inject(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lpfc_bg_err_inject(9) πŸ’–

okay so bestie, this is a page from the Kernel API Manual β€” it's lpfc_bg_err_inject(9), and literally the whole job of this function is deciding whether we should inject an error. yes, on purpose. we're being messy intentionally ✨


πŸŽ€ NAME πŸŽ€

lpfc_bg_err_inject β€” Determine if we should inject an error

like, it's a vibe check for errors: are we throwing one today or not πŸ™ˆ


πŸ¦‹ SYNOPSIS πŸ¦‹

int lpfc_bg_err_inject (struct lpfc_hba *phba , struct scsi_cmnd *sc ,
uint32_t *reftag , uint16_t *apptag , uint32_t new_guard );

🌸 ARGUMENTS 🌸

  • phba β€” The Hba for which this call is being executed. it's the main character of this whole operation, fr fr.
  • sc β€” The SCSI command to examine. we're looking at it. respectfully. πŸ‘€
  • reftag β€” (out) BlockGuard reference tag for transmitted data. it's an out param, so this baby gets written to, not read from.
  • apptag β€” (out) BlockGuard application tag for transmitted data. also out. also getting filled in. matching energy πŸ’…
  • new_guard β€” (in) Value to replace CRC with if needed. this one's an in β€” you hand it over, no take-backs.

πŸ’œ DESCRIPTION πŸ’œ

Returns BG_ERR_* bit mask or 0 if request ignored.

that's it, that's the whole deal. either you get a BG_ERR_* bit mask back, or a straight-up 0 meaning the request got ignored. no in-between, no maybes β€” very decisive of it πŸ‘‘


🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/lpfc/lpfc_scsi.c β€” that's where the magic lives, iykyk.

and now the full friend-group roll call, because everyone gets mentioned:

like, that is a stacked guest list. everybody showed up πŸ’€


lowkey important reminder: reftag and apptag are out params and new_guard is an in param β€” don't mix them up or it's giving undefined chaos 🫢

mwah, that's the whole page πŸŽ€ this lil gem comes from ./drivers/scsi/lpfc, dated October 2026, and it's filed under lpfc_bg_err_inject(9) β€” go inject some errors responsibly bestie πŸ’…βœ¨

πŸ“¦ where this page comes from