dim_update_s...e_with_comps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a u16, so keep it smol and cute πŸ“)
  • packets β€” the number of packets to set
  • bytes β€” the number of bytes to set
  • comps β€” the number of completions to set β€” this is the thing that makes her different from plain dim_update_sample(9), iykyk πŸ‘€
  • s β€” your DIM sample, aka the struct dim_sample she's gonna be writing into πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

so you wanna go down the rabbit hole? valid. here's the whole friend group:


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