kmem(7)kmem(7)NAMEkmem - mapped kernel memory interface
DESCRIPTION
The kmem character special device provides access to mapped kernel mem‐
ory.
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 pro‐
tected against writes will also return an error.
RESTRICTIONS
Because memory is read and written in aligned quadwords (eight contigu‐
ous 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.
FILES
/dev/kmem
SEE ALSOmem(7)kmem(7)