Searched refs:munmap (Results 1 - 25 of 146) sorted by last modified time

123456

/linux-master/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c199 munmap(one_page, len);
347 munmap(*addr, fd_size);
396 munmap(addr, fd_size);
H A Dprotection_keys.c684 ret = munmap(rec->ptr, rec->size);
685 dprintf3("munmap ret: %d\n", ret);
1300 munmap(buf, 1*MB);
H A Dmdwe_test.c215 munmap(self->p, self->size);
H A Duffd-common.c154 munmap(*alloc_area, bytes);
261 if (munmap(*area, nr_pages * page_size))
262 err("munmap");
H A Dsoft-dirty.c61 munmap(map, pagesize);
74 munmap(map2, pagesize);
174 munmap(map, pagesize);
H A Dthuge-gen.c127 if (munmap(map, size * NUM_PAGES))
H A Dvirtual_address_range.c140 munmap(ptr[i], MAP_CHUNK_SIZE);
143 munmap(hptr[i], MAP_CHUNK_SIZE);
H A Dmremap_dontunmap.c58 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1,
62 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
121 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1,
123 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
154 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
173 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1,
175 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
220 BUG_ON(munmap(dest_mapping, num_pages * page_size) == -1,
222 BUG_ON(munmap(source_mapping, num_pages * page_size) == -1,
271 BUG_ON(munmap(dest_mappin
[all...]
H A Don-fault-limit.c27 munmap(map, 2 * lims.rlim_max);
H A Dmlock2-tests.c200 munmap(map, 2 * page_size);
208 munmap(map, 2 * page_size);
213 munmap(map, 2 * page_size);
251 munmap(map, 2 * page_size);
259 munmap(map, 2 * page_size);
264 munmap(map, 2 * page_size);
280 munmap(map, 2 * page_size);
287 munmap(map, 2 * page_size);
301 munmap(map, 2 * page_size);
308 munmap(ma
[all...]
H A Dmrelease_test.c45 munmap(buf, nr_pages * psize());
H A Dmap_hugetlb.c67 /* munmap with fail if the length is not page aligned */
97 /* munmap() length of MAP_HUGETLB memory must be hugepage aligned */
98 if (munmap(addr, length))
99 ksft_exit_fail_msg("munmap: %s\n", strerror(errno));
H A Dmap_fixed_noreplace.c35 if (munmap(addr, size) != 0)
36 ksft_exit_fail_msg("Error: munmap failed\n");
66 if (munmap((void *)addr, 5 * page_size) != 0) {
68 ksft_exit_fail_msg("Error: munmap failed!?\n");
186 if (munmap((void *)addr, size) != 0) {
188 ksft_exit_fail_msg("Error: munmap failed!?\n");
H A Dksm_functional_tests.c218 munmap(map, size);
241 munmap(map, size);
305 munmap(map, size);
333 munmap(map, size);
395 munmap(map, size);
560 munmap(map, size);
593 munmap(map, size);
H A Dhugetlb-madvise.c105 if (munmap(addr, huge_page_size) ||
106 munmap(addr + (NR_HUGE_PAGES + 1) * huge_page_size,
108 perror("munmap");
134 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
171 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
196 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
255 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
295 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
363 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size);
364 (void)munmap(addr
[all...]
/linux-master/tools/testing/selftests/
H A Dkselftest_harness.h1267 munmap(results, sizeof(*results));
/linux-master/tools/testing/selftests/kvm/
H A Dset_memory_region_test.c442 munmap(mem, (size_t)max_mem_slots * MEM_REGION_SIZE + alignment);
443 munmap(mem_extra, MEM_REGION_SIZE);
H A Dmax_guest_memory_test.c281 munmap(mem, slot_size / 2);
/linux-master/fs/bcachefs/
H A Dbtree_cache.c69 munmap(b->aux_data, btree_aux_data_bytes(b));
/linux-master/scripts/mod/
H A Dmodpost.c412 munmap(file, size);
/linux-master/tools/lib/bpf/
H A Dlibbpf.c1739 munmap(map->mmaped, old_sz);
8872 munmap(map->mmaped, bpf_map_mmap_sz(map));
12877 munmap(cpu_buf->base, pb->mmap_size + pb->page_size))
12878 pr_warn("failed to munmap cpu_buf #%d\n", cpu_buf->cpu);
/linux-master/tools/bpf/bpftool/
H A Dgen.c1508 munmap(obj_data, mmap_sz);
1823 munmap(obj_data, mmap_sz);
/linux-master/mm/
H A Dmmap.c2491 * do_vmi_align_munmap() - munmap the aligned region from @start to @end.
2495 * @start: The aligned start address to munmap.
2496 * @end: The aligned end address to munmap.
2530 * Make sure that map_count on return from munmap() will
2656 * do_vmi_munmap() - munmap a given range.
2659 * @start: The start address to munmap
2660 * @len: The length of the range to munmap
2701 * @start: The start address to munmap
2986 SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
/linux-master/tools/testing/selftests/user_events/
H A Dabi_test.c416 munmap(stack, stack_size);
/linux-master/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c673 ret = munmap(vcpu->dirty_gfns, vm->dirty_ring_size);
674 TEST_ASSERT(!ret, __KVM_SYSCALL_ERROR("munmap()", ret));
678 ret = munmap(vcpu->run, vcpu_mmap_sz());
679 TEST_ASSERT(!ret, __KVM_SYSCALL_ERROR("munmap()", ret));
722 ret = munmap(region->mmap_start, region->mmap_size);
723 TEST_ASSERT(!ret, __KVM_SYSCALL_ERROR("munmap()", ret));
726 ret = munmap(region->mmap_alias, region->mmap_size);
727 TEST_ASSERT(!ret, __KVM_SYSCALL_ERROR("munmap()", ret));

Completed in 315 milliseconds

123456