lpfc_sli4_fcf_pri_list_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpfc_sli4_fcf_pri_list_add(9) β€” yeah it's a kernel manpage bestie

okay so real talk, this page is from the Kernel API Manual and it's all about lpfc_sli4_fcf_pri_list_add β€” a little function that slots an FCF record into a priority list. it's giving "niche driver internals that only three people on earth need", but we're gonna learn it anyway because that's just who we are πŸ’–


✨ NAME ✨

lpfc_sli4_fcf_pri_list_add β€”

and that's it. that's the whole NAME section. no one-liner. no description. it's giving mysterious. main character energy with zero exposition 🫢 (the original page literally leaves it blank, so we're leaving it blank too. iconique.)


🌸 SYNOPSIS 🌸

int lpfc_sli4_fcf_pri_list_add (struct lpfc_hba *phba , uint16_t
fcf_index , struct fcf_record *new_fcf_record );

literally just three args and an int coming back at you ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • phba β€” pointer to lpfc hba data structure. that's the host bus adapter, bestie, say it with me πŸ¦‹
  • fcf_index β€” the index of the fcf record to add. very demure, very index-y.
  • new_fcf_record β€” pointer to a new FCF record. and ok this one has lore, so buckle up 🌈 this routine checks the priority of the fcf_index to be added. so:
    • if it's a lower priority than the current head of the fcf_pri list, then it gets added to the list in the right order ✨
    • if it's the same priority as the current head of the list, then it's added to the head of the list and its bit in the rr_bmask is set πŸ’…
    • if the fcf_index to be added is of a higher priority than the current head of the list, then the rr_bmask is cleared, its bit is set in the rr_bmask, and it's added to the head of the list πŸ‘‘
so like… lower = sorted in place, same = front of the line + bit on, higher = wipe the mask, set the bit, front of the line. three whole vibes. no cap πŸ”₯

⭐ RETURN ⭐

0=success 1=failure

zero means slay, one means 😭. that's the whole spectrum.


πŸ‘‘ SEE ALSO πŸ‘‘

first up, the kernel file where all this lives:

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

and then a frankly unhinged amount of friends β€” honestly this is giving "followed by 51 of my closest mutuals":

heads up bestie: lpfc_unregister_fcf(9) really does show up twice in the original list. that's not me being messy, that's the manpage being messy. we keep it exactly as it is πŸ™ˆ

and that's the whole page 🧚 ok bye, this came from ./drivers/scsi/lpfc and it's dated October 2026 β€” so yes, it's from the future, and yes, the future still has FCF priority lists πŸ’œ periodt.

πŸ“¦ where this page comes from