STRUCT FC_STATS(9)
π NAME π
ok so struct fc_stats β it's literally the fc stats structure, no cap, that's the whole vibe π¦
this is from the kernel API manual, section 9 (struct fc_stats(9)), and bestie you're gonna want to bookmark this one β¨
πΈ SYNOPSIS πΈ
here's the whole struct, copy-paste energy, don't let me catch you retyping it by hand π
struct fc_stats {
u64 SecondsSinceLastReset;
u64 TxFrames;
u64 TxWords;
u64 RxFrames;
u64 RxWords;
u64 ErrorFrames;
u64 DumpedFrames;
u64 FcpPktAllocFails;
u64 FcpPktAborts;
u64 FcpFrameAllocFails;
u64 LinkFailureCount;
u64 LossOfSignalCount;
u64 InvalidTxWordCount;
u64 InvalidCRCCount;
u64 InputRequests;
u64 OutputRequests;
u64 ControlRequests;
u64 InputBytes;
u64 OutputBytes;
u64 VLinkFailureCount;
u64 MissDiscAdvCount;
};
it's giving "collection of u64 counters" and honestly? iconic π
π Members π
okay so now we go field by field, and yes i am gonna give each one its moment β¨
SecondsSinceLastResetβ the number of seconds since the last reset β±οΈ (yes, that's it, she's the clock)TxFramesβ number of transmitted frames π€TxWordsβ number of transmitted words π€RxFramesβ number of received frames π₯RxWordsβ number of received words π₯ErrorFramesβ number of received error frames π (received, and also error, rough combo ngl)DumpedFramesβ number of dumped frames ποΈFcpPktAllocFailsβ number of fcp packet allocation failures π allocation said noFcpPktAbortsβ number of fcp packet aborts πFcpFrameAllocFailsβ number of fcp frame allocation failures π (yes, the frame version of the above, they are different, don't @ me)LinkFailureCountβ number of link failures βοΈβπ₯LossOfSignalCountβ number for signal losses π (that's the original wording, "number for signal losses", i'm just the messenger π«Ά)InvalidTxWordCountβ number of invalid transmitted words π«InvalidCRCCountβ number of invalid CRCs π«InputRequestsβ number of input requests π¨OutputRequestsβ number of output requests π¨ControlRequestsβ number of control requests ποΈInputBytesβ number of received bytes π₯ (bytes not words, she's fancy)OutputBytesβ number of transmitted bytes π€VLinkFailureCountβ number of virtual link failures π (virtual link, real pain)MissDiscAdvCountβ number of missing FIP discovery advertisement π main character of the "where did the advertisement go" saga
lowkey a whole lot of counters, but ngl every single one of them is pulling its weight πͺ
π SEE ALSO π
okay bestie, the kernel file is ./include/scsi/libfc.h and here's the full squad it rolls with β every single one, no skipping π―ββοΈ
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_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 page! this lil masterpiece lives in ./include/scsi, dated October 2026, and it goes out under the name struct fc_stats(9) β slay, periodt, go read libfc.h π§ββοΈβ¨
π¦ 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