STRUCT FC_DISC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, meet struct fc_disc β€” the Discovery context. This page is struct fc_disc(9) from the Kernel API Manual, and it is, lowkey, the whole discovery-context vibe. No cap. ✨

🌸 SYNOPSIS 🌸

Here's the struct, exactly as it is β€” do not come for the spacing, it's iconic:

       struct fc_disc {
           unsigned char         retry_count;
           unsigned char         pending;
           unsigned char         requested;
           unsigned short        seq_count;
           unsigned char         buf_len;
           u16 disc_id;
           struct list_head      rports;
           void *priv;
           struct mutex          disc_mutex;
           struct fc_gpn_ft_resp partial_buf;
           struct delayed_work   disc_work;
           void (*disc_callback)(struct fc_lport *, enum fc_disc_event);
        };

🫢 Members 🫢

The tea on every member, one by one:

  • retry_count β€” the number of retries. That's it, bestie. πŸ”
  • pending β€” 1 if discovery is pending, 0 if it's not. Simple queen behavior. πŸ’…
  • requested β€” 1 if discovery has been requested, 0 if not. Noted. ✨
  • seq_count β€” the number of sequences used for discovery. Count them, periodt. πŸ”’
  • buf_len β€” the length of the discovery buffer. Buffer length tea. 🫢
  • disc_id β€” the discovery ID. Iconic little identifier. πŸŽ€
  • rports β€” the list of discovered remote ports. Obsessed with this list, ngl. 🌸
  • priv β€” a private pointer for use by discovery code. Private means private, bestie. πŸ™ˆ
  • disc_mutex β€” the mutex that protects the discovery context. Protect the context at all costs. πŸ”’
  • partial_buf β€” the partial name buffer, specifically if names are returned in multiple frames. Yes, that exact caveat. πŸ¦‹
  • disc_work β€” the handle for delayed work context. Delayed but never late. ⏳
  • disc_callback β€” the callback routine called when discovery completes. Main character callback energy, fr fr. πŸ”₯

🌈 SEE ALSO 🌈

The page also shouts out the Kernel file ./include/scsi/libfc.h and these SEE ALSO besties:


Footer tea, since we're not copying the line: source/path ./include/scsi, date October 2026, page struct fc_disc(9). Byeee, go slay your discovery context πŸ’…πŸ«Άβœ¨

πŸ“¦ where this page comes from