Searched refs:mmap (Results 1 - 25 of 167) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libc/common/sys/
H A Dmmap.s30 .file "mmap.s"
35 ANSI_PRAGMA_WEAK(mmap,function)
46 * C library -- mmap
47 * caddr_t mmap(caddr_t addr, size_t len, int prot,
51 ENTRY(mmap) function
57 SYSTRAP_RVAL1(mmap)
60 SET_SIZE(mmap)
/illumos-gate/usr/src/lib/libbc/libc/sys/common/sparc/
H A Dmmap.s32 * Interface to mmap introduced in 4.0. Incorporates flag telling
33 * system to use 4.0 interface to mmap.
41 ENTRY(mmap) function
49 SET_SIZE(mmap)
/illumos-gate/usr/src/cmd/dtrace/demo/dtrace/
H A Dbegin.d39 syscall::mmap:entry
41 printf("mmap with prot = %s", prot[arg2 & 0x7]);
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/syscall/
H A Dtst.args.d35 syscall::mmap*:entry
/illumos-gate/usr/src/grub/grub-0.97/docs/
H A Dkernel.c136 memory_map_t *mmap; local
140 for (mmap = (memory_map_t *) mbi->mmap_addr;
141 (unsigned long) mmap < mbi->mmap_addr + mbi->mmap_length;
142 mmap = (memory_map_t *) ((unsigned long) mmap
143 + mmap->size + sizeof (mmap->size)))
146 (unsigned) mmap->size,
147 (unsigned) mmap->base_addr_high,
148 (unsigned) mmap
[all...]
H A Dkernel.c.texi136 memory_map_t *mmap;
140 for (mmap = (memory_map_t *) mbi->mmap_addr;
141 (unsigned long) mmap < mbi->mmap_addr + mbi->mmap_length;
142 mmap = (memory_map_t *) ((unsigned long) mmap
143 + mmap->size + sizeof (mmap->size)))
146 (unsigned) mmap->size,
147 (unsigned) mmap->base_addr_high,
148 (unsigned) mmap
[all...]
/illumos-gate/usr/src/cmd/sgs/0@0/common/
H A D0@0.c50 (void) mmap(0, 1, PROT_READ, MAP_PRIVATE|MAP_FIXED, fd, 0);
/illumos-gate/usr/src/lib/libbc/csu/common/
H A Dalloc_pbuf.c41 buf = (char*) mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
/illumos-gate/usr/src/test/zfs-tests/cmd/mmapwrite/
H A Dmmapwrite.c51 mmap(0, 8192, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) {
52 perror("mmap");
56 if (mmap(addr, 8192, PROT_READ,
58 perror("mmap");
/illumos-gate/usr/src/test/os-tests/tests/secflags/
H A Daddrs.c17 if ((mapping = mmap((caddr_t)0, 10, (PROT_READ | PROT_WRITE),
/illumos-gate/usr/src/lib/libumem/common/
H A Dvmem_mmap.c53 mmap(ret, size, ALLOC_PROT, ALLOC_FLAGS | MAP_FIXED, -1, 0) ==
71 (void) mmap(addr, size, FREE_PROT, FREE_FLAGS | MAP_FIXED, -1, 0);
92 buf = mmap((void *)CHUNKSIZE, size, FREE_PROT, FREE_FLAGS | MAP_ALIGN,
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dmman.h52 /* other flags to mmap (or-ed in to MAP_SHARED or MAP_PRIVATE) */
62 * new mmap calls. Previous binaries with old mmap calls with continue
63 * to get 0 or -1 for return values. New mmap calls will get the mapped
65 * new mmap calls automatically have the kernel assign the map address
74 * Except for old binaries mmap() will return the resultant
77 extern caddr_t mmap();
/illumos-gate/usr/src/test/zfs-tests/tests/functional/exec/
H A Dmmap_exec.c64 if (mmap(0, statbuf.st_size,
66 perror("mmap");
/illumos-gate/usr/src/test/zfs-tests/tests/functional/mmap/
H A DMakefile19 TESTDIR = $(ROOTOPTPKG)/tests/functional/mmap
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c42 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
72 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
90 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
99 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
H A Dgetentropy.c57 addr = mmap(NULL, 4096, PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0);
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_subr.c37 return (mmap(NULL, size, PROT_READ | PROT_WRITE,
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Doutput.c44 * On SVR4 and newer systems use mmap(2). On older systems (or on
45 * file systems that don't support mmap), use write(2).
60 (p = mmap((char *)0, sz, PROT_READ+PROT_WRITE,
69 * If mmap fails, try calloc. Some file systems don't mmap. Note, we
/illumos-gate/usr/src/test/zfs-tests/tests/functional/
H A DMakefile47 mmap \
/illumos-gate/usr/src/test/libc-tests/tests/
H A Daligned_alloc.c58 VERIFY3P(mmap((caddr_t)P2ROUNDUP(status.pr_brkbase +
/illumos-gate/usr/src/uts/common/sys/
H A Dmman.h83 /* other flags to mmap (or-ed in to MAP_SHARED or MAP_PRIVATE) */
121 * new mmap calls. Previous binaries with old mmap calls will continue
122 * to get 0 or -1 for return values. New mmap calls will get the mapped
124 * new mmap calls automatically have the kernel assign the map address
205 #pragma redefine_extname mmap mmap64
207 #define mmap mmap64 macro
213 #pragma redefine_extname mmap64 mmap
215 #define mmap64 mmap
226 * Except for old binaries mmap() wil
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_context.c77 c->ctx_stack = mmap(NULL, c->ctx_stacksize, prot,
81 * If the mmap failed with EBADFD, this kernel doesn't have MAP_ANON
83 * that to mmap chunks of anonymous memory.
90 c->ctx_stack = mmap(NULL, c->ctx_stacksize, prot,
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_startkern.c628 mmap_t *mmap; local
644 for (mmap = mem, i = 0; i < num; ++i, ++mmap) {
645 start = ((uint64_t)mmap->base_addr_high << 32) +
646 mmap->base_addr_low;
647 end = start + ((uint64_t)mmap->length_high << 32) +
648 mmap->length_low;
652 PRIx64 "\n", mmap->type, start, end);
1079 mb_memory_map_t *mmap; local
1129 for (mmap
[all...]
/illumos-gate/usr/src/lib/libtnfctl/
H A Dprb_shmem.c63 smp = (shmem_msg_t *) mmap(0, sizeof (struct shmem_msg),
67 DBG((void) fprintf(stderr, "couldn't mmap \"/dev/zero\""));
/illumos-gate/usr/src/lib/libmtmalloc/tests/
H A Dexhaust.c65 stacks[ncpus] = mmap(0, 1<<23, PROT_READ|PROT_WRITE,

Completed in 192 milliseconds

1234567