uds_prefetch_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ uds_prefetch_range(9) ✨

okay so bestie, welcome to the glow-up era of cache performance πŸ’… this one's a kernel API page, and honestly? it's giving "small function, big main character energy" πŸŽ€


🌸 NAME 🌸

uds_prefetch_range β€” the way this function literally minimizes cache-miss latency by attempting to move a range of addresses into a CPU cache before they are accessed. no cap, that's the whole vibe πŸ¦‹


✨ SYNOPSIS ✨

void uds_prefetch_range (const void *start , unsigned int size , bool
for_write );

look at her. three args, void return, zero drama πŸ™ˆ


πŸ’– ARGUMENTS πŸ’–

  • start β€” the starting address to fetch. and bestie, listen: it may be invalid 😭 that's not a typo, that's the actual contract, so don't come for me
  • size β€” the number of bytes in the address range πŸ“
  • for_write β€” this one must be constant at compile time ⭐ like, non-negotiable, compile-time-constant or nothing. it's false if you're reading, and true if you're writing πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

lowkey the energy here is "trust me bro, the compiler will handle it" β€” but fr fr, keep for_write constant at compile time or the vibe check fails πŸ’€

that's the whole page, bestie β€” go forth and prefetch responsibly 🫢

mwah πŸ’‹ β€” brought to you by the ./drivers/md/dm-vdo crew, October 2026 edition 🧚

πŸ“¦ where this page comes from