i915_memcpy_from_wc(9)
π i915_memcpy_from_wc π
okay bestie, this page comes from the Kernel API Manual, and the main character is i915_memcpy_from_wc(9) β manual name folded in right here, slay β¨
πΈ NAME πΈ
i915_memcpy_from_wc β perform an accelerated aligned read from WC π
β¨ SYNOPSIS β¨
bool i915_memcpy_from_wc (void *dst , const void *src , unsigned long
len );
π ARGUMENTS π
dstβ destination pointer, aka where the copied bytes are headed π«Άsrcβ source pointer, aka where the bytes are coming from πlenβ how many bytes to copy, literally the byte count π§
π¦ DESCRIPTION π¦
okay so i915_memcpy_from_wc copies len bytes from src to dst using non-temporal instructions where available. Highkey accelerated. β¨
bestie, the preconditions are not a vibe check you can skip: all arguments (src,dst) must be aligned to 16 bytes, andlenmust be a multiple of 16. No cap. π
To test whether accelerated reads from WC are supported, use this exact call:
i915_memcpy_from_wc(NULL, NULL, 0);
It returns true if the copy was successful, and false if the preconditions are not met. That's the whole mood. π
π SEE ALSO π
- Kernel file:
./drivers/gpu/drm/i915/i915_memcpy.cπ i915_unaligned_memcpy_from_wc(9)β the unaligned bestie in the see-also section π¦
and that's the page, bestie π the source/version line is ./drivers/gpu/drm/i915, dated October 2026, and we are so done here π
β¨
π¦ 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