lpfc_check_nlp_post_devloss(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lpfc_check_nlp_post_devloss(9) πŸ’–

okay so bestie, this is a page straight out of the Kernel API Manual and it's genuinely one of the most niche little cleanup functions ever β€” but we're gonna understand it, periodt. ✨


🌸 NAME 🌸

lpfc_check_nlp_post_devloss β€” the little function that checks whether it needs to restore the ndlp refcnt after devloss 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void lpfc_check_nlp_post_devloss (struct lpfc_vport *vport , struct
       lpfc_nodelist *ndlp );

no cap, that's the whole signature. void in, void out, two pointers of business πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • vport β€” pointer to the vport object. literally just a pointer to the vport object, that's the vibe 🐝
  • ndlp β€” pointer to the remote node object. the remote node bestie in question πŸ’œ

⭐ DESCRIPTION ⭐

so here's the tea β˜• β€” if the NLP_IN_RECOV_POST_DEV_LOSS flag was set because a node had an outstanding recovery going on during dev_loss_tmo processing, then this function restores the nlp_put kref decrement from lpfc_dev_loss_tmo_handler. 🩹✨

that's it. that's the whole job. it undoes the refcount dip so the node doesn't get yeeted into the void while it's still mid-recovery. king behavior honestly πŸ‘‘

ngl this one is short but it matters β€” it's the "wait, put that kref back" moment of the devloss flow 😭

🌈 SEE ALSO 🌈

the kernel file:

  • ./drivers/scsi/lpfc/lpfc_hbadisc.c

and the whole friend group (aka every related function, listed exactly, no skips, no cuts) 🫢:


and that's the page!! πŸŽ€ this gem lives in ./drivers/scsi/lpfc, dated October 2026, and its whole title-and-manual-name situation is lpfc_check_nlp_post_devloss(9) β€” slay, go read the other 51 pages now, ily, bye πŸ’œβœ¨

πŸ“¦ where this page comes from