Searched refs:mmap (Results 126 - 150 of 281) sorted by relevance

1234567891011>>

/freebsd-11-stable/usr.bin/look/
H A Dlook.c156 if ((front = mmap(NULL, (size_t)sb.st_size, PROT_READ, MAP_SHARED, fd, (off_t)0)) == MAP_FAILED)
/freebsd-11-stable/sys/dev/drm2/radeon/
H A Dradeon_prime.c140 .mmap = radeon_gem_prime_mmap,
/freebsd-11-stable/usr.bin/xlint/lint1/
H A Dmem1.c178 /* use mmap instead of malloc to avoid malloc's size overhead */
182 mb->blk = mmap(NULL, mblklen, prot, flags, -1, (off_t)0);
/freebsd-11-stable/usr.sbin/rpc.statd/
H A Dfile.c44 #include <sys/mman.h> /* For mmap() */
51 FileLayout *status_info; /* Pointer to the mmap()ed status file */
57 Purpose: Packaged call of msync() to flush changes to mmap()ed file
72 Returns: Pointer to that entry in the mmap() region, or NULL.
165 Opens the file, then mmap()s it for ease of access.
188 /* File now open. mmap() it, with a generous size to allow for */
191 mmap(NULL, 0x10000000, PROT_READ | PROT_WRITE, MAP_SHARED, status_fd, 0);
194 err(1, "unable to mmap() status file");
/freebsd-11-stable/contrib/netbsd-tests/net/bpf/
H A Dt_bpf.c132 iov[0].iov_base = mmap(NULL, sz, PROT_READ, MAP_ANON, -1, 0);
/freebsd-11-stable/lib/libthr/thread/
H A Dthr_spec.c179 tmp = mmap(NULL, PTHREAD_KEYS_MAX *
/freebsd-11-stable/sbin/ldconfig/
H A Delfhints.c212 mapbase = mmap(NULL, s.st_size, PROT_READ|PROT_WRITE,
215 err(1, "Cannot mmap \"%s\"", hintsfile);
/freebsd-11-stable/usr.sbin/cpucontrol/
H A Damd10h.c168 * mmap the whole image.
170 fw_image = (uint8_t *)mmap(NULL, st.st_size, PROT_READ,
173 WARN(0, "mmap(%s)", path);
H A Dintel.c170 * mmap the whole image.
172 fw_image = (uint32_t *)mmap(NULL, st.st_size, PROT_READ,
175 WARN(0, "mmap(%s)", path);
/freebsd-11-stable/usr.bin/ktrdump/
H A Dktrdump.c186 buf = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, in, 0);
188 errx(1, "mmap");
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/grep/
H A Dt_grep.sh691 atf_test_case mmap
694 atf_set "descr" "Check basic matching with --mmap flag"
700 atf_expect_fail "gnu grep from ports has no --mmap option"
705 atf_check -s exit:0 -o inline:"B\n" grep --mmap -oe "B" test1
706 atf_check -s exit:1 grep --mmap -e "Z" test1
851 atf_add_test_case mmap
/freebsd-11-stable/usr.bin/grep/
H A Dfile.c297 buffer = mmap(NULL, fsiz, PROT_READ, flags,
/freebsd-11-stable/usr.bin/locate/locate/
H A Dlocate.c108 int f_mmap; /* use mmap */
144 f_mmap = 1; /* mmap is default */
165 case 'm': /* mmap */
169 warnx("mmap(2) not implemented");
304 if ((p = mmap((caddr_t)0, (size_t)len,
307 err(1, "mmap ``%s''", db);
/freebsd-11-stable/sys/sys/
H A Dtypes.h393 void * mmap(void *, size_t, int, int, int, off_t);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_wrappers.cpp155 void *mmap(void *addr, size_t length, int prot, int flags, int fd, function
/freebsd-11-stable/contrib/file/src/
H A Dseccomp.c201 ALLOW_RULE(mmap);
/freebsd-11-stable/sys/arm/mv/
H A Dmv_common.c676 uint32_t mmap;
679 mmap = bus_space_read_4(fdtbus_bs_tag, MV_DDR_CADR_BASE + (i * 0x10), 0);
682 return (mmap & 0xFF000000);
687 uint32_t mmap, size;
690 mmap = bus_space_read_4(fdtbus_bs_tag, MV_DDR_CADR_BASE + (i * 0x10), 0);
693 size = (1 << ((mmap >> 16) & 0x0F));
696 return (((size - 1) << 16) | (mmap & 0x01));
/freebsd-11-stable/sys/dev/fb/
H A Dfbreg.h182 vi_mmap_t *mmap; member in struct:video_switch
239 (*vidsw[(adp)->va_index]->mmap)((adp), (offset), (paddr), \
/freebsd-11-stable/usr.sbin/config/
H A Dmain.c619 p = mmap(NULL, tsize, PROT_READ, MAP_SHARED, from_fd, (off_t)0);
621 err(EX_OSERR, "mmap %s", from_name);
622 q = mmap(NULL, tsize, PROT_READ, MAP_SHARED, to_fd, (off_t)0);
624 err(EX_OSERR, "mmap %s", to_name);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DMemory.inc123 void *Addr = ::mmap(reinterpret_cast<void *>(Start), PageSize*NumPages, Protect,
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingFile.c215 /* mmap() \p ProfileFile for profile merging purposes, assuming that an
217 * length of the file. Return the mmap'd buffer in the inout variable
219 * responsible for unmapping the mmap'd buffer in \p ProfileBuffer. */
222 *ProfileBuffer = mmap(NULL, ProfileFileSize, PROT_READ, MAP_SHARED | MAP_FILE,
225 PROF_ERR("Unable to merge profile data, mmap failed: %s\n",
256 /* mmap() the profile and check that it is compatible with the data in
513 /* Grow the profile so that mmap() can succeed. Leak the file handle, as
533 /* Grow the profile so that mmap() can succeed. Leak the file handle, as
563 uint64_t *CounterMmap = (uint64_t *)mmap(
568 "Continuous counter sync mode is enabled, but mmap() faile
[all...]
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-shmem.c473 * Add mmap the shared memory
495 vaddr = mmap(dscptr->vaddr, dscptr->size, PROT_READ|PROT_WRITE,
498 /* Make sure the mmap maps to the same virtual address specified in
/freebsd-11-stable/crypto/heimdal/lib/asn1/
H A Dcheck-common.c104 p = (unsigned char *)mmap(0, (*map)->size, PROT_READ | PROT_WRITE,
107 err (1, "mmap");
/freebsd-11-stable/libexec/rtld-elf/
H A Dmalloc.c62 * Pre-allocate mmap'ed pages
480 if ((pagepool_start = mmap(0, n * pagesz,
/freebsd-11-stable/sys/dev/patm/
H A Dif_patmvar.h232 const struct idt_mmap *mmap; /* SRAM memory map */ member in struct:patm_softc

Completed in 273 milliseconds

1234567891011>>