Scroll to navigation

mem(4) Device Drivers Manual mem(4)

이름

mem, kmem, port - 시스템메모리, 커널메모리와 시스템포트.

설명

/dev/mem is a character device file that is an image of the main memory of the computer. It may be used, for example, to examine (and even patch) the system.

Byte addresses in /dev/mem are interpreted as physical memory addresses. References to nonexistent locations cause errors to be returned.

검사와 패칭은 read-only나 write-only비트가 주어졌을때, 예기치 못한 결과를 낳을 수 있다.

Since Linux 2.6.26, and depending on the architecture, the CONFIG_STRICT_DEVMEM kernel configuration option limits the areas which can be accessed through this file. For example: on x86, RAM access is not allowed but accessing memory-mapped PCI regions is.

다음에 의해 생성된다:


mknod -m 660 /dev/mem c 1 1
chown root:kmem /dev/mem

The file /dev/kmem is the same as /dev/mem, except that the kernel virtual memory rather than physical memory is accessed. Since Linux 2.6.26, this file is available only if the CONFIG_DEVKMEM kernel configuration option is enabled.

다음에 의해 생성된다:


mknod -m 640 /dev/kmem c 1 2
chown root:kmem /dev/kmem

/dev/port는 I/O포트가 액세스되는 걸 제외하고는 /dev/mem과 같다.

다음에 의해 생성된다:


mknod -m 660 /dev/port c 1 4
chown root:kmem /dev/port

파일

/dev/mem
/dev/kmem
/dev/port

추가 참조

chown(1), mknod(1), ioperm(2)

번역

이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: ASPLINUX <man@asp-linux.co.kr>

이 번역은 무료 문서입니다. 저작권 조건에 대해서는 GNU General Public License 버전 3 이상을 읽으십시오. 책임이 없습니다.

이 매뉴얼 페이지의 번역에서 오류를 발견하면 translation-team-ko@googlegroups.com 로 이메일을 보내주십시오.

2022년 10월 30일 Linux man-pages 6.03