flush_dcache_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is flush_dcache_range(9) from the Kernel API Manual, and it is literally the function that writes any modified data cache blocks out to memory and invalidates them. πŸŽ€

⚠️ important caveat, no cap: it does not invalidate the corresponding instruction cache blocks. πŸ’…

✨ SYNOPSIS ✨

void flush_dcache_range (unsigned long start , unsigned long stop );

πŸŽ€ ARGUMENTS πŸŽ€

  • start β€” the start address, fr fr 🫢
  • stop β€” the stop address, and yes it is exclusive πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./arch/powerpc/include/asm/cacheflush.h β€” go peek, iykyk πŸ‘‘

with love from source/version ./arch/powerpc/include/asm, dated October 2026, aka the lil crew behind flush_dcache_range(9) πŸ’œβœ¨

πŸ“¦ where this page comes from