STRUCT GNET_STATS_BASIC(9)
π struct gnet_stats_basic(9) π
okay so bestie, welcome to the Kernel API Manual β yes, that's the vibe, we're doing kernel structs today and honestly? iconic. β¨
This one is struct gnet_stats_basic, and it's literally just the glow-up of your throughput receipts β byte and packet counts, living their best life. π
β¨ NAME β¨
struct gnet_stats_basic β byte/packet throughput statistics. that's it, that's the whole assignment, and it ate. π
πΈ SYNOPSIS πΈ
lowkey the whole struct is right here, no cap:
struct gnet_stats_basic {
__u64 bytes;
__u32 packets;
};
likeβ¦ she's small, she's tidy, she's giving main character energy in a header file. π¦
π Members π
bytesβ number of seen bytes. the__u64one, so she can count big. π§packetsβ number of seen packets. the__u32one, doing her little job, we love her. π
π₯ SEE ALSO π₯
- Kernel file
./include/uapi/linux/gen_stats.hβ go read the source bestie, it's all there, iykyk π struct gnet_stats_rate_est(9)struct gnet_stats_rate_est64(9)struct gnet_stats_queue(9)struct gnet_estimator(9)
the whole friend group fr fr, go say hi to all of them π«Ά
ngl bestie, this is a straight-up data struct β no flags, no errors, no exit statuses, no βdanger will robinsonβ warnings hiding in here. just two numbers being gorgeous. π
that's the page!! π mwah π β brought to you by the fine people at ./include/uapi/linux, dated October 2026, and struct gnet_stats_basic(9) says slay and goodnight βππ
π¦ 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