/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | mmap.c | 43 munmap(tmp1, 4096); in test_mmap() 126 err = munmap(map_mmaped, map_sz); in test_mmap() 154 err = munmap(p, map_sz); in test_mmap() 169 munmap(tmp1, map_sz); in test_mmap() 195 munmap(tmp0, 4 * page_size); in test_mmap() 200 err = munmap(tmp1 + page_size, page_size); in test_mmap() 202 munmap(tmp1, 4 * page_size); in test_mmap() 210 munmap(tmp1, page_size); in test_mmap() 211 munmap(tmp1 + 2*page_size, 2 * page_size); in test_mmap() 221 munmap(tmp1, 4 * page_size); /* unmap page 1 */ in test_mmap() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | mremap_dontunmap.c | 61 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 65 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in kernel_support_for_mremap_dontunmap() 124 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple() 126 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple() 170 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed() 172 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_simple_fixed() 220 BUG_ON(munmap(dest_mapping, 5 * page_size) == -1, in mremap_dontunmap_partial_mapping() 222 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1, in mremap_dontunmap_partial_mapping() 279 BUG_ON(munmap(dest_mapping, 10 * page_size) == -1, in mremap_dontunmap_partial_mapping_overwrite() 281 BUG_ON(munmap(source_mapping, 5 * page_size) == -1, in mremap_dontunmap_partial_mapping_overwrite() [all …]
|
D | khugepaged.c | 532 munmap(p, hpage_pmd_size); in alloc_at_fault() 548 munmap(p, hpage_pmd_size); in collapse_full() 562 munmap(p, hpage_pmd_size); in collapse_empty() 578 munmap(p, hpage_pmd_size); in collapse_single_pte_entry() 610 munmap(p, hpage_pmd_size); in collapse_max_ptes_none() 640 munmap(p, hpage_pmd_size); in collapse_swapin_single_pte() 692 munmap(p, hpage_pmd_size); in collapse_max_ptes_swap() 724 munmap(p, hpage_pmd_size); in collapse_single_pte_entry_compound() 756 munmap(p, hpage_pmd_size); in collapse_full_of_compound() 798 munmap(BASE_ADDR, hpage_pmd_size); in collapse_compound_extreme() [all …]
|
D | mlock2-tests.c | 225 munmap(map, 2 * page_size); in test_mlock_lock() 291 munmap(map, 2 * page_size); in test_mlock_onfault() 327 munmap(map, 2 * page_size); in test_lock_onfault_of_present() 362 munmap(map, 2 * page_size); in test_munlockall() 404 munmap(map, 2 * page_size); in test_munlockall() 492 munmap(map, 3 * page_size); in test_vma_management()
|
D | map_fixed_noreplace.c | 40 if (munmap(addr, size) != 0) { in find_base_addr() 80 if (munmap((void *)addr, 5 * page_size) != 0) { in main() 222 if (munmap((void *)addr, size) != 0) { in main()
|
D | virtual_address_range.c | 133 munmap(ptr[i], MAP_CHUNK_SIZE); in main() 136 munmap(hptr[i], MAP_CHUNK_SIZE); in main()
|
D | compaction_test.c | 204 munmap(map, MAP_SIZE); in main() 221 munmap(entry->map, MAP_SIZE); in main()
|
/kernel/liteos_a/testsuites/unittest/basic/mem/vm/smoke/ |
D | mmap_test_007.cpp | 65 ret = munmap(prev, len); in Testcase() 67 ret = munmap(next, len); in Testcase() 72 ret = munmap(mem, len); in Testcase() 76 ret = munmap(mem, len); in Testcase() 78 ret = munmap(prev, len); in Testcase() 82 ret = munmap(prev, len); in Testcase() 84 ret = munmap(next, len); in Testcase()
|
D | mmap_test_003.cpp | 68 ret = munmap(p1, pageSize); in Testcase() 70 ret = munmap(p2, pageSize); in Testcase() 72 ret = munmap(p3, pageSize); in Testcase()
|
D | mmap_test_004.cpp | 68 ret = munmap(p1, pageSize); in Testcase() 70 ret = munmap(p2, pageSize); in Testcase() 72 ret = munmap(p3, pageSize); in Testcase()
|
D | mmap_test_010.cpp | 47 ret = munmap(ptr, MMAP_SIZE); in Testcase() 53 ret = munmap(ptr, MMAP_SIZE); in Testcase()
|
D | mmap_test_008.cpp | 70 ret = munmap(mem, len); in Testcase() 74 ret = munmap(mem, len); in Testcase()
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/dvb/ |
D | dmx-munmap.rst | 4 .. _dmx-munmap: 7 DVB munmap() 13 dmx-munmap - Unmap device memory 25 .. c:function:: int munmap( void *start, size_t length ) 47 On success :c:func:`munmap()` returns 0, on failure -1 and the
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
D | func-munmap.rst | 4 .. _func-munmap: 7 V4L2 munmap() 13 v4l2-munmap - Unmap device memory 23 .. c:function:: int munmap( void *start, size_t length ) 49 On success :c:func:`munmap()` returns 0, on failure -1 and the
|
/kernel/liteos_a/testsuites/unittest/basic/exc/full/ |
D | it_test_fexecve_001.cpp | 88 munmap(p, st.st_size); in TestCase() 96 munmap(p, st.st_size); in TestCase() 102 munmap(p, st.st_size); in TestCase() 107 munmap(p, st.st_size); in TestCase()
|
/kernel/linux/linux-5.10/tools/io_uring/ |
D | setup.c | 37 munmap(sq->khead, sq->ring_sz); in io_uring_mmap() 46 munmap(sq->sqes, p->sq_entries * sizeof(struct io_uring_sqe)); in io_uring_mmap() 103 munmap(sq->sqes, *sq->kring_entries * sizeof(struct io_uring_sqe)); in io_uring_queue_exit() 104 munmap(sq->khead, sq->ring_sz); in io_uring_queue_exit() 105 munmap(cq->khead, cq->ring_sz); in io_uring_queue_exit()
|
/kernel/linux/linux-5.10/tools/testing/selftests/memfd/ |
D | memfd_test.c | 258 munmap(p, mfd_def_size); in mfd_assert_read() 271 munmap(p, mfd_def_size); in mfd_assert_read() 290 munmap(p, mfd_def_size); in mfd_assert_read_shared() 324 munmap(p, mfd_def_size); in mfd_assert_fork_private_write() 358 munmap(p, mfd_def_size); in mfd_assert_write() 372 munmap(p, mfd_def_size); in mfd_assert_write() 394 munmap(p, mfd_def_size); in mfd_assert_write() 458 munmap(p, mfd_def_size); in mfd_fail_write() 800 munmap(p, mfd_def_size); in test_seal_future_write() 946 munmap(p, mfd_def_size); in test_share_mmap() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 28 if (munmap(addr, SIZE)) { in test_body() 57 munmap(addr, SIZE); in test_body()
|
/kernel/linux/linux-5.10/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 74 munmap(addr, page_size); in TEST() 126 munmap(addr, page_size); in TEST() 174 munmap(addr, page_size); in TEST() 280 munmap(addr, FILE_SIZE); in TEST() 364 munmap(addr, FILE_SIZE); in TEST()
|
/kernel/linux/linux-5.10/arch/um/kernel/ |
D | tlb.c | 31 } munmap; member 85 op->u.munmap.addr, in do_ops() 86 op->u.munmap.len, finished, in do_ops() 90 (void *) op->u.munmap.addr, in do_ops() 91 op->u.munmap.len); in do_ops() 174 (last->u.munmap.addr + last->u.mmap.len == addr)) { in add_munmap() 175 last->u.munmap.len += len; in add_munmap() 187 .u = { .munmap = { .addr = addr, in add_munmap()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | xsk.c | 272 munmap(map, off.fr.desc + umem->config.fill_size * sizeof(__u64)); in xsk_create_umem_rings() 649 munmap(ctx->fill->ring - off.fr.desc, off.fr.desc + umem->config.fill_size * in xsk_put_ctx() 651 munmap(ctx->comp->ring - off.cr.desc, off.cr.desc + umem->config.comp_size * in xsk_put_ctx() 865 munmap(tx_map, off.tx.desc + in xsk_socket__create_shared() 869 munmap(rx_map, off.rx.desc + in xsk_socket__create_shared() 907 munmap(umem->fill_save->ring - off.fr.desc, in xsk_umem__delete() 909 munmap(umem->comp_save->ring - off.cr.desc, in xsk_umem__delete() 943 munmap(xsk->rx->ring - off.rx.desc, in xsk_socket__delete() 947 munmap(xsk->tx->ring - off.tx.desc, in xsk_socket__delete()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | mmap-thread-lookup.c | 75 munmap(td->map, page_size); in thread_fn() 122 munmap(td0->map, page_size); in threads_destroy()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/stringloops/ |
D | memcmp.c | 93 munmap(p + MAP_SIZE, MAP_SIZE); in testcase() 94 munmap(p + 3 * MAP_SIZE, MAP_SIZE); in testcase()
|
/kernel/linux/linux-5.10/arch/sparc/vdso/ |
D | vdso2c.c | 223 munmap(raw_addr, raw_len); in main() 224 munmap(stripped_addr, stripped_len); in main()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | srccode.c | 82 munmap(sf->map, sf->maplen); in free_srcfile() 148 munmap(h->map, sz); in find_srcfile()
|