/kernel/linux/linux-5.10/tools/lib/perf/include/internal/ |
H A D | evlist.h | 27 struct perf_mmap *mmap; member 43 perf_evlist_mmap__cb_mmap_t mmap; member
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | backward-ring-buffer.c | 13 #include "util/mmap.h" 16 #include <perf/mmap.h> 38 struct mmap *map = &evlist->overwrite_mmap[i]; in count_samples()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gem_prime.c | 45 return etnaviv_obj->ops->mmap(etnaviv_obj, vma); in etnaviv_gem_prime_mmap() 111 .mmap = etnaviv_gem_prime_mmap_obj,
|
/kernel/linux/linux-6.6/tools/lib/perf/include/internal/ |
H A D | evlist.h | 34 struct perf_mmap *mmap; member 51 perf_evlist_mmap__cb_mmap_t mmap; member
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | backward-ring-buffer.c | 13 #include "util/mmap.h" 16 #include <perf/mmap.h> 38 struct mmap *map = &evlist->overwrite_mmap[i]; in count_samples()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | map_populate.c | 55 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f() 57 BUG_ON(smap == MAP_FAILED, "mmap()"); in child_f() 85 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in main() 87 BUG_ON(smap == MAP_FAILED, "mmap()"); in main()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_ipc_container_006.cpp | 82 char *stack = (char *)mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, in childFunc() 167 char *stack = (char *)mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, in ItIpcContainer006()
|
H A D | It_ipc_container_005.cpp | 98 char *stack = (char *)mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, in testChild() 169 char *stack = (char *)mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, in ItIpcContainer005()
|
H A D | It_net_container_006.cpp | 117 stack = (char *)mmap(nullptr, STACK_SIZE, PROT_READ | PROT_WRITE, CLONE_STACK_MMAP_FLAG, -1, 0); in ChildFunc() 168 char *stack = (char *)mmap(nullptr, STACK_SIZE, PROT_READ | PROT_WRITE, CLONE_STACK_MMAP_FLAG, -1, 0); in ItNetContainer006()
|
/third_party/ltp/testcases/kernel/device-drivers/drm/kernel_space/ |
H A D | tdrm.c | 65 .mmap = DRM(mmap), \
|
/third_party/musl/porting/liteos_a_newlib/kernel/include/sys/ |
H A D | mman.h | 110 void *mmap (void *, size_t, int, int, int, off_t); 139 #define mmap64 mmap
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | mman.h | 114 void *mmap (void *, size_t, int, int, int, off_t); 143 #define mmap64 mmap
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | mman.h | 114 void *mmap (void *, size_t, int, int, int, off_t); 143 #define mmap64 mmap
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | mman.h | 119 void *mmap (void *, size_t, int, int, int, off_t); 148 #define mmap64 mmap
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | mman.h | 114 void *mmap (void *, size_t, int, int, int, off_t); 143 #define mmap64 mmap
|
/third_party/mesa3d/src/util/ |
H A D | os_memory_fd.c | 88 mapped_ptr = mmap(NULL, header.size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in os_import_memory_fd() 133 ptr = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, 0); in os_malloc_aligned_fd()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap06.c | 9 * When we do mmap, we don't grab a hugetlb_instantiation_mutex, but only 28 #include "lapi/mmap.h" 69 addr = mmap(NULL, sz * hpage_size, in do_mmap() 92 new_addr = mmap(addr, (sz - 1) * hpage_size, in do_mmap() 98 tst_brk(TFAIL | TERRNO, "mmap failed"); in do_mmap()
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A D | mmap10.c | 25 * mmap/munmap /dev/zero: a common way of malloc()/free() anonymous 32 * option to mmap/munmap anonymous pages. 45 * The other bug is mmap() of /dev/zero results in calling map_zero() 126 x = mmap(NULL, SIZE + SIZE - ps, PROT_READ | PROT_WRITE, in mmapzero() 131 x = mmap(NULL, SIZE + SIZE - ps, PROT_READ | PROT_WRITE, in mmapzero() 135 tst_brkm(TFAIL | TERRNO, cleanup, "mmap"); in mmapzero()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 11-4.c | 66 /* mmap will create a partial page */ in main() 79 printf("From mmap(2) manpage, skip known bug on tmpfs\n"); in main() 100 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 102 printf("Error at mmap(): %s\n", strerror(errno)); in main() 141 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 143 printf("Error at 2nd mmap(): %s\n", strerror(errno)); in main()
|
H A D | 3-1.c | 9 * The mapping established by mmap() shall replace any previous 18 * address as the first mmap, i.e. pa, using MAP_FIXED flag. 95 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 97 printf("Error at mmap: %s\n", strerror(errno)); in main() 109 mmap(pa, size2, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd2, in main() 112 printf("Error at 2nd mmap: %s\n", strerror(errno)); in main() 117 printf("Error at mmap, the second mmap does not replaced the" in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/ |
H A D | 2-1.c | 118 barrier = mmap(NULL, sizeof(pthread_barrier_t), PROT_READ | PROT_WRITE, in main() 122 perror("Error at first mmap()"); in main() 150 mmap(NULL, sizeof(pthread_barrier_t), in main() 154 perror("child: Error at first mmap()"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
H A D | 2-1.c | 98 mmap(NULL, sizeof(struct shmstruct), PROT_READ | PROT_WRITE, in main() 102 perror("Error at first mmap()"); in main() 177 mmap(NULL, sizeof(struct shmstruct), PROT_READ | PROT_WRITE, in main() 181 perror("Error at first mmap()"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
H A D | 2-2.c | 81 mmap(NULL, sizeof(struct shmstruct), PROT_READ | PROT_WRITE, in main() 85 perror("Error at first mmap()"); in main() 152 mmap(NULL, sizeof(struct shmstruct), PROT_READ | PROT_WRITE, in main() 156 perror("child : Error at mmap()"); in main()
|
/third_party/musl/include/sys/ |
H A D | mman.h | 116 void *mmap (void *, size_t, int, int, int, off_t); 145 #define mmap64 mmap
|
/third_party/rust/crates/rustix/src/mm/ |
H A D | mmap.rs | 1 //! The `mmap` API. 5 //! `mmap` and related functions manipulate raw pointers and have special 19 /// `mmap(ptr, len, prot, flags, fd, offset)`—Create a file-backed memory 33 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html 34 /// [Linux]: https://man7.org/linux/man-pages/man2/mmap.2.html 36 pub unsafe fn mmap<Fd: AsFd>( in mmap() functions 44 backend::mm::syscalls::mmap(ptr, len, prot, flags, fd.as_fd(), offset) in mmap() 47 /// `mmap(ptr, len, prot, MAP_ANONYMOUS | flags, -1, 0)`—Create an anonymous 50 /// For file-backed mappings, see [`mmap`]. 60 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap [all...] |