/illumos-gate/usr/src/lib/libc/common/sys/ |
H A D | memcntl.s | 30 .file "memcntl.s" 32 /* C library -- memcntl */ 33 /* int memcntl(caddr_t addr, size_t len, int cmd, 38 ANSI_PRAGMA_WEAK(memcntl,function) 42 SYSCALL_RVAL1(memcntl) 44 SET_SIZE(memcntl)
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | munlockall.c | 44 return (memcntl(0, 0, MC_UNLOCKAS, 0, 0, 0));
|
H A D | mlockall.c | 43 return (memcntl(0, 0, MC_LOCKAS, (caddr_t)(uintptr_t)flags, 0, 0));
|
H A D | madvise.c | 40 return (memcntl(addr, len, MC_ADVISE, (caddr_t)(intptr_t)advice, 0, 0));
|
H A D | mlock.c | 44 return (memcntl(addr, len, MC_LOCK, 0, 0, 0));
|
H A D | msync.c | 39 return (memcntl(addr, len, MC_SYNC, (caddr_t)(uintptr_t)flags, 0, 0));
|
H A D | munlock.c | 45 return (memcntl(addr, len, MC_UNLOCK, 0, 0, 0));
|
H A D | plock.c | 117 * memcntl backs them out automatically. 119 e = memcntl(NULL, 0, MC_LOCKAS, (caddr_t)MCL_CURRENT, 144 * memcntl undoes the locks internally. 146 e = memcntl(NULL, 0, MC_LOCKAS, (caddr_t)MCL_CURRENT, 162 (void) memcntl(NULL, 0, MC_UNLOCKAS,
|
H A D | arc4random.c | 133 if (memcntl(a, mapsz, MC_INHERIT_ZERO, 0, 0, 0) != 0)
|
/illumos-gate/usr/src/test/libc-tests/tests/random/ |
H A D | inz_inval.c | 46 /* Bad arguments to memcntl */ 47 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, bad, 0, 0); 51 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, PROT_READ, 0); 55 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, bad, PROT_READ | PRIVATE, 0); 59 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 1); 67 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); 75 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); 92 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0); 101 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
|
H A D | inz_child.c | 46 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
|
H A D | inz_mlock.c | 48 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
|
H A D | inz_region.c | 45 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
|
H A D | inz_split.c | 47 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
|
H A D | inz_vpp.c | 48 ret = memcntl(buf + clroff, clrsz, MC_INHERIT_ZERO, 0, 0, 0);
|
H A D | inz_split_vpp.c | 52 ret = memcntl(buf + clroff, clrsz, MC_INHERIT_ZERO, 0, 0, 0);
|
/illumos-gate/usr/src/ucblib/libucb/port/sys/ |
H A D | mctl.c | 59 return (memcntl(addr, len, function, (caddr_t)(uintptr_t)arg, 0, 0));
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | pmain.c | 43 (void)memcntl(NULL, 0, MC_HAT_ADVISE, (caddr_t)&mha, 0, 0);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | vmsystm.h | 137 int memcntl); 139 int type, int memcntl);
|
H A D | mman.h | 102 /* these flags are used by memcntl */ 251 extern int memcntl(caddr_t, size_t, int, caddr_t, int, int); 289 * structure for memcntl hat advise operations.
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_memcntl.c | 37 * memcntl() system call -- executed by subject process 44 sysret_t rval; /* return value from memcntl() */ 45 argdes_t argd[6]; /* arg descriptors for memcntl() */ 50 return (memcntl(addr, len, cmd, arg, attr, mask));
|
/illumos-gate/usr/src/lib/madv/common/ |
H A D | madv.c | 630 * Align start address for memcntl and apply advice 648 if (memcntl((caddr_t)brkbase, brksize, MC_ADVISE, 651 "%s: memcntl() failed [%s]: heap advice\n"), 711 rc = memcntl(result, mds.shm_segsz, MC_ADVISE, 762 rc = memcntl(result, len, MC_ADVISE, 814 rc = memcntl(result, len, MC_ADVISE, (caddr_t)advice, 0, 0);
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | vmem_sbrk.c | 242 if (memcntl(NULL, 0, MC_HAT_ADVISE, (char *)&mha, 0, 0)
|
/illumos-gate/usr/src/man/man2/ |
H A D | Makefile | 76 memcntl.2 \
|
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | vm_dep.c | 555 * If addr == 0 we were called by memcntl() when the 591 * If addr == 0 we were called by memcntl() or exec_args() when the 625 map_pgsz(int maptype, struct proc *p, caddr_t addr, size_t len, int memcntl) argument 706 int memcntl) 705 map_pgszcvec(caddr_t addr, size_t size, uintptr_t off, int flags, int type, int memcntl) argument
|