fc_lport_state_enter(9)
π fc_lport_state_enter(9) β or, how to make a local port go thru a whole phase β¨
okay so this is from the Kernel API Manual, and it's genuinely one of the more lowkey iconic little functions β it's the one that just... changes a local port's state. that's it. that's the whole vibe. but bestie, sometimes the simplest thing is the main character, yk?
π¦ NAME
fc_lport_state_enter β changes a local port's state. literally just that. no cap.
πΈ SYNOPSIS
void fc_lport_state_enter (struct fc_lport *lport , enum fc_lport_state
state );
so yeah, it returns void (nothing back, she gives and doesn't take π
), and she takes two things: the lport and the state.
π ARGUMENTS
lportβ the local port whose state is about to change. like, the one getting the glow-up β¨stateβ the new state. the destination. the era she's entering. π
π₯ SEE ALSO
okay this list is LONG, so buckle up bestie β every single one of these is invited to the function party:
- Kernel file
./include/scsi/libfc.h enum fc_lport_state(9)enum fc_rport_state(9)struct fc_disc_port(9)enum fc_rport_event(9)struct fc_rport_operations(9)struct fc_rport_libfc_priv(9)struct fc_rport_priv(9)struct fc_stats(9)struct fc_seq_els_data(9)struct fc_fcp_pkt(9)struct fc_seq(9)struct fc_exch(9)struct fc_disc(9)struct fc_lport(9)struct fc4_prov(9)fc_lport_test_ready(9)fc_set_wwnn(9)fc_set_wwpn(9)fc_lport_init_stats(9)fc_lport_free_stats(9)lport_priv(9)libfc_host_alloc(9)
ngl that's a whole friend group and we love that for them π«Ά
lowkey reminder: the state you pass in is the state it becomes β so like, know where you're sending her before you send her. π
and that's the page!! mwah π this lil drop of wisdom came to you from ./include/scsi, dated October 2026, and it's the fc_lport_state_enter(9) page β slay, go enter a state bestie π§ββοΈβ¨
π¦ 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