STRUCT FC_DISC_PORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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