memcpy_toio(9)
π memcpy_toio β a kernel API manual moment, bestie β¨
okay so picture this: it's giving Kernel API Manual, it's giving memcpy_toio(9), and it's literally the function you call when you need bytes to go into I/O memory. sit down, hydrate, let's get into it π«Ά
πΈ NAME πΈ
memcpy_toio β copy a block of data into I/O memory. that's it. that's the whole vibe. no cap π
β¨ SYNOPSIS β¨
void memcpy_toio (volatile void __iomem *dst , const void *src , size_t
count );
look at her. three args, no return value, absolutely unbothered. she's a void girlie and she knows it π
π¦ ARGUMENTS π¦
dstβ the destination for the copy, and it's I/O memory, bestie. note thevolatile void __iomem *energy β this is not your regular RAM, this is the fancy address space πsrcβ the source of the data, and this one is RAM. regular degular memory. iconic of it honestly πcountβ the number of bytes to copy. yes, bytes. count them. be precise. slay β
π₯ DESCRIPTION π₯
Copy a block of data to I/O memory.
that's the whole description and honestly? she said what she said. no notes. periodt πβ¨
π SEE ALSO π
- Kernel file
./lib/iomem_copy.c memset_io(9)memcpy_fromio(9)
the whole iomem copy friend group!! go say hi to the other two, they're literally right there π§π
fr fr though: this is the "to I/O" direction. if you wanted data coming out of I/O memory, that'smemcpy_fromio(9), and if you're setting instead of copying, that'smemset_io(9). iykyk ππ¦
and that's the page!! source/version: ./lib, dated October 2026, manual memcpy_toio(9) β mwah, go copy some bytes responsibly, bestie πππ
π¦ 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