Searched refs:MCR_NOSLEEP (Results 1 - 3 of 3) sorted by relevance

/xnu-2782.1.97/bsd/sys/
H A Dmcache.h185 * MCR_NOSLEEP and MCR_FAILOK are mutually exclusive. The latter is used
194 * whether MCR_NOSLEEP is set. It informs the allocator that the request
199 * Regular mcache clients should only use MCR_SLEEP or MCR_NOSLEEP.
202 #define MCR_NOSLEEP 0x0001 /* same as M_NOWAIT */ macro
207 #define MCR_NONBLOCKING (MCR_NOSLEEP | MCR_FAILOK | MCR_TRYHARD)
/xnu-2782.1.97/bsd/kern/
H A Dmcache.c303 int malloc_wait = (wait & MCR_NOSLEEP) ? M_NOWAIT : M_WAITOK;
310 if (!(wait & MCR_NOSLEEP))
462 /* MCR_NOSLEEP and MCR_FAILOK are mutually exclusive */
463 VERIFY((wait & (MCR_NOSLEEP|MCR_FAILOK)) != (MCR_NOSLEEP|MCR_FAILOK));
564 } else if ((wait & (MCR_NOSLEEP | MCR_TRYHARD)) &&
803 bkt = mcache_alloc(btp->bt_cache, MCR_NOSLEEP);
922 if (!(wait & MCR_NOSLEEP))
H A Duipc_mbuf.c876 #define MSLEEPF(f) ((!((f) & M_DONTWAIT)) ? MCR_SLEEP : MCR_NOSLEEP)
2026 (wait & MCR_NOSLEEP) ? M_DONTWAIT : M_WAIT);
2039 if (wait & MCR_NOSLEEP) {
2428 if (!(wait & MCR_NOSLEEP))
3274 if (mcflags & MCR_NOSLEEP)
3499 if (mcflags & MCR_NOSLEEP)
3557 if (mcflags & MCR_NOSLEEP)
3591 if (mcflags & MCR_NOSLEEP)
3627 if (mcflags & MCR_NOSLEEP)
3801 if (!wantall || (mcflags & MCR_NOSLEEP))
[all...]

Completed in 27 milliseconds