lpfc_max_xri_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lpfc_max_xri_show(9) β€” the maximum xri reveal πŸ’–

okay so bestie, this is the Kernel API Manual page for lpfc_max_xri_show(9), and it is lowkey here to hand you the max xri count. Tiny page, important little vibe check. πŸ’…

🌸 NAME 🌸

lpfc_max_xri_show β€” Return maximum xri.

✨ SYNOPSIS ✨

ssize_t lpfc_max_xri_show (struct device *dev , struct device_attribute *attr , char *buf );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” class device that is converted into a Scsi_host.
  • attr β€” device attribute, not used.
  • buf β€” on return contains the maximum xri count in decimal or "Unknown".

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: it calls lpfc_get_hba_info asking for just the mrpi count. If lpfc_get_hba_info returns zero (failure), the buffer text is set to "Unknown" and the buffer length is returned, so the caller must check for "Unknown" in the buffer to detect a failure. Periodt. That check is the whole fail-detection vibe, and skipping it is a no. 🫢

🌈 RETURN 🌈

The return value is the size of formatted string. That's it β€” that's the return vibe. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/scsi/lpfc/lpfc_attr.c β€” and here's the whole squad, in order, no cap:


This cutie lives in ./drivers/scsi/lpfc, and the page date is October 2026 β€” lpfc_max_xri_show(9) signing off, bestie. Go check for "Unknown" πŸ’–πŸ¦‹πŸ’…

πŸ“¦ where this page comes from