/linux/tools/testing/selftests/mm/ |
H A D | mremap_dontunmap.c | 53 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in kernel_support_for_mremap_dontunmap() 108 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in mremap_dontunmap_simple() 150 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in mremap_dontunmap_simple_shmem() 202 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in mremap_dontunmap_simple_fixed() 254 mremap(source_mapping + (5 * page_size), 5 * page_size, in mremap_dontunmap_partial_mapping() 313 mremap(source_mapping, 5 * page_size, in mremap_dontunmap_partial_mapping_overwrite()
|
H A D | hugepage-mremap.c | 148 void *addr = mremap(haddr, length, length, in main() 160 addr = mremap(addr, length, length, 0); in main()
|
H A D | run_vmtests.sh | 40 - mremap 41 tests for mremap(2) 269 CATEGORY="hugetlb" run_test ./hugepage-mremap 312 CATEGORY="userfaultfd" run_test ./uffd-wp-mremap
|
H A D | mremap_test.c | 241 char *test_name = "mremap expand merge"; in mremap_expand_merge() 254 remap = mremap(start, page_size, 2 * page_size, 0); in mremap_expand_merge() 256 ksft_print_msg("mremap failed: %s\n", strerror(errno)); in mremap_expand_merge() 281 char *test_name = "mremap expand merge offset"; in mremap_expand_merge_offset() 295 remap = mremap(start + page_size, page_size, 2 * page_size, 0); in mremap_expand_merge_offset() 297 ksft_print_msg("mremap failed: %s\n", strerror(errno)); in mremap_expand_merge_offset() 314 * Verify that an mremap within a range does not cause corruption 323 * adjacent mremap. 329 char *test_name = "mremap mremap mov in mremap_move_within_range() [all...] |
H A D | split_huge_page_test.c | 218 pte_mapped = mremap(one_page, pagesize, pagesize, MREMAP_MAYMOVE); in split_pte_mapped_thp() 222 pte_mapped2 = mremap(one_page + pmd_pagesize * i + pagesize * i, in split_pte_mapped_thp() 227 ksft_exit_fail_msg("mremap failed: %s\n", strerror(errno)); in split_pte_mapped_thp() 230 /* smap does not show THPs after mremap, use kpageflags instead */ in split_pte_mapped_thp() 238 ksft_exit_fail_msg("Some THPs are missing during mremap\n"); in split_pte_mapped_thp() 244 /* smap does not show THPs after mremap, use kpageflags instead */ in split_pte_mapped_thp()
|
H A D | khugepaged.c | 851 p = mremap(BASE_ADDR - i * page_size, in collapse_compound_extreme() 861 p = mremap(BASE_ADDR + 2 * hpage_pmd_size, in collapse_compound_extreme()
|
/linux/arch/parisc/kernel/ |
H A D | vdso.c | 39 .mremap = vdso_mremap, 45 .mremap = vdso_mremap,
|
/linux/arch/arm64/kernel/ |
H A D | vdso.c | 254 .mremap = aarch32_sigpage_mremap, 258 .mremap = vdso_mremap, 401 .mremap = vdso_mremap,
|
/linux/Documentation/mm/ |
H A D | transhuge.rst | 72 Example to make mremap.c transparent hugepage aware with a one liner 75 diff --git a/mm/mremap.c b/mm/mremap.c 76 --- a/mm/mremap.c 77 +++ b/mm/mremap.c
|
H A D | overcommit-accounting.rst | 43 The C language stack growth does an implicit mremap. If you want absolute 74 * We account mremap changes in size
|
/linux/arch/s390/kernel/ |
H A D | vdso.c | 122 .mremap = vdso_mremap, 127 .mremap = vdso_mremap,
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | ringbuf.c | 167 tmp_ptr = mremap(mmap_ptr, page_size, 2 * page_size, MREMAP_MAYMOVE); in ringbuf_subtest() 196 ASSERT_ERR_PTR(mremap(mmap_ptr, 0, 4 * page_size, MREMAP_MAYMOVE), "ro_remap"); in ringbuf_subtest() 206 ASSERT_ERR_PTR(mremap(mmap_ptr, 0, 3 * page_size, MREMAP_MAYMOVE), "ro_remap"); in ringbuf_subtest()
|
/linux/Documentation/arch/arm64/ |
H A D | tagged-address-abi.rst | 51 ``mremap()`` as these have the potential to alias with existing 56 ``mmap()`` and ``mremap()`` system calls. 130 - ``mremap()``, the ``new_address`` argument (since kernel v5.6).
|
/linux/tools/testing/selftests/x86/ |
H A D | test_mremap_vdso.c | 42 new_addr = mremap(vdso_addr, size, size, in try_to_remap()
|
H A D | sysret_rip.c | 126 ret = mremap((void *)current_test_page_addr, 4096, 4096, in test_syscall_fallthrough_to()
|
/linux/tools/testing/selftests/powerpc/signal/ |
H A D | sigreturn_vdso.c | 96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED); in test_sigreturn_vdso()
|
/linux/Documentation/userspace-api/ |
H A D | mseal.rst | 92 - mremap 97 The first set of syscalls to block is munmap, mremap, mmap. They can 123 - mmap and mremap: undefined behavior.
|
/linux/arch/loongarch/kernel/ |
H A D | vdso.c | 88 .mremap = vdso_mremap,
|
/linux/mm/ |
H A D | mremap.c | 765 } else if (vma->vm_ops && vma->vm_ops->mremap) { in move_vma() 766 err = vma->vm_ops->mremap(new_vma); in move_vma() 1045 SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, in SYSCALL_DEFINE5() argument
|
H A D | mmap.c | 1433 if (sm->mremap) in special_mapping_mremap() 1434 return sm->mremap(sm, new_vma); in special_mapping_mremap() 1453 .mremap = special_mapping_mremap,
|
/linux/Documentation/admin-guide/mm/ |
H A D | nommu-mmap.rst | 180 No-MMU mremap 183 The mremap() function is partially supported. It may change the size of a 194 The mremap() function must be given an exact match for base address and size of
|
H A D | userfaultfd.rst | 35 management of mremap/mprotect is that the userfaults in all their 381 enable notifications about mremap() calls. When the 406 implicitly (e.g. during mremap()), the area is removed and in turn the
|
/linux/arch/arm/kernel/ |
H A D | process.c | 392 .mremap = sigpage_mremap,
|
/linux/kernel/ |
H A D | sys_ni.c | 162 COND_SYSCALL(mremap);
|
/linux/arch/um/os-Linux/ |
H A D | file.c | 735 res = mremap(old_addr, old_size, new_size, MREMAP_MAYMOVE, NULL); in os_mremap_rw_shared()
|