Home
last modified time | relevance | path

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

12

/kernel/liteos_a/testsuites/unittest/basic/mem/vm/smoke/
Dmremap_test_001.cpp48 newAddr = mremap(0, 0, 0, 0, 0); in Testcase()
52 newAddr = mremap(p, size, size, MREMAP_FIXED, 0); in Testcase()
57 newAddr = mremap(p, size, pageSize, MREMAP_MAYMOVE, 0); in Testcase()
61 newAddr = mremap(p, pageSize, pageSize, MREMAP_MAYMOVE, 0); in Testcase()
65 newAddr = mremap(p, pageSize, size, MREMAP_MAYMOVE, 0); in Testcase()
69 newAddr = mremap(p, size, pageSize, MREMAP_MAYMOVE | MREMAP_FIXED, p + pageSize); in Testcase()
73 newAddr = mremap(p, size, size, MREMAP_MAYMOVE | MREMAP_FIXED, p - pageSize); in Testcase()
77 newAddr = mremap(p, size, size + pageSize, MREMAP_MAYMOVE | MREMAP_FIXED, p - pageSize); in Testcase()
82 newAddr = mremap(p, size, size, MREMAP_MAYMOVE | MREMAP_FIXED, p + size); in Testcase()
85 newAddr = mremap(newAddr, size, size, MREMAP_MAYMOVE | MREMAP_FIXED, (char *)newAddr - size); in Testcase()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dmremap_dontunmap.c56 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in kernel_support_for_mremap_dontunmap()
111 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in mremap_dontunmap_simple()
152 mremap(source_mapping, num_pages * page_size, num_pages * page_size, in mremap_dontunmap_simple_fixed()
203 mremap(source_mapping + (5 * page_size), 5 * page_size, in mremap_dontunmap_partial_mapping()
261 mremap(source_mapping, 5 * page_size, in mremap_dontunmap_partial_mapping_overwrite()
Dkhugepaged.c777 p = mremap(BASE_ADDR - i * page_size, in collapse_compound_extreme()
787 p = mremap(BASE_ADDR + 2 * hpage_pmd_size, in collapse_compound_extreme()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dvdso.c311 .mremap = vvar_mremap,
315 .mremap = aarch32_vdso_mremap,
471 .mremap = vvar_mremap,
475 .mremap = vdso_mremap,
/kernel/linux/linux-5.10/Documentation/vm/
Dovercommit-accounting.rst45 The C language stack growth does an implicit mremap. If you want absolute
76 * We account mremap changes in size
Dtranshuge.rst79 Example to make mremap.c transparent hugepage aware with a one liner
82 diff --git a/mm/mremap.c b/mm/mremap.c
83 --- a/mm/mremap.c
84 +++ b/mm/mremap.c
/kernel/linux/linux-5.10/tools/testing/selftests/x86/
Dtest_mremap_vdso.c41 new_addr = mremap(vdso_addr, size, size, in try_to_remap()
Dsysret_rip.c134 ret = mremap((void *)current_test_page_addr, 4096, 4096, in test_syscall_fallthrough_to()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/signal/
Dsigreturn_vdso.c96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED); in test_sigreturn_vdso()
/kernel/linux/linux-5.10/arch/x86/entry/vdso/
Dvma.c250 .mremap = vdso_mremap,
255 .mremap = vvar_mremap,
/kernel/linux/linux-5.10/mm/
Dmremap.c379 } else if (vma->vm_ops && vma->vm_ops->mremap) { in move_vma()
380 err = vma->vm_ops->mremap(new_vma); in move_vma()
659 SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, in SYSCALL_DEFINE5() argument
DMakefile39 mlock.o mmap.o mmu_gather.o mprotect.o mremap.o \
/kernel/linux/linux-5.10/arch/s390/kernel/
Dvdso.c81 .mremap = vdso_mremap,
/kernel/linux/linux-5.10/Documentation/arm64/
Dtagged-address-abi.rst51 ``mremap()`` as these have the potential to alias with existing
56 ``mmap()`` and ``mremap()`` system calls.
/kernel/linux/linux-5.10/arch/arm/kernel/
Dvdso.c69 .mremap = vdso_mremap,
Dprocess.c398 .mremap = sigpage_mremap,
/kernel/linux/linux-5.10/kernel/
Dsys_ni.c259 COND_SYSCALL(mremap);
/kernel/linux/linux-5.10/include/linux/
Dmm_types.h820 int (*mremap)(const struct vm_special_mapping *sm, member
/kernel/linux/linux-5.10/Documentation/admin-guide/mm/
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
Duserfaultfd.rst34 management of mremap/mprotect is that the userfaults in all their
244 enable notifications about mremap() calls. When the
269 implicitly (e.g. during mremap()), the area is removed and in turn the
/kernel/linux/linux-5.10/arch/sparc/kernel/syscalls/
Dsyscall.tbl301 250 32 mremap sys_mremap
302 250 64 mremap sys_64_mremap
/kernel/linux/linux-5.10/arch/mips/kernel/syscalls/
Dsyscall_n64.tbl34 24 n64 mremap sys_mremap
Dsyscall_n32.tbl34 24 n32 mremap sys_mremap
/kernel/linux/linux-5.10/arch/ia64/kernel/syscalls/
Dsyscall.tbl144 132 common mremap ia64_mremap
/kernel/linux/linux-5.10/arch/xtensa/kernel/syscalls/
Dsyscall.tbl100 88 common mremap sys_mremap

12