drm_clflush_virt_range(9)
π drm_clflush_virt_range β like, the Kernel API Manual page you actually wanna read π
okay so bestie, welcome to the glow-up of drm_clflush_virt_range(9) from the Kernel API Manual β¨ honestly? iconic little function. tiny signature, huge responsibility. let's get into it π«Ά
πΈ NAME πΈ
drm_clflush_virt_range β flush dcache lines of a region π
like, the whole vibe: you point at a chunk of memory, it makes sure the data cache isn't lying to you. no cap.
β¨ SYNOPSIS β¨
void drm_clflush_virt_range (void *addr , unsigned long length );
that's it. that's the whole thing. two arguments, no return value, zero drama π
π¦ ARGUMENTS π¦
addrβ Initial kernel memory address. like, where the region starts. the starting point. the main character address πlengthβ Region size. how far we're going, bestie. the whole stretch of memory we care about π
π DESCRIPTION π
Flush every data cache line entry that points to an address in the region requested β¨
fr fr, that's the entire job β any cache line that's touching any address inside the region you handed over? flushed. gone. done. did it eat? yes it ate π
lowkey important: this is about dcache lines, not vibes. it flushes what points into the region, periodt.
π₯ SEE ALSO π₯
Kernel file ./drivers/gpu/drm/drm_cache.c β that's where the magic lives, iykyk π§
go read the siblings, they're all giving cache-coherence realness ππ
and that's the page, bestie!! this little baddie comes to you from ./drivers/gpu/drm and it's dated October 2026 β go forth, flush responsibly, and remember: drm_clflush_virt_range(9) would never leave you with a stale cache line ππ
β¨
π¦ 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