mem, kmem - memory files
The file /dev/mem is an interface to the physical memory of
Byte offsets in this file are interpreted as physical memory
Reading and writing this file is equivalent to reading and
itself. An error will be returned if an attempt is made to
offset outside of /dev/mem.
Kernel virtual memory is accessed via the file /dev/kmem in
the same manner
as /dev/mem. Only kernel virtual addresses that are
to memory are allowed.
On the sparc64, physical memory may be discontiguous; kernel
begins at 0x001000000.
Writeability of these devices is controlled by the system
The /dev/mem and /dev/kmem files appeared in Version 6 AT&T
OpenBSD 3.6 October 5, 2001
[ Back ]