Home
last modified time | relevance | path

Searched refs:mmap (Results 201 - 225 of 2047) sorted by relevance

12345678910>>...82

/kernel/linux/linux-5.10/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c54 addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, in check_error_paths()
57 err("mmap() failed: %m\n"); in check_error_paths()
61 addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ, in check_error_paths()
64 err("mmap() failed: %m\n"); in check_error_paths()
/kernel/linux/linux-5.10/tools/testing/selftests/x86/
H A Dfsgsbase_restore.c51 unsigned int *target = mmap( in init_seg()
56 err(1, "mmap"); in init_seg()
79 struct user_desc *low_desc = mmap( in init_seg()
/kernel/linux/linux-5.10/tools/testing/selftests/sigaltstack/
H A Dsas.c115 sstack = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, in main()
118 ksft_exit_fail_msg("mmap() - %s\n", strerror(errno)); in main()
159 ustack = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, in main()
162 ksft_exit_fail_msg("mmap() - %s\n", strerror(errno)); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dwrite_to_hugetlbfs.c40 "[-m <0=hugetlbfs | 1=mmap(MAP_HUGETLB)>] [-l] [-r] " in exit_usage()
171 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, in main()
184 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, in main()
192 err(1, "mmap"); in main()
/kernel/linux/linux-6.6/arch/arm/vdso/
H A Dvdsomunge.c145 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main()
186 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
/kernel/linux/linux-6.6/arch/um/os-Linux/
H A Dmem.c30 if (mmap(start, in kasan_map_memory()
217 addr = mmap(NULL, UM_KERN_PAGE_SIZE, in check_tmpexec()
219 os_info("Checking PROT_EXEC mmap in %s...", tempdir); in check_tmpexec()
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_gem.h154 * @mmap:
156 * Handle mmap() of the gem object, setup vma accordingly.
161 * drm_gem_prime_mmap(). When @mmap is present @vm_ops is not
162 * used, the @mmap callback must set vma->vm_ops instead.
164 int (*mmap)(struct drm_gem_object *obj, struct vm_area_struct *vma); member
169 * Virtual memory operations used with mmap.
171 * This is optional but necessary for mmap support.
180 * mostly around handling mmap and userspace handles.
227 * Mapping info for this object to support mmap. Drivers are supposed to
228 * allocate the mmap offse
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dwrite_to_hugetlbfs.c40 "[-m <0=hugetlbfs | 1=mmap(MAP_HUGETLB)>] [-l] [-r] " in exit_usage()
171 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, in main()
184 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, in main()
192 err(1, "mmap"); in main()
H A Drun_vmtests.sh27 - mmap
28 tests for mmap(2)
72 example: ./run_vmtests.sh -t "hmm mmap ksm"
209 CATEGORY="hugetlb" run_test ./hugepage-mmap
230 CATEGORY="mmap" run_test ./map_fixed_noreplace
261 CATEGORY="mmap" run_test ./map_populate
/kernel/linux/linux-6.6/tools/testing/selftests/sigaltstack/
H A Dsas.c125 sstack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in main()
128 ksft_exit_fail_msg("mmap() - %s\n", strerror(errno)); in main()
169 ustack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in main()
172 ksft_exit_fail_msg("mmap() - %s\n", strerror(errno)); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c54 addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, in check_error_paths()
57 err("mmap() failed: %m\n"); in check_error_paths()
61 addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ, in check_error_paths()
64 err("mmap() failed: %m\n"); in check_error_paths()
/kernel/linux/linux-6.6/tools/testing/selftests/x86/
H A Dfsgsbase_restore.c51 unsigned int *target = mmap( in init_seg()
56 err(1, "mmap"); in init_seg()
79 struct user_desc *low_desc = mmap( in init_seg()
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dsem_open.c91 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
124 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
H A Dhugepage.h129 if ((addr = mmap(0, size, in alloc_anonymous_hugepage()
131 perror("mmap"); in alloc_anonymous_hugepage()
147 if ((addr = mmap(0, size, in alloc_filebacked_hugepage()
149 perror("mmap"); in alloc_filebacked_hugepage()
/third_party/ltp/testcases/kernel/mce-test/hwpoison/
H A Dhugepage.h129 if ((addr = mmap(0, size, in alloc_anonymous_hugepage()
131 perror("mmap"); in alloc_anonymous_hugepage()
147 if ((addr = mmap(0, size, in alloc_filebacked_hugepage()
149 perror("mmap"); in alloc_filebacked_hugepage()
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dbpf.c19 #include <perf/mmap.h>
24 #include "util/mmap.h"
186 struct mmap *md; in do_test()
188 md = &evlist->mmap[i]; in do_test()
/kernel/linux/linux-5.10/fs/
H A Dbinfmt_aout.c135 * Requires a mmap handler. This prevents people from using a.out in load_aout_binary()
138 if (!bprm->file->f_op->mmap) in load_aout_binary()
213 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { in load_aout_binary()
279 * Requires a mmap handler. This prevents people from using a.out in load_aout_library()
282 if (!file->f_op->mmap) in load_aout_library()
309 /* Now use mmap to map the library into memory. */ in load_aout_library()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dmmap-basic.c13 #include "util/mmap.h"
19 #include <perf/mmap.h>
23 * then establish an mmap for a group of events that are created to monitor
26 * It will receive the events, using mmap, use its PERF_SAMPLE_ID generated
47 struct mmap *md; in test__basic_mmap()
110 pr_debug("failed to mmap events: %d (%s)\n", errno, in test__basic_mmap()
120 md = &evlist->mmap[0]; in test__basic_mmap()
206 pr_err("failed to mmap evsel: %s\n", strerror(-err)); in test_stat_user_read()
282 TEST_CASE_REASON("Read samples using the mmap interface",
307 .desc = "mmap interfac
[all...]
/third_party/icu/icu4c/source/common/
H A Dumapfile.cpp239 data=mmap(0, length, PROT_READ, MAP_SHARED, fd, 0); in uprv_mapFile()
241 data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0); in uprv_mapFile()
441 /* must mmap file... for build */ in uprv_mapFile()
461 data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0); in uprv_mapFile()
/third_party/node/deps/icu-small/source/common/
H A Dumapfile.cpp239 data=mmap(0, length, PROT_READ, MAP_SHARED, fd, 0); in uprv_mapFile()
241 data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0); in uprv_mapFile()
441 /* must mmap file... for build */ in uprv_mapFile()
461 data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0); in uprv_mapFile()
/third_party/pcre2/pcre2/src/sljit/
H A DsljitProtExecAllocator.c202 retval = (struct chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk()
209 retval->executable = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_SHARED, fd, 0); in alloc_chunk()
229 retval = (struct chunk_header *)mmap(NULL, size, in alloc_chunk()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DExecutableMemory.cpp171 // Returns a file descriptor for use with an anonymous mmap, if
294 mapping = mmap( in allocateMemoryPages()
344 mapping = mmap(nullptr, length, prot, flags | MAP_JIT, -1, 0); in allocateMemoryPages()
349 mapping = mmap(nullptr, length, prot, flags, -1, 0); in allocateMemoryPages()
/third_party/skia/src/ports/
H A DSkOSFile_win.cpp101 SkAutoWinMMap mmap(CreateFileMapping(file, nullptr, PAGE_READONLY, 0, 0, nullptr)); in sk_fdmmap()
102 if (!mmap.isValid()) { in sk_fdmmap()
108 void* addr = MapViewOfFile(mmap, FILE_MAP_READ, 0, 0, 0); in sk_fdmmap()
/third_party/skia/third_party/externals/icu/source/common/
H A Dumapfile.cpp239 data=mmap(0, length, PROT_READ, MAP_SHARED, fd, 0); in uprv_mapFile()
241 data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0); in uprv_mapFile()
441 /* must mmap file... for build */ in uprv_mapFile()
461 data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0); in uprv_mapFile()
/kernel/linux/linux-5.10/arch/arc/mm/
H A DMakefile7 obj-y += tlb.o tlbex.o cache.o mmap.o

Completed in 14 milliseconds

12345678910>>...82