The kmem character special device provides access to mapped kernel memory.
Byte addresses in kmem are equivalent to mapped kernel memory addresses. References to unmapped or user space addresses will return an error. Write accesses to console or PAL memory or to memory protected against writes will also return an error.
Because memory is read and written in aligned quadwords (eight contiguous bytes), writing fewer than all the bytes in an aligned quadword is a read-modify-write operation that is not protected against writes to the same quadword.
Device registers are accessed as aligned quadwords through kmem.
The kmem file is not available as a memory mapped file.
mem(7) delim off