net_dim_setting(9)
π net_dim_setting π
okay so this page lives in the Kernel API Manual and it's literally all about net_dim_setting β the glow-up function that initializes DIM's cq mode and gets the worker scheduled. she's the setup bestie, the one who arrives first and gets everything cute before the party starts π
β¨ NAME β¨
net_dim_setting β initialize DIM's cq mode and schedule worker. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
void net_dim_setting (struct net_device *dev , struct dim *dim , bool
is_tx );
note the void β nothing comes back, no receipts, no return value, she just does the thing and leaves π
π¦ ARGUMENTS π¦
devβ target network device. like, the actual netdev you're setting up. the main character, if you will πdimβ DIM context. this is the state blob she's about to sprinkle her magic into β¨is_txβtruemeans the tx direction,falsemeans the rx direction. yes bestie it's a bool, and yes you have to remember which way is which π
ngl theis_txthing is giving "one flag, two moods" βtrue= tx,false= rx. no cap. don't flip it π
π«Ά SEE ALSO π«Ά
the whole DIM friend group, fr fr β go read these too, they're all interconnected and honestly iconic:
- 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_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)
and that's the whole page, bestie β she's short, she's sweet, she initializes a cq mode and schedules a worker and then dips π
this little icon was brought to you by the ./include/linux source, October 2026 edition, page net_dim_setting(9) β mwah, stay hydrated, go read your kernel docs πβ¨
π¦ 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