|
@@ -7,8 +7,8 @@ mem - physical system memory
|
|
|
`/dev/mem` is a character device file that is used by other programs to examine
|
|
|
the physical memory.
|
|
|
|
|
|
-Trying to [`mmap`(2)](../mmap.md) a physical range results either with success,
|
|
|
-or with an error. When invoking [`mmap`(2)](../mmap.md) on bad memory range,
|
|
|
+Trying to [`mmap`(2)](../man2/mmap.md) a physical range results either with success,
|
|
|
+or with an error. When invoking [`mmap`(2)](../man2/mmap.md) on bad memory range,
|
|
|
the kernel will write a message about it to the kernel log.
|
|
|
|
|
|
By default, the kernel limits the areas which can be accessed. The allowed areas
|
|
@@ -21,11 +21,11 @@ mknod /dev/mem c 1 1
|
|
|
chmod 660 /dev/mem
|
|
|
```
|
|
|
|
|
|
-## Returned error values after [`mmap`(2)](../mmap.md)
|
|
|
+## Returned error values after [`mmap`(2)](../man2/mmap.md)
|
|
|
|
|
|
* `EINVAL`: An access violation was detected.
|
|
|
* `ENOMEM`: The requested range would wrap around, creating an access violation.
|
|
|
|
|
|
## See also
|
|
|
|
|
|
-* [`mmap`(2)](../mmap.md)
|
|
|
+* [`mmap`(2)](../man2/mmap.md)
|