fc_vport_set_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ fc_vport_set_state ✨

Okay bestie, you found the fc_vport_set_state(9) page in the Kernel API Manual and honestly? It's a little cutie. πŸŽ€ Let me give you the whole rundown, group-chat style.


🌸 NAME 🌸

fc_vport_set_state β€” this is the function you call to set a vport's state. It saves the old state, except for the transitory states of initializing and sending the ELS traffic to instantiate the vport on the link. Not me being precise about exceptions πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void fc_vport_set_state (struct fc_vport *vport , enum fc_vport_state
new_state );

✨ ARGUMENTS ✨

  • vport β€” the virtual port whose state is changing, like the main character of this whole operation πŸ‘‘
  • new_state β€” the new state, obviously. the glow-up destination πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

Lowkey important caveat first: this function assumes the driver has surrounded it with the proper locking so the state change stays coherent. No cap, that's on the driver β€” the function itself is not out here doing its own locking. πŸ™ˆ


🌈 SEE ALSO 🌈


fr fr read the locking note again. coherent state change is the vibe, and the driver brings the locks. 🫢

Okay that's the whole thing bestie, you ate that. πŸ’…βœ¨ This little gem lives in ./include/scsi, dated October 2026, and it's part of the Kernel API Manual. mwah, go forth and set those states responsibly πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from