i915_unalig...mcpy_from_wc(9)
π i915_unaligned_memcpy_from_wc π
ok so this is a page from the Kernel API Manual bestie, and it's about one very specific little copy function. buckle up, it's short but it's iconic β¨
πΈ NAME πΈ
i915_unaligned_memcpy_from_wc β the girlies said "copy from WC but like... make it fast, and don't be weird about alignment" π«
π¦ SYNOPSIS π¦
void i915_unaligned_memcpy_from_wc (void *dst , const void *src ,
unsigned long len );
π ARGUMENTS π
dstβ the destination pointer, aka where the bytes are going π«Άsrcβ the source pointer, aka where the bytes are coming from β¨lenβ how many bytes you're copying, literally just a count, no vibes attached
π DESCRIPTION π
so this is basically i915_memcpy_from_wc's messier little sibling, and ngl she is so real for that. she copies len bytes from src to dst using non-temporal instructions where available β yes bestie, the fast ones, we love to see it π₯
the whole point of the "unaligned" variant is that she accepts that her arguments may not be aligned. she's not gonna make a whole thing of it, she's not gonna throw a fit, she's just gonna do the copy. π
β οΈ but here's the catch, and it's a real one: the arguments must be valid for the potential 16-byte read past the end. so like, yes she's flexible about alignment, but she will read up to 16 bytes past the end of what you gave her, and you need that region to be actually valid. no cap, do not skip this part. π
π§ SEE ALSO π§
- Kernel file
./drivers/gpu/drm/i915/i915_memcpy.cβ the mothership itself π i915_memcpy_from_wc(9)β the aligned one, the original, the main character π
ok that's the whole page, short and sweet, she ate and left no crumbs π
and for the credits moment β this one lives over in ./drivers/gpu/drm/i915, dated October 2026, and the header/footer both spell the name as i915_unalig...mcpy_from_wc(9) because even manpage titles deserve a little truncation drama ππ slay, bye! π¦
π¦ 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