gnet_stats_copy_basic(9)
β¨ gnet_stats_copy_basic β¨
okay bestie, welcome to the Kernel API Manual page for gnet_stats_copy_basic(9) β yes it's a mouthful, yes it's iconic, let's get into it π
πΈ NAME πΈ
gnet_stats_copy_basic β copy basic statistics into statistic TLV π
π¦ SYNOPSIS π¦
int gnet_stats_copy_basic (struct gnet_dump *d , const struct
gnet_stats_basic_sync __percpu *cpu , const struct gnet_stats_basic_sync
*b , bool running );
π ARGUMENTS π
dβ the dumping handle, your main character of the moment β¨cpuβ copy statistic per cpu, okay so it's giving per-CPU energy π§bβ basic statistics, the actual data bestie πrunningβtrueifbrepresents a running qdisc, thusb's internal values might change during basic reads. Only used ifcpuisNULLπ
β CONTEXT β
task; must not be run from IRQ or BH contexts π like literally do not, iykyk
π₯ DESCRIPTION π₯
Appends the basic statistics to the top level TLV created by gnet_stats_start_copy. no cap, that's the whole vibe π«Ά
Returns 0 on success or -1 with the statistic lock released if the room in the socket buffer was not sufficient. so if the socket buffer is out here being too small, you get -1 and the lock gets released β noted π
π SEE ALSO π
Kernel file ./net/core/gen_stats.c gnet_stats_start_copy_compat(9), gnet_stats_start_copy(9), gnet_stats_copy_basic_hw(9), gnet_stats_copy_rate_est(9), gnet_stats_copy_queue(9), gnet_stats_copy_app(9), gnet_stats_finish_copy(9) β go read the whole friend group, they all slay π
and that's the page bestie!! π this one's straight out of ./net/core, dated October 2026, and it's literally the gnet_stats_copy_basic(9) man page β obsessed, periodt ππ¦
π¦ 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