iosys_map_wr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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__ β€” The iosys_map structure πŸ’… like, the map itself, the whole vibe
  • offset__ β€” The offset from the mapping to write to πŸ“ where in the map we're dropping the value
  • type__ β€” Type of the value being written 🏷️ so it knows what it's dealing with
  • val__ β€” 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