Searched refs:memfd (Results 1 - 13 of 13) sorted by relevance

/xsrc/external/mit/libxshmfence/dist/src/
H A Dxshmfence_alloc.c50 #include <sys/memfd.h>
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/nine/
H A Dnine_memory_helper.c45 * To do so, we use the memfd feature of the linux kernel. It enables to allocate a file
73 * Multiple memfd files are used, each of 100MB. Thus memory usage (but not virtual memory usage) increases
77 * One allocation is given one page-aligned region inside a memfd file.
87 #include <linux/memfd.h>
112 /* Use memfd only for 32 bits. Check for memfd_create support */
139 /* The allocation is stored inside a memfd */
141 /* The allocation is part of another allocation, which is stored inside a memfd */
179 struct nine_memfd_allocation memfd; member in union:nine_allocation::__anon52f81843010a
185 /* The fields below are only used for memfd/submemfd allocations */
204 int num_fd_max; /* Max number of memfd file
[all...]
/xsrc/external/mit/MesaLib/dist/src/util/
H A Danon_file.c42 #include <linux/memfd.h>
107 * If memfd or SHM_ANON is supported, the filesystem is not touched at all.
/xsrc/external/mit/libpciaccess/dist/src/
H A Dfreebsd_pci.c276 int pci_rom, memfd; local in function:pci_device_freebsd_read_rom
302 memfd = open( "/dev/mem", O_RDONLY | O_CLOEXEC );
303 if ( memfd == -1 )
306 bios = mmap( NULL, dev->rom_size, PROT_READ, 0, memfd, rom_base );
308 close( memfd );
315 close( memfd );
H A Dx86_pci.c294 int memfd;
300 memfd = open("/dev/mem", flags | O_CLOEXEC);
301 if (memfd == -1)
304 *dest = mmap(NULL, mem_size, prot, MAP_SHARED, memfd, mem_offset);
306 close(memfd);
311 close(memfd);
/xsrc/external/mit/libxshmfence/dist/
H A Dconfigure.ac105 AC_CHECK_HEADERS([sys/memfd.h], [AC_DEFINE([HAVE_MEMFD_H], 1, [Has sys/memfd.h header])])
H A Dconfigure21011 for ac_header in sys/memfd.h
21013 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
/xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/
H A Danv_gem_stubs.c24 #include <linux/memfd.h>
H A Danv_allocator.c28 #include <linux/memfd.h>
72 * general can't grow, but we use a trick: we create a memfd and use ftruncate
203 /* Make sure that we don't go outside the bounds of the memfd */
531 /* Assert that we don't go outside the bounds of the memfd */
/xsrc/external/mit/MesaLib/dist/src/drm-shim/
H A Ddevice.c32 #include <linux/memfd.h>
/xsrc/external/mit/MesaLib/dist/docs/relnotes/
H A D19.1.8.rst135 - util: add anon_file.h for all memfd/temp file usage
H A D20.2.0.rst3067 - drm-shim: don't create a memfd per BO
H A D21.1.0.rst852 - st/nine: Control the memfd virtual limit

Completed in 40 milliseconds