i915_memcpy_from_wc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, and len must 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 🌈


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