fc_rport_login(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« fc_rport_login(9) πŸ’«

okay bestie, welcome to the Kernel API Manual β€” yes, that Kernel API Manual β€” and today's main character is fc_rport_login. pull up a chair, grab a boba, we're going in πŸ§‹βœ¨


🌸 NAME 🌸

fc_rport_login β€” Start the remote port login state machine

like, literally start it. spin it up. get the RP state machine going πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int fc_rport_login (struct fc_rport_priv *rdata );

that's it. that's the whole vibe. one function, one argument, returns an int πŸŽ€


⭐ ARGUMENTS ⭐

  • rdata β€” The remote port to be logged in to. this is the port we're pulling up on, the one we want to be logged into, the whole reason we're here fr fr 🫢

πŸ”₯ DESCRIPTION πŸ”₯

So the way this works: it initiates the RP state machine. It gets called from the LP module, and it's gonna issue the following commands to the N_Port identified by the FC ID provided πŸ‘‘

The lineup, in order:

  • PLOGI
  • PRLI
  • RTV

periodt. those three. no more, no less πŸ’€

⚠️ Locking Note: this is called without the rport lock held. Important!! What it does instead: it will hold the rport lock, call an _enter_* function, and then unlock the rport. so no, it doesn't just casually grab it and forget to let go β€” it unlocks, we promise πŸ™ˆ

And like, what does all this actually mean? It indicates the intent to be logged into the remote port. that's the announcement, that's the mood, that's the vibe check ✨

But here's the little plot twist: if it appears we are already logged in, ADISC is used to verify the setup. not a re-login, not a full redo β€” just a verification. lowkey polite of it ngl πŸ’œ


🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/libfc/fc_rport.c β€” that's the source of truth bestie, the whole friend group lives in there πŸ’–

like… the whole squad. ate πŸ’…


so yeah that's the page bestie β€” brought to you by ./drivers/scsi/libfc, dated October 2026, and it's still out here answering to the name fc_rport_login(9) πŸŽ€βœ¨ mwah, go log into something, love u 🫢

πŸ“¦ where this page comes from