lpfc_link_speed_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is the lpfc_link_speed_init(9) page from the Kernel API Manual, and it's lowkey iconic because it's all about setting the adapter's link speed. Let's get into it πŸ’…

✨ NAME ✨

lpfc_link_speed_init β€” set the adapter's link speed πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int lpfc_link_speed_init (struct lpfc_hba *phba , int val );

πŸ’… ARGUMENTS πŸ’…

  • phba β€” lpfc_hba pointer. that's the hba bestie 🫢
  • val β€” link speed value. the actual speed number vibe ⭐

🌸 DESCRIPTION 🌸

If val is in a valid range, then set the adapter's link speed field. that's literally the whole job, no cap πŸ’–

πŸŽ€ NOTES πŸŽ€

If the value is not in range, it logs a kernel error message, clears the link speed, and returns an error. so if it's out of range, it's giving error-message-and-cleanup energy 😭

⭐ RETURN ⭐

  • zero if val saved. πŸŽ‰
  • -EINVAL β€” val out of range. πŸ’€

🌈 SEE ALSO 🌈

Kernel file: ./drivers/scsi/lpfc/lpfc_attr.c β€” yes, that's the source spot, bestie. The whole SEE ALSO friend group is:


xoxo πŸ’… source/version: ./drivers/scsi/lpfc; date: October 2026; page: lpfc_link_speed_init(9) β€” bye bestie πŸ’–βœ¨

πŸ“¦ where this page comes from