lpfc_issue_els_scr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_issue_els_scr β€” like, the ELS SCR manual, bestie

okay so this is the kernel API page for lpfc_issue_els_scr(9), which lives in the lpfc driver and is about issuing a scr to an node on a vport (yes, "an node", the original said it, I'm not fixing it, it's iconic πŸŽ€).


✨ NAME ✨

lpfc_issue_els_scr β€” Issue a scr to an node on a vport πŸ¦‹


🌸 SYNOPSIS 🌸

int lpfc_issue_els_scr (struct lpfc_vport *vport , uint8_t retry );

like literally that's the whole signature, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • vport β€” pointer to a host virtual N_Port data structure. so like, the vport in question 🫢
  • retry β€” the retry counter for the command IOCB. it's a uint8_t, keep it cute ✨

πŸ’– DESCRIPTION πŸ’–

okay so bestie, listen up. This routine issues a State Change Request (SCR) to a fabric node on a vport. no biggie. The remote node is the Fabric Controller (0xfffffd) β€” main character energy honestly πŸ‘‘.

The way it works: it first searches the vport node list to find the matching ndlp. If no such ndlp is found, a new ndlp shall be created for this (SCR) purpose. 😭 Then an IOCB is allocated, payload prepared, and the lpfc_sli_issue_iocb routine is invoked to send the SCR IOCB. slay.

bestie note: the ndlp reference count will be incremented by 1 for holding the ndlp, and the reference to ndlp will be stored into the ndlp field of the IOCB for the completion callback function to the SCR ELS command. don't forget that or it's giving memory leak πŸ’€

And the return codes, fr fr:

  • 0 β€” Successfully issued scr command βœ…
  • 1 β€” Failed to issue scr command πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/scsi/lpfc/lpfc_els.c β€” and honestly, the whole friend group:


🌈 and that's the whole page, bestie! this lil beauty comes from the source tree ./drivers/scsi/lpfc, dated October 2026, and it's filed under the manual page lpfc_issue_els_scr(9). go read your kernel source, iykyk πŸ’œπŸ«ΆπŸ“

kind of obsessed with how this whole thing is one function and 100 SEE ALSOs tbh πŸ’€

πŸ“¦ where this page comes from