drm_memcpy_from_wc(9)
π drm_memcpy_from_wc β the Kernel API Manual, bestie edition β¨
okay so you're in the Kernel API Manual (yes, the drm_memcpy_from_wc(9) one, that's literally the page you're on π«Ά) and you wanna know about the fastest available memcpy from a source that might be WC. Say less, I got you.
πΈ NAME πΈ
drm_memcpy_from_wc β bestie, it performs the fastest available memcpy from a source that may be WC. That's the whole vibe. No cap. π
β¨ SYNOPSIS β¨
void drm_memcpy_from_wc (struct iosys_map *dst , const struct iosys_map
*src , unsigned long len );
likeβ¦ look at her. iconic signature. π
π ARGUMENTS π
dstβ the destination pointer. where the bytes are going, periodt. πsrcβ the source pointer. where the bytes are coming from, the main character of this operation fr fr. πlenβ the size of the area of transfer, in bytes. literally just how much we're moving. count it. π’
π¦ DESCRIPTION π¦
So here's the tea β: this function tries an arch optimized memcpy for prefetching reading out of a WC region β like, the fancy arch-specific one that's built for peeking out of WC land π₯ β and if no such beast is available, it falls back to a normal memcpy.
that's it. that's the whole function. tries the cool one, defaults to the regular one. no drama, no cap. π β¨
ngl "no such beast is available" is the most iconic phrasing in kernel documentation and I will not be taking questions π
π SEE ALSO π
go read these next, bestie, they're all in the kernel file ./drivers/gpu/drm/drm_cache.c ποΈ:
all three. read them. slay. π
aaaand that's the page!! mwah π β sourced from ./drivers/gpu/drm, dated October 2026, and yeah the footer still says drm_memcpy_from_wc(9) because she's consistent like that. bye bestie, go memcpy something π§ββοΈππΈ
π¦ 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