| From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> |
| Subject: tools UAPI: update copy of linux/mman.h from the kernel sources |
| Date: Mon, 9 Jun 2025 14:26:38 +0100 |
| |
| Import newly introduced MREMAP_RELOCATE_ANON_* defines. |
| |
| Link: https://lkml.kernel.org/r/ad488a05068ece234efca1ef025208b2aaa127cb.1749473726.git.lorenzo.stoakes@oracle.com |
| Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> |
| Cc: Baolin Wang <baolin.wang@linux.alibaba.com> |
| Cc: Barry Song <baohua@kernel.org> |
| Cc: David Hildenbrand <david@redhat.com> |
| Cc: Dev Jain <dev.jain@arm.com> |
| Cc: Jakub Matěna <matenajakub@gmail.com> |
| Cc: Jann Horn <jannh@google.com> |
| Cc: Liam Howlett <liam.howlett@oracle.com> |
| Cc: Mariano Pache <npache@redhat.com> |
| Cc: Matthew Wilcox (Oracle) <willy@infradead.org> |
| Cc: Rik van Riel <riel@surriel.com> |
| Cc: Ryan Roberts <ryan.roberts@arm.com> |
| Cc: Suren Baghdasaryan <surenb@google.com> |
| Cc: Vlastimil Babka <vbabka@suse.cz> |
| Cc: Wei Yang <richard.weiyang@gmail.com> |
| Cc: Zi Yan <ziy@nvidia.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| tools/include/uapi/linux/mman.h | 8 +++++--- |
| 1 file changed, 5 insertions(+), 3 deletions(-) |
| |
| --- a/tools/include/uapi/linux/mman.h~tools-uapi-update-copy-of-linux-mmanh-from-the-kernel-sources |
| +++ a/tools/include/uapi/linux/mman.h |
| @@ -6,9 +6,11 @@ |
| #include <asm-generic/hugetlb_encode.h> |
| #include <linux/types.h> |
| |
| -#define MREMAP_MAYMOVE 1 |
| -#define MREMAP_FIXED 2 |
| -#define MREMAP_DONTUNMAP 4 |
| +#define MREMAP_MAYMOVE 1 |
| +#define MREMAP_FIXED 2 |
| +#define MREMAP_DONTUNMAP 4 |
| +#define MREMAP_RELOCATE_ANON 8 |
| +#define MREMAP_MUST_RELOCATE_ANON 16 |
| |
| #define OVERCOMMIT_GUESS 0 |
| #define OVERCOMMIT_ALWAYS 1 |
| _ |