mm-api.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ======================
  2. Memory Management APIs
  3. ======================
  4. User Space Memory Access
  5. ========================
  6. .. kernel-doc:: arch/x86/include/asm/uaccess.h
  7. :internal:
  8. .. kernel-doc:: arch/x86/lib/usercopy_32.c
  9. :export:
  10. .. kernel-doc:: mm/gup.c
  11. :functions: get_user_pages_fast
  12. .. _mm-api-gfp-flags:
  13. Memory Allocation Controls
  14. ==========================
  15. Functions which need to allocate memory often use GFP flags to express
  16. how that memory should be allocated. The GFP acronym stands for "get
  17. free pages", the underlying memory allocation function. Not every GFP
  18. flag is allowed to every function which may allocate memory. Most
  19. users will want to use a plain ``GFP_KERNEL``.
  20. .. kernel-doc:: include/linux/gfp.h
  21. :doc: Page mobility and placement hints
  22. .. kernel-doc:: include/linux/gfp.h
  23. :doc: Watermark modifiers
  24. .. kernel-doc:: include/linux/gfp.h
  25. :doc: Reclaim modifiers
  26. .. kernel-doc:: include/linux/gfp.h
  27. :doc: Useful GFP flag combinations
  28. The Slab Cache
  29. ==============
  30. .. kernel-doc:: include/linux/slab.h
  31. :internal:
  32. .. kernel-doc:: mm/slab.c
  33. :export:
  34. .. kernel-doc:: mm/slab_common.c
  35. :export:
  36. .. kernel-doc:: mm/util.c
  37. :functions: kfree_const kvmalloc_node kvfree
  38. Virtually Contiguous Mappings
  39. =============================
  40. .. kernel-doc:: mm/vmalloc.c
  41. :export:
  42. File Mapping and Page Cache
  43. ===========================
  44. .. kernel-doc:: mm/readahead.c
  45. :export:
  46. .. kernel-doc:: mm/filemap.c
  47. :export:
  48. .. kernel-doc:: mm/page-writeback.c
  49. :export:
  50. .. kernel-doc:: mm/truncate.c
  51. :export:
  52. .. kernel-doc:: include/linux/pagemap.h
  53. :internal:
  54. Memory pools
  55. ============
  56. .. kernel-doc:: mm/mempool.c
  57. :export:
  58. DMA pools
  59. =========
  60. .. kernel-doc:: mm/dmapool.c
  61. :export:
  62. More Memory Management Functions
  63. ================================
  64. .. kernel-doc:: mm/memory.c
  65. :export:
  66. .. kernel-doc:: mm/page_alloc.c