Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 56) sorted by relevance

123

/bionic/tests/
Dsys_mman_test.cpp27 void* map = mmap(nullptr, 4096, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST()
41 void* map = mmap(nullptr, 100, PROT_READ, MAP_SHARED, tf.fd, 1); in TEST()
62 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); in TEST()
77 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_WRITE, MAP_SHARED, tf.fd, 0); in TEST()
113 void* map = mmap(nullptr, pagesize, PROT_READ, MAP_SHARED, tf.fd, pagesize); in TEST()
121 map = mmap(nullptr, pagesize, PROT_READ, MAP_SHARED, tf.fd, 2 * pagesize); in TEST()
149 void* map = mmap(nullptr, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, pagesize); in TEST()
157 map = mmap(nullptr, pagesize, PROT_WRITE, MAP_SHARED, tf.fd, 2 * pagesize); in TEST()
184 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, tempfile.fd, 0); in TEST()
202 void* map = mmap(nullptr, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
[all …]
Dsys_prctl_test.cpp38 void* p = mmap(NULL, page_size * 3, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST()
Ddlext_test.cpp324 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
343 void* new_start = mmap(start, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
348 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
359 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
392 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
403 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
420 void* start = mmap(nullptr, PAGE_SIZE, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
440 void* start = mmap(nullptr, kLibSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in SetUp()
2048 uintptr_t reserved_addr = reinterpret_cast<uintptr_t>(mmap(nullptr, addr_end - addr_start, in TEST()
2057 void* map = mmap(addr, size, PROT_READ | PROT_WRITE, in TEST()
Dandroid_unsafe_frame_pointer_chase_test.cpp136 mmap(nullptr, kStackSize * 2, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in TEST()
/bionic/libc/include/sys/
Dmman.h52 void* mmap(void* __addr, size_t __size, int __prot, int __flags, int __fd, off_t __offset) __RENAME…
54 void* mmap(void* __addr, size_t __size, int __prot, int __flags, int __fd, off_t __offset);
/bionic/libc/bionic/
Dpthread_create.cpp72 void* allocation = mmap(nullptr, allocation_size, in __allocate_temp_bionic_tls()
89 …void* stack_base = mmap(nullptr, SIGNAL_STACK_SIZE, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOU… in __init_alternate_signal_stack()
113 mmap(nullptr, SCS_GUARD_REGION_SIZE, 0, MAP_PRIVATE | MAP_ANON, -1, 0)); in __init_shadow_call_stack()
216 char* const space = static_cast<char*>(mmap(nullptr, mmap_size, PROT_NONE, flags, -1, 0)); in __allocate_thread_mapping()
Dandroid_set_abort_message.cpp81 void* map = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); in android_set_abort_message()
Dmmap.cpp75 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap() function
Dbionic_allocator.cpp195 void* const map_ptr = mmap(nullptr, PAGE_SIZE, PROT_READ | PROT_WRITE, in alloc_page()
276 void* map_ptr = mmap(nullptr, allocated_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, in alloc_mmap()
Datexit.cpp174 new_pages = mmap(nullptr, new_capacity_bytes, PROT_READ | PROT_WRITE, in expand_capacity()
Dgrp_pwd_file.cpp243 void* map_result = mmap(nullptr, mmap_size, PROT_READ, MAP_SHARED, fd.get(), 0); in DoMmap()
Dfdsan.cpp87 mmap(nullptr, aligned_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in at()
/bionic/libc/
DSECCOMP_ALLOWLIST_APP.TXT48 # b/36726183. Note arm does not support mmap
49 void* mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) x86
/bionic/linker/
Dlinker_phdr.cpp527 void* mmap_ptr = mmap(nullptr, size, PROT_NONE, mmap_flags, -1, 0); in ReserveWithAlignmentPadding()
547 reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0)); in ReserveWithAlignmentPadding()
563 mmap_ptr = reinterpret_cast<uint8_t*>(mmap(nullptr, mmap_size, PROT_NONE, mmap_flags, -1, 0)); in ReserveWithAlignmentPadding()
717 void* zeromap = mmap(reinterpret_cast<void*>(seg_file_end), in LoadSegments()
901 void* map = mmap(reinterpret_cast<void*>(seg_page_start), size, PROT_READ, in phdr_table_serialize_gnu_relro()
941 temp_mapping = mmap(nullptr, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in phdr_table_map_gnu_relro()
987 void* map = mmap(mem_base + match_offset, mismatch_offset - match_offset, in phdr_table_map_gnu_relro()
Dlinker_cfi.cpp56 reinterpret_cast<char*>(mmap(nullptr, aligned_end - aligned_start, PROT_READ | PROT_WRITE, in ShadowWrite()
158 mmap(nullptr, kShadowSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); in MapShadow()
Dlinker_block_allocator.cpp124 mmap(nullptr, kAllocateSize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)); in create_new_page()
/bionic/libc/upstream-openbsd/android/include/
Darc4random.h69 if ((p = mmap(NULL, sizeof(*p), PROT_READ|PROT_WRITE, in _rs_allocate()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_157.S54 CALL(mmap)
Dliblinker_reloc_bench_125.S93 CALL(mmap)
/bionic/tests/headers/posix/
Dsys_mman_h.c76 FUNCTION(mmap, void* (*f)(void*, size_t, int, int, int, off_t)); in sys_mman_h()
/bionic/libc/system_properties/
Dcontexts_serialized.cpp48 void* const map_result = mmap(nullptr, context_nodes_mmap_size, PROT_READ | PROT_WRITE, in InitializeContextNodes()
Dprop_area.cpp95 void* const memory_area = mmap(nullptr, pa_size_, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in map_prop_area_rw()
122 void* const map_result = mmap(nullptr, pa_size_, PROT_READ, MAP_SHARED, fd, 0); in map_fd_ro()
/bionic/libc/stdio/
Dprintf_common.h540 *argtable = static_cast<arg*>(mmap(nullptr, *argtablesiz, in __find_arguments()
651 *typetable = static_cast<unsigned char*>(mmap(nullptr, new_size, in __grow_type_table()
657 unsigned char* new_table = static_cast<unsigned char*>(mmap(nullptr, new_size, in __grow_type_table()
/bionic/docs/
D32-bit-abi.md33 available. API 12 adds some of the `<unistd.h>` functions, API 21 adds `mmap`,
39 and `mmap` (but no other functions that are unavailable at your target
/bionic/libc/kernel/uapi/linux/
Dperf_event.h206 …, exclude_user : 1, exclude_kernel : 1, exclude_hv : 1, exclude_idle : 1, mmap : 1, comm : 1, freq… member

123