copy_from_iter_toio(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… copy_from_iter_toio (kernel API manual, section 9) โœจ

okay so bestie, welcome to the Kernel API Manual โ€” section 9, the good section, the kernel-internals section ๐ŸŽ€ โ€” and today's main character is copy_from_iter_toio, which is literally just "move bytes from an iov_iter into mmio-space." That's it. That's the whole vibe. slay.


๐ŸŒธ NAME ๐ŸŒธ

copy_from_iter_toio โ€” copy data from iov_iter to mmio-space ๐Ÿ’ซ


โœจ SYNOPSIS โœจ

size_t copy_from_iter_toio (void __iomem *dst , size_t count , struct
       iov_iter *src );

look at her. three args, one size_t coming back. confident. no notes. ๐Ÿ‘‘


๐Ÿซถ ARGUMENTS ๐Ÿซถ

  • dst โ€” the destination pointer, and she lives on mmio-space ๐Ÿ’… (yes, the __iomem one, respect her)
  • count โ€” the data size to copy, measured in bytes ๐Ÿงฎ
  • src โ€” the source iov_iter, aka where the bytes are coming from ๐Ÿฆ‹

๐Ÿ’– DESCRIPTION ๐Ÿ’–

Copies the data from iov_iter to mmio-space. ๐ŸŽ€

that's the whole thing. bytes go in on the src side, bytes come out on the mmio side, and honestly? iconic behaviour. not me being obsessed with a copy function ๐Ÿ˜ญ


โญ RETURN โญ

number of bytes to be copied ๐Ÿ”ฅ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

like, she's got a whole friend group. iykyk. ๐Ÿฆ‹


ngl bestie, this one genuinely is just a copy โ€” no tricks, no gotchas hiding in here ๐Ÿ™ˆ

mwah ๐Ÿ’‹ that's the page! brought to you by the fine folks over in ./sound/core, dated October 2026 โ€” you're welcome, go copy some bytes responsibly, ily ๐Ÿซถโœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from