ethnl_update_irq_moder(9)
β¨ NAME β¨
ethnl_update_irq_moder β bestie, this is the one that updates, like, one specific field in the given profile π
okay so real quick before we dive in: this page lives in the Kernel API Manual (yes ma'am, the kernel has lore too π§), and it's all about poking exactly one field in a profile and nothing else. one field. that's the whole gig. iconic behaviour, honestly.
πΈ SYNOPSIS πΈ
int ethnl_update_irq_moder (struct dim_irq_moder *irq_moder , u16
*irq_field , u16 attr_type , struct nlattr **tb , u8 coal_bit , bool
*mod , struct netlink_ext_ack *extack );
like, look at all those params π«Ά seven of them. she's thorough. we love a thorough queen.
π ARGUMENTS π
irq_moderβ the place that collects all the DIM-related information π think of it as the lil basket where the dim stuff lives.irq_fieldβ the field in the profile you actually wanna modify. yes, this one. the chosen one πattr_typeβ the attr type, and it'sETHTOOL_A_IRQ_MODERATION_*(star included, it's a family of types, iykyk).tbβ the netlink attribute holding the new values, or null. null is a valid vibe here, no cap πcoal_bitβ aDIM_COALESCE_*bit, taken fromcoal_flags.modβ a pointer to bool, and it's there for modification tracking π (she's watching. she knows if you changed something.)extackβ the netlink extended ack.
π₯ RETURN π₯
0 on success, or a negative error code if things go sideways π that's it, that's the whole return situation.
no cap: a negative error code means not success. please check it. your future self will thank you π«Ά
π¦ SEE ALSO π¦
- Kernel file
./net/ethtool/coalesce.c coalesce_put_profile(9)ethnl_update_profile(9)
go read those too, they're literally in the same friend group β¨
and that's the page, bestie π this lil masterpiece comes courtesy of the source/version ./net/ethtool, dated October 2026, and yes, she's officially titled ethnl_update_irq_moder(9) β slay, 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