lpfc_nodev_tmo_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is lpfc_nodev_tmo_set(9) from the Kernel API Manual ✨ β€” and it does exactly what the name says: it sets the vport nodev tmo and devloss tmo values. Lowkey iconic little kernel function, ngl πŸ’….


✨ SYNOPSIS ✨

int lpfc_nodev_tmo_set (struct lpfc_vport *vport , int val );

πŸŽ€ ARGUMENTS πŸŽ€

  • vport β€” a pointer to the lpfc vport structure. literally the vport bestie 🫢
  • val β€” contains the tmo value. that’s the value we’re working with, no cap ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the vibe check πŸ’–:

If the devloss tmo is already set, or the vport dev loss tmo has changed, then a kernel error message is printed and zero is returned. 😭

Else, if val is in range, then nodev tmo and devloss tmo are set to val. slay ✨

Otherwise, nodev tmo is set to the default value. periodt πŸ’…


🌸 RETURN 🌸

  • zero if it’s already set or if val is in range 🫢
  • -EINVAL if val is out of range πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the kernel file in question is ./drivers/scsi/lpfc/lpfc_attr.c, and here’s the whole related friend group, bestie β€” no skips, no cuts πŸ’œ:


okay that’s the whole page, bestie πŸ’… β€” source/version: ./drivers/scsi/lpfc; date: October 2026. byeee 🫢✨

πŸ“¦ where this page comes from