STRUCT FC_DISC(9)
π 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β1if discovery is pending,0if it's not. Simple queen behavior. πrequestedβ1if discovery has been requested,0if 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:
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_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)
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
- 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