aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/memory.c
diff options
context:
space:
mode:
authorLorenzo Stoakes <lorenzo.stoakes@oracle.com>2024-12-12 11:31:52 +0000
committerAndrew Morton <akpm@linux-foundation.org>2025-01-13 22:40:59 -0800
commit8ad946eb3df4ca1a243ce412e3e95f03b4468cbe (patch)
tree9bfb1033931c4a502e1968b5b958b4a93f423ee9 /mm/memory.c
parentmm: assert mmap write lock held on do_mmap(), mmap_region() (diff)
downloadwireguard-linux-8ad946eb3df4ca1a243ce412e3e95f03b4468cbe.tar.xz
wireguard-linux-8ad946eb3df4ca1a243ce412e3e95f03b4468cbe.zip
mm: add comments to do_mmap(), mmap_region() and vm_mmap()
It isn't always entirely clear to users the difference between do_mmap(), mmap_region() and vm_mmap(), so add comments to clarify what's going on in each. This is compounded by the fact that we actually allow callers external to mm to invoke both do_mmap() and mmap_region() (!), the latter of which is really strictly speaking an internal memory mapping implementation detail. Link: https://lkml.kernel.org/r/20241212113152.28849-1-lorenzo.stoakes@oracle.com Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Jann Horn <jannh@google.com> Cc: Liam R. Howlett <Liam.Howlett@Oracle.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions