fc_remote_port_rolechg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ fc_remote_port_rolechg πŸ’…

okay so bestie, welcome to the glow-up era of fc_remote_port_rolechg β€” this is a Kernel API Manual moment and honestly? iconic. it's giving "the FC transport needs a heads-up" energy and we're gonna walk through it together, no cap. πŸ¦‹


🌸 NAME 🌸

fc_remote_port_rolechg β€” notifies the fc transport that the roles on a remote may have changed. fr fr that's the whole vibe.


πŸŽ€ SYNOPSIS πŸŽ€

void fc_remote_port_rolechg (struct fc_rport *rport , u32 roles );

like, that's the signature, don't come for me about the spacing, it's verbatim and we respect it πŸ’–


πŸ’œ ARGUMENTS πŸ’œ

  • rport β€” the remote port that changed. the main character of this whole situation, lowkey.
  • roles β€” new roles for this port. the fresh fit it's trying on ✨

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea, bestie πŸ“ β€” the LLDD calls this routine to notify the transport that the roles on a remote port may have changed. like, "hey girl, things might be different now" energy.

the largest effect of this? if a port now becomes a FCP Target, it must be allocated a scsi target id. literally must. no skipping that step, periodt.

and if the port is no longer a FCP target? any scsi target id value assigned to it will persist in case the role changes back to include FCP Target. so it's not gone forever, it's just on pause, iykyk 🫢

no changes in the scsi midlayer will be invoked if the role changes (in the expectation that the role will be resumed). if it doesn't? normal error processing will take place. so like, the system's got a backup plan, we love that for it πŸ’€

⚠️ warning bestie: should not be called from interrupt context. do not do it. not the vibe. πŸ™ˆ

🌈 NOTES 🌈

this routine assumes no locks are held on entry. read that again. no locks. held. on entry. okay? okay. πŸ’…


⭐ SEE ALSO ⭐

kernel file ./drivers/scsi/scsi_transport_fc.c β€” and honestly the whole friend group is here, say hi to everybody:

like, the whole squad showed up. ate and left no crumbs πŸ‘‘πŸ”₯


aaaand that's the page bestie!! 🧚 this iconic little number lives in ./drivers/scsi and it's stamped October 2026 β€” mwah, go forth and notify the transport responsibly πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from