iosys_map_memcpy_from(9)
π iosys_map_memcpy_from β Kernel API Manual β¨
okay so bestie, welcome to the iosys_map_memcpy_from(9) page, straight out of the Kernel API Manual. this one's a little copy helper and it's honestly kind of iconic once you get what it's doing. let's get into it π«Ά
πΈ NAME πΈ
iosys_map_memcpy_from β memcpy from an iosys_map into system memory. that's the whole vibe. π
β¨ SYNOPSIS β¨
void iosys_map_memcpy_from (void *dst , const struct iosys_map *src ,
size_t src_offset , size_t len );
look at that signature, no cap. four args, one job. π₯
π ARGUMENTS π
dstβ the destination buffer, and it lives in system memory. that's where the data ends up, bestie.srcβ theiosys_mapstructure itself. this is where we're copying from πsrc_offsetβ the offset you start copying from. like, where in the map do we begin? πlenβ the number of bytes insrc. yes, it's literally byte-counting time β
π¦ DESCRIPTION π¦
so here's the tea: it copies data <highpink>from</highpink> an iosys_map, but with an offset applied β which is why src_offset exists. the destination buffer, dst, is chillin' in system memory.
and depending on where the mapping happens to be located, the helper picks the correct method of accessing that memory for you. so you don't have to think about it β it just knows. main character energy, fr fr π
ngl, this is one of those helpers where the whole point is that you don't care about the underlying mapping. let the helper handle the vibe check π
π SEE ALSO π
bestie, there is a whole family here and we are listing every single one of them, no skipping:
- Kernel file
./include/linux/iosys-map.hoverview(9) struct iosys_map(9)IOSYS_MAP_INIT_VADDR(9)IOSYS_MAP_INIT_VADDR_IOMEM(9)IOSYS_MAP_INIT_OFFSET(9)iosys_map_set_vaddr(9)iosys_map_set_vaddr_iomem(9)iosys_map_is_equal(9)iosys_map_is_null(9)iosys_map_is_set(9)iosys_map_clear(9)iosys_map_memcpy_to(9)iosys_map_incr(9)iosys_map_memset(9)iosys_map_rd(9)iosys_map_wr(9)iosys_map_rd_field(9)iosys_map_wr_field(9)
like I said. a whole family. go read up, iykyk π
and that's the page!! this came from ./include/linux, dated October 2026, under the title iosys_map_memcpy_from(9) β mwah, thanks for reading, ily, go copy some bytes responsibly π§ββοΈπ
π¦ 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