Mike Rapoport | 41f35b3 | 2018-08-23 17:01:12 -0700 | [diff] [blame] | 1 | ====================== |
| 2 | Memory Management APIs |
| 3 | ====================== |
| 4 | |
| 5 | User Space Memory Access |
| 6 | ======================== |
| 7 | |
| 8 | .. kernel-doc:: arch/x86/include/asm/uaccess.h |
| 9 | :internal: |
| 10 | |
| 11 | .. kernel-doc:: arch/x86/lib/usercopy_32.c |
| 12 | :export: |
| 13 | |
Jonathan Corbet | cc84ac3 | 2019-10-01 08:47:47 -0600 | [diff] [blame] | 14 | .. kernel-doc:: mm/gup.c |
Mike Rapoport | 41f35b3 | 2018-08-23 17:01:12 -0700 | [diff] [blame] | 15 | :functions: get_user_pages_fast |
| 16 | |
Mike Rapoport | 09700f8 | 2018-09-14 12:27:57 +0300 | [diff] [blame] | 17 | .. _mm-api-gfp-flags: |
| 18 | |
Mike Rapoport | 038a07a | 2018-08-23 17:01:19 -0700 | [diff] [blame] | 19 | Memory Allocation Controls |
| 20 | ========================== |
| 21 | |
| 22 | Functions which need to allocate memory often use GFP flags to express |
| 23 | how that memory should be allocated. The GFP acronym stands for "get |
| 24 | free pages", the underlying memory allocation function. Not every GFP |
| 25 | flag is allowed to every function which may allocate memory. Most |
| 26 | users will want to use a plain ``GFP_KERNEL``. |
| 27 | |
| 28 | .. kernel-doc:: include/linux/gfp.h |
| 29 | :doc: Page mobility and placement hints |
| 30 | |
| 31 | .. kernel-doc:: include/linux/gfp.h |
| 32 | :doc: Watermark modifiers |
| 33 | |
| 34 | .. kernel-doc:: include/linux/gfp.h |
| 35 | :doc: Reclaim modifiers |
| 36 | |
| 37 | .. kernel-doc:: include/linux/gfp.h |
Mike Rapoport | 80a76c7 | 2019-01-14 20:32:58 +0200 | [diff] [blame] | 38 | :doc: Useful GFP flag combinations |
Mike Rapoport | 038a07a | 2018-08-23 17:01:19 -0700 | [diff] [blame] | 39 | |
Mike Rapoport | 41f35b3 | 2018-08-23 17:01:12 -0700 | [diff] [blame] | 40 | The Slab Cache |
| 41 | ============== |
| 42 | |
| 43 | .. kernel-doc:: include/linux/slab.h |
| 44 | :internal: |
| 45 | |
| 46 | .. kernel-doc:: mm/slab.c |
| 47 | :export: |
| 48 | |
Mike Rapoport | 54a67c7 | 2018-12-06 23:13:01 +0200 | [diff] [blame] | 49 | .. kernel-doc:: mm/slab_common.c |
| 50 | :export: |
| 51 | |
Mike Rapoport | 41f35b3 | 2018-08-23 17:01:12 -0700 | [diff] [blame] | 52 | .. kernel-doc:: mm/util.c |
| 53 | :functions: kfree_const kvmalloc_node kvfree |
| 54 | |
Mike Rapoport | 2f7e6f6 | 2018-11-28 16:45:44 +0200 | [diff] [blame] | 55 | Virtually Contiguous Mappings |
| 56 | ============================= |
| 57 | |
| 58 | .. kernel-doc:: mm/vmalloc.c |
| 59 | :export: |
| 60 | |
| 61 | File Mapping and Page Cache |
| 62 | =========================== |
Mike Rapoport | 41f35b3 | 2018-08-23 17:01:12 -0700 | [diff] [blame] | 63 | |
| 64 | .. kernel-doc:: mm/readahead.c |
| 65 | :export: |
| 66 | |
| 67 | .. kernel-doc:: mm/filemap.c |
| 68 | :export: |
| 69 | |
Mike Rapoport | 41f35b3 | 2018-08-23 17:01:12 -0700 | [diff] [blame] | 70 | .. kernel-doc:: mm/page-writeback.c |
| 71 | :export: |
| 72 | |
| 73 | .. kernel-doc:: mm/truncate.c |
| 74 | :export: |
Mike Rapoport | 2f7e6f6 | 2018-11-28 16:45:44 +0200 | [diff] [blame] | 75 | |
Matthew Wilcox (Oracle) | 767e5ee | 2020-04-01 21:07:55 -0700 | [diff] [blame] | 76 | .. kernel-doc:: include/linux/pagemap.h |
| 77 | :internal: |
| 78 | |
Mike Rapoport | 2f7e6f6 | 2018-11-28 16:45:44 +0200 | [diff] [blame] | 79 | Memory pools |
| 80 | ============ |
| 81 | |
| 82 | .. kernel-doc:: mm/mempool.c |
| 83 | :export: |
| 84 | |
| 85 | DMA pools |
| 86 | ========= |
| 87 | |
| 88 | .. kernel-doc:: mm/dmapool.c |
| 89 | :export: |
| 90 | |
| 91 | More Memory Management Functions |
| 92 | ================================ |
| 93 | |
| 94 | .. kernel-doc:: mm/memory.c |
| 95 | :export: |
| 96 | |
| 97 | .. kernel-doc:: mm/page_alloc.c |