STRUCT FC_STATS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 no
  • FcpPktAborts β€” 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 πŸ‘―β€β™€οΈ


πŸ’– 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