iosys_map_rd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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__ β€” the iosys_map structure 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 🌈

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