net_dim(9)
π net_dim(9) β the Kernel API Manual bestie briefing β¨
okay so you're reading the net_dim page from the Kernel API Manual, and honestly? it's a whole vibe. it's the main DIM algorithm entry point, and yes, DIM is the main character here π
πΈ NAME πΈ
net_dim β the main DIM algorithm entry point. that's it, that's the name, no cap π
β¨ SYNOPSIS β¨
void net_dim (struct dim *dim , const struct dim_sample *end_sample );
literally just those two args, she keeps it cute and simple π¦
π«Ά ARGUMENTS π«Ά
dimβ the DIM instance information. like, the receipts she's working from πend_sampleβ the current data measurement. the fresh tea, the now data, the reading she's about to judge π
π DESCRIPTION π
okay so plot twist: this one gets called by the consumer. yes, you, the consumer, are the one ringing her up ππ
this is the main logic of the algorithm, bestie. the whole function is where data gets processed in order to decide on the next required action. it's giving "brain of the operation" energy π§ β¨
so like: data goes in, processing happens, a decision about the next required action comes out. she's literally the decision-maker and she eats every single time ππ₯
π SEE ALSO π
Kernel file ./include/linux/dim.h β that's where the whole friend group lives, so go say hi π«
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)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)rdma_dim(9)
and that's the page, bestie, you ate that π β¨ mwah π«Ά
this lil gem lives in ./include/linux, stamped October 2026 β go forth and moderate your interrupts, icon ππ
π¦ 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