iosys_map_rd(9)
π iosys_map_rd β the Kernel API Manual bestie π
Okay so, hi, welcome to iosys_map_rd(9), a little function from the Kernel API Manual that literally just reads a value out of an iosys_map for you β¨
πΈ NAME πΈ
iosys_map_rd β read a C-type value from the iosys_map, that's it, that's the whole gig π«Ά
π SYNOPSIS π
iosys_map_rd (map__ , offset__ , type__ );
Three args, no drama, we love a clean signature π
π¦ ARGUMENTS π¦
map__β theiosys_mapstructure itself. like, the map you're reading from, bestie.offset__β the offset you're reading from. yes, exactly where you think it is πtype__β the type of the value being read. tell it what you're pulling out π
β¨ DESCRIPTION β¨
So what it does is, it reads a C-type value from iosys_map. and when we say C-type value, we mean it: u8, u16, u32 and u64. those four. that's the whole lineup π
π¨ Real talk though: for other types, or if the pointer may be unaligned (which is problematic on the architecture you're supporting), you do not use this one. use iosys_map_memcpy_from instead. not me warning you and then you ignoring me π
π₯ RETURN π₯
It returns the value read from the mapping. iconic behavior, no notes π
π SEE ALSO π
- 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_memcpy_from(9)iosys_map_incr(9)iosys_map_memset(9)iosys_map_wr(9)iosys_map_rd_field(9)iosys_map_wr_field(9)
like the whole iosys_map friend group fr fr π
anyway that's the page!! brought to you by ./include/linux, dated October 2026 β mwah, go read some kernel headers, ily, 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