dim_update_s...e_with_comps(9)
π dim_update_s...e_with_comps(9) π
okay so real talk, this is a page straight out of the Kernel API Manual, bestie β we're talking dim_update_s...e_with_comps and yes the name is literally that long, she's an icon, she's extra, we respect it π
β¨ NAME β¨
dim_update_sample_with_comps β sets a sample's fields to the values you hand her, including the completion parameter π
lowkey the whole job. you give her numbers, she puts them in the struct. that's it, that's the function.
π¦ SYNOPSIS π¦
void dim_update_sample_with_comps (u16 event_ctr , u64 packets , u64
bytes , u64 comps , struct dim_sample *s );
note the two type widths, bestie β event_ctr is a lil baby u16 while the rest are chunky u64s, and the last one is a pointer to your struct dim_sample π
πΈ ARGUMENTS πΈ
event_ctrβ the number of events to set (it's au16, so keep it smol and cute π)packetsβ the number of packets to setbytesβ the number of bytes to setcompsβ the number of completions to set β this is the thing that makes her different from plaindim_update_sample(9), iykyk πsβ your DIM sample, aka thestruct dim_sampleshe's gonna be writing into π
π₯ SEE ALSO π₯
so you wanna go down the rabbit hole? valid. here's the whole friend group:
- the kernel file
./include/linux/dim.h 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(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)
and that's the whole vibe check, bestie π this page lives in ./include/linux, stamped October 2026, and the header up top is dim_update_s...e_with_comps(9) from the Kernel API Manual β go forth and set those fields, you absolute main character π«Άπ
π¦ 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