| 1 |
.. include:: ../disclaimer-zh_CN.rst |
| 2 |
|
| 3 |
:Original: Documentation/core-api/mm-api.rst |
| 4 |
|
| 5 |
:翻译: |
| 6 |
|
| 7 |
司延腾 Yanteng Si <[email protected]> |
| 8 |
周彬彬 Binbin Zhou <[email protected]> |
| 9 |
|
| 10 |
:校译: |
| 11 |
|
| 12 |
时奎亮<[email protected]> |
| 13 |
|
| 14 |
.. _cn_core-api_mm-api: |
| 15 |
|
| 16 |
============ |
| 17 |
内存管理APIs |
| 18 |
============ |
| 19 |
|
| 20 |
API(Application Programming Interface,应用程序接口) |
| 21 |
|
| 22 |
用户空间内存访问 |
| 23 |
================ |
| 24 |
|
| 25 |
该API在以下内核代码中: |
| 26 |
|
| 27 |
arch/x86/include/asm/uaccess.h |
| 28 |
|
| 29 |
arch/x86/lib/usercopy_32.c |
| 30 |
|
| 31 |
mm/gup.c |
| 32 |
|
| 33 |
.. _cn_mm-api-gfp-flags: |
| 34 |
|
| 35 |
内存分配控制 |
| 36 |
============ |
| 37 |
|
| 38 |
该API在以下内核代码中: |
| 39 |
|
| 40 |
include/linux/gfp_types.h |
| 41 |
|
| 42 |
Slab缓存 |
| 43 |
======== |
| 44 |
|
| 45 |
此缓存非cpu片上缓存,请读者自行查阅资料。 |
| 46 |
|
| 47 |
该API在以下内核代码中: |
| 48 |
|
| 49 |
include/linux/slab.h |
| 50 |
|
| 51 |
mm/slab.c |
| 52 |
|
| 53 |
mm/slab_common.c |
| 54 |
|
| 55 |
mm/util.c |
| 56 |
|
| 57 |
虚拟连续(内存页)映射 |
| 58 |
====================== |
| 59 |
|
| 60 |
该API在以下内核代码中: |
| 61 |
|
| 62 |
mm/vmalloc.c |
| 63 |
|
| 64 |
|
| 65 |
文件映射和页面缓存 |
| 66 |
================== |
| 67 |
|
| 68 |
该API在以下内核代码中: |
| 69 |
|
| 70 |
文件映射 |
| 71 |
-------- |
| 72 |
|
| 73 |
mm/filemap.c |
| 74 |
|
| 75 |
预读 |
| 76 |
---- |
| 77 |
|
| 78 |
mm/readahead.c |
| 79 |
|
| 80 |
回写 |
| 81 |
---- |
| 82 |
|
| 83 |
mm/page-writeback.c |
| 84 |
|
| 85 |
截断 |
| 86 |
---- |
| 87 |
|
| 88 |
mm/truncate.c |
| 89 |
|
| 90 |
include/linux/pagemap.h |
| 91 |
|
| 92 |
内存池 |
| 93 |
====== |
| 94 |
|
| 95 |
该API在以下内核代码中: |
| 96 |
|
| 97 |
mm/mempool.c |
| 98 |
|
| 99 |
DMA池 |
| 100 |
===== |
| 101 |
|
| 102 |
DMA(Direct Memory Access,直接存储器访问) |
| 103 |
|
| 104 |
该API在以下内核代码中: |
| 105 |
|
| 106 |
mm/dmapool.c |
| 107 |
|
| 108 |
更多的内存管理函数 |
| 109 |
================== |
| 110 |
|
| 111 |
该API在以下内核代码中: |
| 112 |
|
| 113 |
mm/memory.c |
| 114 |
|
| 115 |
mm/page_alloc.c |
| 116 |
|
| 117 |
mm/mempolicy.c |
| 118 |
|
| 119 |
include/linux/mm_types.h |
| 120 |
|
| 121 |
include/linux/mm_inline.h |
| 122 |
|
| 123 |
include/linux/page-flags.h |
| 124 |
|
| 125 |
include/linux/mm.h |
| 126 |
|
| 127 |
include/linux/page_ref.h |
| 128 |
|
| 129 |
include/linux/mmzone.h |
| 130 |
|
| 131 |
mm/util.c |