/openbmc/linux/arch/um/kernel/ |
H A D | tlb.c | 27 } mmap; member 74 op->u.mmap.len, op->u.mmap.prot, in do_ops() 75 op->u.mmap.fd, in do_ops() 76 op->u.mmap.offset, finished, in do_ops() 79 map_memory(op->u.mmap.addr, op->u.mmap.offset, in do_ops() 80 op->u.mmap.len, 1, 1, 1); in do_ops() 135 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap() 136 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap() 137 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap() 138 last->u.mmap.len += len; in add_mmap() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/libx86-1/libx86-1.1/ |
H A D | libx86-mmap-offset.patch | 78 m = mmap((void *)REAL_MEM_BASE, REAL_MEM_SIZE, 85 perror("mmap /dev/zero"); 149 - m = mmap((void *)0, 0x502, 152 + m = mmap(offset, 0x502, 159 perror("mmap /dev/mem"); 164 - m = mmap((void *)0xa0000, 0x100000 - 0xa0000, 165 + m = mmap(offset+0xa0000, 0x100000 - 0xa0000, 174 perror("mmap /dev/mem");
|
/openbmc/openbmc/poky/meta/recipes-devtools/qemu/qemu/ |
H A D | 0009-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch | 18 util/mmap-alloc.c | 10 +++++++--- 21 Index: qemu-8.0.0/util/mmap-alloc.c 23 --- qemu-8.0.0.orig/util/mmap-alloc.c 24 +++ qemu-8.0.0/util/mmap-alloc.c 44 #include "qemu/mmap-alloc.h"
|
H A D | 0006-qemu-Add-some-user-space-mmap-tweaks-to-address-musl.patch | 4 Subject: [PATCH 06/12] qemu: Add some user space mmap tweaks to address musl 23 linux-user/mmap.c | 10 +++++++--- 26 Index: qemu-8.0.0/linux-user/mmap.c 28 --- qemu-8.0.0.orig/linux-user/mmap.c 29 +++ qemu-8.0.0/linux-user/mmap.c
|
/openbmc/openbmc/poky/meta/recipes-support/apr/apr/ |
H A D | 0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch | 4 Subject: [PATCH] configure: Remove runtime test for mmap that can map 22 @@ -1303,36 +1303,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \ 26 -# Not all systems can mmap /dev/zero (such as HP-UX). Check for that. 29 - AC_CACHE_CHECK([for mmap that can map /dev/zero], 45 - m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
|
/openbmc/linux/Documentation/translations/zh_CN/mm/ |
H A D | hugetlbfs_reserv.rst | 22 持后不久,人们决定,在mmap()时检测巨页的短缺情况会更好。这个想法是,如果 23 没有足够的巨页来覆盖映射,mmap()将失败。这首先是在mmap()时在代码中做一个 25 样,代码随着时间的推移而不断发展。然而,基本的想法是在mmap()时 “预留” 85 留映射是在创建映射(mmap(MAP_PRIVATE))时创建的。 93 当创建一个巨大的有页面支持的共享内存段(shmget(SHM_HUGETLB))或通过mmap(MAP_HUGETLB) 101 hugetlb_reserve_pages()做的第一件事是检查在调用shmget()或mmap()时是否指定了NORESERVE 105 的长度。对于mmap(),offset参数可以用来指定进入底层文件的偏移量。在这种情况下,'from'和'to'
|
H A D | overcommit-accounting.rst | 45 你 **必须** 为你认为你需要的最大尺寸的堆栈进行mmap。对于典型的堆栈使用来说,这并 67 | 通过mmap制作可写副本的页面 73 * 我们核算mmap内存映射
|
/openbmc/linux/Documentation/userspace-api/media/dvb/ |
H A D | dmx-mmap.rst | 4 .. _dmx-mmap: 7 Digital TV mmap() 13 dmx-mmap - Map device memory into application address space 25 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset ) 33 multiple of the pagesize and mmap will fail when the specified 56 :c:func:`mmap()` will fail. If ``MAP_FIXED`` is specified, 80 The :c:func:`mmap()` function asks to map ``length`` bytes starting at 94 On success :c:func:`mmap()` returns a pointer to the mapped buffer. On
|
H A D | dmx-munmap.rst | 32 :c:func:`mmap()` function. 36 :c:func:`mmap()`. 41 Unmaps a previously with the :c:func:`mmap()` function mapped
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | madv_populate.c | 35 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support() 58 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read() 79 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write() 100 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_holes() 170 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_read() 192 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_write() 242 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_softdirty()
|
H A D | hugetlb-madvise.c | 115 addr = mmap(NULL, (NR_HUGE_PAGES + 2) * huge_page_size, in main() 157 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 195 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 225 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 284 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 324 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 336 addr2 = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
|
H A D | hugepage-mremap.c | 87 addr = mmap(NULL, len, PROT_READ | PROT_WRITE, in register_region_with_uffd() 133 void *haddr = mmap((void *)suggested_addr, length, PROTECTION, in main() 143 void *daddr = mmap((void *)suggested_addr, length, PROTECTION, in main() 153 mmap((void *)suggested_addr, length, PROTECTION, FLAGS, -1, 0); in main()
|
H A D | virtual_address_range.c | 94 ptr = mmap((void *) (1UL << 45), MAP_CHUNK_SIZE, PROT_READ | in validate_lower_address_hint() 111 ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main() 130 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
|
H A D | soft-dirty.c | 52 map = mmap(NULL, pagesize, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANON), -1, 0); in test_vma_reuse() 63 map2 = mmap(NULL, pagesize, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANON), -1, 0); in test_vma_reuse() 135 map = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, in test_mprotect() 147 map = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, in test_mprotect()
|
/openbmc/linux/Documentation/arch/ia64/ |
H A D | aliasing.rst | 96 mmap of /dev/mem 111 mmap of /sys/class/pci_bus/.../legacy_mem 114 This is very similar to mmap of /dev/mem, except that legacy_mem 115 only allows mmap of the one megabyte "legacy MMIO" area for a 124 The /dev/mem mmap constraints apply. 126 mmap of /proc/bus/pci/.../??.? 129 This is an MMIO mmap of PCI functions, which additionally may or 175 mmap of various MMIO regions from /dev/mem by "X" on Intel platforms 181 when the EFI memory map is incomplete, every /dev/mem mmap must 185 mmap of 0x0-0x9FFFF /dev/mem by "hwinfo" on HP sx1000 with VGA enabled [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/gperftools/gperftools/ |
H A D | 0001-src-mmap_hook.cc-Fix-build-for-32bit-machine.patch | 13 remove mmap() and mmap64() to fix the redefined error. 26 @@ -302,30 +302,8 @@ void* mmap(void* start, size_t length, int prot, int flags, int fd, off_t off)… 32 -// 64-bit and mmap being 32-bit. 38 -extern "C" void* mmap(void* start, size_t length, int prot, int flags, int fd, off_t off) 41 -void* mmap(void *start, size_t length, int prot, int flags, int fd, off_t off) __THROW {
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | func-mmap.rst | 4 .. _func-mmap: 7 V4L2 mmap() 13 v4l2-mmap - Map device memory into application address space 23 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset ) 31 multiple of the pagesize and mmap will fail when the specified 55 :c:func:`mmap()` function fails. 71 :c:func:`mmap()` will fail. If ``MAP_FIXED`` is specified, 101 The :c:func:`mmap()` function asks to map ``length`` bytes starting at 116 On success :c:func:`mmap()` returns a pointer to the mapped buffer. On
|
H A D | func-munmap.rst | 30 :c:func:`mmap()` function. 34 :c:func:`mmap()` and returned by the driver in the struct 43 Unmaps a previously with the :c:func:`mmap()` function mapped
|
/openbmc/qemu/tests/multiboot/ |
H A D | Makefile | 12 all: mmap.elf modules.elf $(AOUT_KLUDGE_BIN) 14 mmap.elf: start.o mmap.o libc.o link.ld
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/php/php/ |
H A D | 0001-ext-opcache-config.m4-enable-opcache.patch | 107 AC_MSG_CHECKING(for mmap() using MAP_ANON shared memory support) 129 - shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); 165 - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) 167 + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) 172 AC_MSG_CHECKING(for mmap() using shm_open() shared memory support) 209 - shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 238 - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) 242 + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support])
|
/openbmc/qemu/hw/vfio/ |
H A D | helpers.c | 391 munmap(region->mmaps[index].mmap, region->mmaps[index].size); in vfio_subregion_unmap() 393 region->mmaps[index].mmap = NULL; in vfio_subregion_unmap() 409 region->mmaps[i].mmap = mmap(NULL, region->mmaps[i].size, prot, in vfio_region_mmap() 413 if (region->mmaps[i].mmap == MAP_FAILED) { in vfio_region_mmap() 423 region->mmaps[i].mmap = NULL; in vfio_region_mmap() 437 region->mmaps[i].mmap); in vfio_region_mmap() 460 if (region->mmaps[i].mmap) { in vfio_region_unmap() 475 if (region->mmaps[i].mmap) { in vfio_region_exit() 492 if (region->mmaps[i].mmap) { in vfio_region_finalize() 493 munmap(region->mmaps[i].mmap, region->mmaps[i].size); in vfio_region_finalize() [all …]
|
/openbmc/bios-bmc-smm-error-logger/src/ |
H A D | pci_handler.cpp | 22 mmap(stdplus::fd::MMap( in PciDataHandler() 44 std::memcpy(results.data(), mmap.get().data() + offset, finalLength); in read() 64 std::memcpy(mmap.get().data() + offset, bytes.data(), finalLength); in write()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | ringbuf.c | 107 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rb_fd, 0); in ringbuf_subtest() 116 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, page_size); in ringbuf_subtest() 122 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in ringbuf_subtest() 126 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 3 * page_size); in ringbuf_subtest() 128 mmap_ptr = mmap(NULL, 2 * page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in ringbuf_subtest() 132 mmap_ptr = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED, rb_fd, 0); in ringbuf_subtest() 142 mmap_ptr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rb_fd, page_size); in ringbuf_subtest()
|
/openbmc/linux/Documentation/arch/arm/ |
H A D | uefi.rst | 57 linux,uefi-mmap-start 64-bit Physical address of the UEFI memory map, 60 linux,uefi-mmap-size 32-bit Size in bytes of the UEFI memory map 63 linux,uefi-mmap-desc-size 32-bit Size in bytes of each entry in the UEFI 66 linux,uefi-mmap-desc-ver 32-bit Version of the mmap descriptor format.
|
/openbmc/linux/tools/testing/selftests/powerpc/mm/ |
H A D | hugetlb_vs_thp_test.c | 18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
|