dim_update_sample(9)
π dim_update_sample(9) β like, the whole kernel API manual vibe π
okay so bestie, welcome to the dim_update_sample(9) page from the Kernel API Manual β yes that's the manual section, we're in kernel-land now, put your hair up π
β¨ NAME β¨
dim_update_sample β sets a sample's fields with the values you give it. that's it. that's the whole job. she fills in the numbers, she minds her business π
πΈ SYNOPSIS πΈ
void dim_update_sample (u16 event_ctr , u64 packets , u64 bytes , struct
dim_sample *s );
literally just hand her four things and she handles it π«Ά
π¦ ARGUMENTS π¦
event_ctrβ the number of events you want set. it's au16, keep that in mind bestie, she's smol πpacketsβ the number of packets to set.bytesβ the number of bytes to set. yes packets and bytes are two separate args, no you can't merge them, don't even try πsβ your DIM sample. that's the struct that's getting updated. she's the main character here π
π₯ SEE ALSO π₯
okay this list is long long, so buckle up, we're going through the whole friend group π β the kernel file ./include/linux/dim.h plus:
struct dim_cq_moder(9)struct dim_irq_moder(9)struct dim_sample(9)struct dim_stats(9)struct dim(9)enum dim_cq_period_mode(9)enum dim_state(9)enum dim_tune_state(9)enum dim_stats_state(9)enum dim_step_result(9)net_dim_init_irq_moder(9)net_dim_free_irq_moder(9)net_dim_setting(9)net_dim_work_cancel(9)net_dim_get_rx_irq_moder(9)net_dim_get_tx_irq_moder(9)net_dim_set_rx_mode(9)net_dim_set_tx_mode(9)dim_on_top(9)dim_turn(9)dim_park_on_top(9)dim_park_tired(9)dim_calc_stats(9)dim_update_sample_with_comps(9)net_dim_get_rx_moderation(9)net_dim_get_def_rx_moderation(9)net_dim_get_tx_moderation(9)net_dim_get_def_tx_moderation(9)net_dim(9)rdma_dim(9)
like I said. the whole group chat π
ngl if you were looking for the version that does more than plain values, that's dim_update_sample_with_comps(9) up there β she's right there in the list, go say hi π§
anyway mwah, that's the page β¨ this one lives over in ./include/linux, dated October 2026, and it's brought to you by the dim_update_sample(9) girlies β stan her, she sets fields ππ
π¦ 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