STRUCT DIM_IRQ_MODER(9)
π struct dim_irq_moder(9) β the Kernel API Manual glow-up β¨
okay so bestie, welcome to the struct dim_irq_moder page from the Kernel API Manual π
this one's a struct, not a function, so think of it less as "a thing you call" and more as "the little clipboard where we write down everything we know about irq moderation" π
β¨ NAME β¨
struct dim_irq_moder β the structure for irq moderation information. literally its whole job is to collect irq moderation related information together, iykyk π«Ά
πΈ SYNOPSIS πΈ
struct dim_irq_moder {
u8 profile_flags;
u8 coal_flags;
u8 dim_rx_mode;
u8 dim_tx_mode;
struct dim_cq_moder *rx_profile;
struct dim_cq_moder *tx_profile;
void (*rx_dim_work)(struct work_struct *work);
void (*tx_dim_work)(struct work_struct *work);
};
she's got four u8 fields up top, two struct dim_cq_moder * pointers in the middle, and two function pointers at the bottom, no cap π
π¦ Members π¦
here's the member-by-member breakdown, bestie β every single one, nothing skipped:
profile_flagsβ these are theDIM_PROFILE_*flags, living their best life πcoal_flagsβ theDIM_COALESCE_*flags, and note it's for Rx and Tx, both of them, together, iconic π₯dim_rx_modeβ Rx DIM period count mode: it's eitherCQEorEQEπdim_tx_modeβ Tx DIM period count mode: again,CQEorEQEβrx_profileβ the DIM profile list for Rx πtx_profileβ the DIM profile list for Tx πrx_dim_workβ the Rx DIM worker, and it gets scheduled bynet_dimπ§tx_dim_workβ the Tx DIM worker, also scheduled bynet_dimπ§
fr fr every one of those matters β if you're touching moderation profiles, this struct is where all the receipts live π
π SEE ALSO π
so much cross-referencing, we love a connected ecosystem πΈ the kernel file itself lives at ./include/linux/dim.h, and then go read:
struct dim_cq_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)net_dim(9)rdma_dim(9)
okay that's the whole page, you ate that π mwah π«Ά
sign-off time: this one ships from ./include/linux π dated October 2026 ποΈ and it's page struct dim_irq_moder(9) of the Kernel API Manual β 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