Searched refs:memcntl (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/common/sys/
H A Dmemcntl.s30 .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 Dmunlockall.c44 return (memcntl(0, 0, MC_UNLOCKAS, 0, 0, 0));
H A Dmlockall.c43 return (memcntl(0, 0, MC_LOCKAS, (caddr_t)(uintptr_t)flags, 0, 0));
H A Dmadvise.c40 return (memcntl(addr, len, MC_ADVISE, (caddr_t)(intptr_t)advice, 0, 0));
H A Dmlock.c44 return (memcntl(addr, len, MC_LOCK, 0, 0, 0));
H A Dmsync.c39 return (memcntl(addr, len, MC_SYNC, (caddr_t)(uintptr_t)flags, 0, 0));
H A Dmunlock.c45 return (memcntl(addr, len, MC_UNLOCK, 0, 0, 0));
H A Dplock.c117 * 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 Darc4random.c133 if (memcntl(a, mapsz, MC_INHERIT_ZERO, 0, 0, 0) != 0)
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c46 /* 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 Dinz_child.c46 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
H A Dinz_mlock.c48 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
H A Dinz_region.c45 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
H A Dinz_split.c47 ret = memcntl(buf, mapsz, MC_INHERIT_ZERO, 0, 0, 0);
H A Dinz_vpp.c48 ret = memcntl(buf + clroff, clrsz, MC_INHERIT_ZERO, 0, 0, 0);
H A Dinz_split_vpp.c52 ret = memcntl(buf + clroff, clrsz, MC_INHERIT_ZERO, 0, 0, 0);
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dmctl.c59 return (memcntl(addr, len, function, (caddr_t)(uintptr_t)arg, 0, 0));
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dpmain.c43 (void)memcntl(NULL, 0, MC_HAT_ADVISE, (caddr_t)&mha, 0, 0);
/illumos-gate/usr/src/uts/common/sys/
H A Dvmsystm.h137 int memcntl);
139 int type, int memcntl);
H A Dmman.h102 /* 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 Dpr_memcntl.c37 * 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 Dmadv.c630 * 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 Dvmem_sbrk.c242 if (memcntl(NULL, 0, MC_HAT_ADVISE, (char *)&mha, 0, 0)
/illumos-gate/usr/src/man/man2/
H A DMakefile76 memcntl.2 \
/illumos-gate/usr/src/uts/sun4/vm/
H A Dvm_dep.c555 * 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

Completed in 142 milliseconds

12