lpfc_used_rpi_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

lpfc_used_rpi_show β€” Return maximum rpi minus available rpi. This lil page is from the Kernel API Manual, and the star is literally lpfc_used_rpi_show(9) πŸ’….


🌸 SYNOPSIS 🌸

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

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” class device that is converted into a Scsi_host. bestie, that's the whole vibe 🫢
  • attr β€” device attribute, not used. lowkey just vibing in the parameter list 😌
  • buf β€” containing the used rpi count in decimal or "Unknown". yes, literally that string πŸ‘€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so it calls lpfc_get_hba_info asking for just the mrpi and arpi counts. periodt.

If lpfc_get_hba_info returns zero (failure 😭), the buffer text is set to "Unknown" and the buffer length is returned, therefore the caller must check for "Unknown" in the buffer to detect a failure. no cap, that check is mandatory.

fr fr: a zero return is the failure path, and "Unknown" is your red flag in the buffer 🚩

⭐ RETURN ⭐

size of formatted string. that's it, that's the return ✨


πŸ’– SEE ALSO πŸ’–

kernel file: ./drivers/scsi/lpfc/lpfc_attr.c β€” and here's the whole crew, bestie:


mwah πŸ’‹ this page is brought to you by ./drivers/scsi/lpfc, dated October 2026, and it's literally the lpfc_used_rpi_show(9) manual page. periodt ✨

πŸ“¦ where this page comes from