lpfc_bg_setup_bpl_prot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the lpfc_bg_setup_bpl_prot(9) page from the Kernel API Manual, and it's literally about Setup BlockGuard BPL with protection data βœ¨πŸ’…


✨ SYNOPSIS ✨

int lpfc_bg_setup_bpl_prot (struct lpfc_hba *phba , struct scsi_cmnd *sc
, struct ulp_bde64 *bpl , int datacnt , int protcnt );

πŸŽ€ ARGUMENTS πŸŽ€

  • phba β€” The Hba for which this call is being executed.
  • sc β€” pointer to scsi command we're working on.
  • bpl β€” pointer to buffer list for protection groups.
  • datacnt β€” number of segments of data that have been dma mapped.
  • protcnt β€” number of segment of protection data that have been dma mapped.

πŸ¦‹ DESCRIPTION πŸ¦‹

This function sets up BPL buffer list for protection groups of type LPFC_PG_TYPE_DIF πŸ‘‘βœ¨

This is usually used when DIFs are in their own buffers, separate from the data. The HBA can then be instructed to place the DIFs in the outgoing stream 🌈 For read operations, The HBA could extract the DIFs and place it in DIF buffers.

The buffer list for this type consists of one or more of the protection groups described below:

start of first prot group  -->   |
PDE_5          |

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚     PDE_6                     β”‚
β”‚     PDE_7 (Prot BDE)          β”‚
β”‚     Data BDE                  β”‚
β”‚     more Data BDE's ... (opt) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
start of new  prot group  -->    |          PDE_5          |

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚     ... β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ’€ NOTE πŸ’€

Heads up, bestie: It is assumed that both data and protection s/g buffers have been mapped for DMA. Returns: the number of BDEs added to the BPL.

🌈 SEE ALSO 🌈

Kernel file: ./drivers/scsi/lpfc/lpfc_scsi.c β€” that's the home base 🏠✨

And here's every single cross-reference, no cap:

okay that's literally the whole page, bestie πŸ’– β€” source/version ./drivers/scsi/lpfc, dated October 2026, and it's the lpfc_bg_setup_bpl_prot(9) page. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from