iosys_map_wr(9)
β¨ iosys_map_wr(9) β¨
okay bestie, welcome to the Kernel API Manual π this one is a lil function called iosys_map_wr and it's literally the "write a C-type value to the iosys_map" queen π
πΈ NAME πΈ
iosys_map_wr β Write a C-type value to the iosys_map π«Ά
π SYNOPSIS π
iosys_map_wr (map__ , offset__ , type__ , val__ );
π¦ ARGUMENTS π¦
map__β Theiosys_mapstructure π like, the map itself, the whole vibeoffset__β The offset from the mapping to write to π where in the map we're dropping the valuetype__β Type of the value being written π·οΈ so it knows what it's dealing withval__β Value to write βοΈ the actual thing going in
β DESCRIPTION β
So here's the tea β: this writes a C type value β specifically u8, u16, u32 and u64 β to the iosys_map. Slay, simple, iconic. π
but likeβ¦ for other types, or if the pointer may be unaligned (which is lowkey problematic for the architecture supported π), you gotta use iosys_map_memcpy_to instead. no cap, don't skip that part.
π SEE ALSO π
the whole friend group fr fr π«Ά β starting with the Kernel file ./include/linux/iosys-map.h overview(9):
- overview(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_memcpy_from(9)iosys_map_incr(9)iosys_map_memset(9)iosys_map_rd(9)iosys_map_rd_field(9)iosys_map_wr_field(9)
and that's the whole page bestie, mwah π this little icon lives in ./include/linux, stamped October 2026 β go forth and write those u8s, u16s, u32s and u64s ππ§π
π¦ 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