fc_vport_set_state(9)
β¨ 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 π
- Kernel file
./include/scsi/scsi_transport_fc.h fc_remote_port_chkready(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms