dim_update_sample(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dim_update_sample(9) β€” like, the whole kernel API manual vibe πŸ’–

okay so bestie, welcome to the dim_update_sample(9) page from the Kernel API Manual β€” yes that's the manual section, we're in kernel-land now, put your hair up πŸŽ€


✨ NAME ✨

dim_update_sample β€” sets a sample's fields with the values you give it. that's it. that's the whole job. she fills in the numbers, she minds her business πŸ’…


🌸 SYNOPSIS 🌸

void dim_update_sample (u16 event_ctr , u64 packets , u64 bytes , struct
dim_sample *s );

literally just hand her four things and she handles it 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • event_ctr β€” the number of events you want set. it's a u16, keep that in mind bestie, she's smol πŸ’€
  • packets β€” the number of packets to set.
  • bytes β€” the number of bytes to set. yes packets and bytes are two separate args, no you can't merge them, don't even try πŸ™ˆ
  • s β€” your DIM sample. that's the struct that's getting updated. she's the main character here πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

okay this list is long long, so buckle up, we're going through the whole friend group πŸ’œ β€” the kernel file ./include/linux/dim.h plus:

like I said. the whole group chat 🌈

ngl if you were looking for the version that does more than plain values, that's dim_update_sample_with_comps(9) up there β€” she's right there in the list, go say hi 🧚

anyway mwah, that's the page ✨ this one lives over in ./include/linux, dated October 2026, and it's brought to you by the dim_update_sample(9) girlies β€” stan her, she sets fields πŸ’–πŸŽ€

πŸ“¦ where this page comes from