Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 카프카
- allocator
- slub
- Apache
- slowpath
- spinlock
- devicedriver
- mm_struct
- multiqueue
- Kernel
- vm_area_struct
- commit
- buddy_system
- kmalloc
- blk-mq
- BLOCK
- NDK
- lruvec
- Network
- Linux
- Android
- proc
- slab
- memory
- page
- fastpath
- kafka
- strex
- vmalloc
- pmap
Archives
- Today
- Total
목록mmap (1)
Art of Pr0gr4m
[Linux Kernel 5] mmap (메모리 매핑)
리눅스 시스템 프로그래밍 경험이 있다면 메모리 매핑은 꽤 익숙할 것이다. (만약 익숙치 않다면 꼭 다시 공부를 하기 바란다. 굉장히 중요하다.) 이번 포스트에선 커널이 메모리 매핑을 제공하기 위한 인터페이스를 살펴보고 예제를 작성해본다. 1. mmap interface mmap 오퍼레이션을 저장하기 위한 구조체는 다음과 같다. /* * These are the virtual MM functions - opening of an area, closing and * unmapping it (needed to keep files on disk up-to-date etc), pointer * to the functions called when a no-page or a wp-page exception occurs..
IT/Linux Kernel
2020. 5. 17. 10:11