Home
last modified time | relevance | path

Searched refs:mremap (Results 1 – 25 of 41) sorted by relevance

12

/linux/tools/testing/selftests/mm/
H A Dmremap_dontunmap.c53 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 Dhugepage-mremap.c148 void *addr = mremap(haddr, length, length, in main()
160 addr = mremap(addr, length, length, 0); in main()
H A Drun_vmtests.sh40 - mremap
41 tests for mremap(2)
269 CATEGORY="hugetlb" run_test ./hugepage-mremap
312 CATEGORY="userfaultfd" run_test ./uffd-wp-mremap
H A Dmremap_test.c241 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 Dsplit_huge_page_test.c218 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 Dkhugepaged.c851 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 Dvdso.c39 .mremap = vdso_mremap,
45 .mremap = vdso_mremap,
/linux/arch/arm64/kernel/
H A Dvdso.c254 .mremap = aarch32_sigpage_mremap,
258 .mremap = vdso_mremap,
401 .mremap = vdso_mremap,
/linux/Documentation/mm/
H A Dtranshuge.rst72 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 Dovercommit-accounting.rst43 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 Dvdso.c122 .mremap = vdso_mremap,
127 .mremap = vdso_mremap,
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dringbuf.c167 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 Dtagged-address-abi.rst51 ``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 Dtest_mremap_vdso.c42 new_addr = mremap(vdso_addr, size, size, in try_to_remap()
H A Dsysret_rip.c126 ret = mremap((void *)current_test_page_addr, 4096, 4096, in test_syscall_fallthrough_to()
/linux/tools/testing/selftests/powerpc/signal/
H A Dsigreturn_vdso.c96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED); in test_sigreturn_vdso()
/linux/Documentation/userspace-api/
H A Dmseal.rst92 - 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 Dvdso.c88 .mremap = vdso_mremap,
/linux/mm/
H A Dmremap.c765 } 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 Dmmap.c1433 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 Dnommu-mmap.rst180 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 Duserfaultfd.rst35 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 Dprocess.c392 .mremap = sigpage_mremap,
/linux/kernel/
H A Dsys_ni.c162 COND_SYSCALL(mremap);
/linux/arch/um/os-Linux/
H A Dfile.c735 res = mremap(old_addr, old_size, new_size, MREMAP_MAYMOVE, NULL); in os_mremap_rw_shared()

12