STRUCT FC_DISC_PORT(9)
struct fc_disc_port(9) π¦ β from the Kernel API Manual (yes we're reading kernel docs for fun now, iykyk)
okay so bestie. today we're looking at struct fc_disc_port, and honestly? it's giving humble little helper. the NAME says it all: it's a temporary discovery port to hold rport identifiers β¨ like a little sticky note for remote port IDs while the kernel is out here doing discovery stuff. short-lived, important, main character energy tbh π
β¨ SYNOPSIS β¨
here's the whole struct, exactly as it lives, no cap:
struct fc_disc_port {
struct fc_lport *lp;
struct list_head peers;
struct work_struct rport_work;
u32 port_id;
};
that's it. four members. tiny icon. we love a compact king π
π Members π
lpβ your Fibre Channel host port instance π this is the whole host-port vibe this discovery port belongs to.peersβ the node for list management during discovery and RSCN processing πΈ translation: it's the little link that keeps this thing chained up in a list while discovery and RSCN stuff is going down.rport_workβ a work struct for starting the rport state machine βοΈβ¨ yeah. it kicks that state machine into gear. we respect a member that does actual work.port_idβ the port ID of the discovered port π«Ά literally the ID. of the port. that got discovered. we stan a self-explanatory field.
ngl bestie, this struct is basically a temporary holding pen for rport identifiers β don't get attached, it's not staying forever π
π SEE ALSO π
Kernel file ./include/scsi/libfc.h, plus the whole extended friend group of related pages β go say hi, they all know each other:
enum fc_lport_state(9)enum fc_rport_state(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_state_enter(9)fc_lport_init_stats(9)fc_lport_free_stats(9)lport_priv(9)libfc_host_alloc(9)
and that's the whole page, bestie π§π hope this helped!! this one came out of ./include/scsi in October 2026 β so yeah, that's the source and the date, cute little timestamp to remember it by πβ¨ bye mwah π
π¦ 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