| /xnu-11215/bsd/kern/ |
| H A D | uipc_mbuf2.c | 480 struct mbuf *m = m_get(wait, MT_TAG); in m_tag_alloc_mbuf() 499 mb_cl = m_mclalloc(wait); in m_tag_alloc_mbuf() 525 return m_tag_alloc(id, type, len, wait); in m_tag_create_mbuf() 565 return m_tag_alloc(id, type, len, wait); in m_tag_create_mbuf() 618 m_tag_data_kalloc(uint16_t len, int wait) in m_tag_data_kalloc() argument 633 m_tag_data_kalloc(uint16_t len, int wait) 635 return kalloc_data(len, wait | M_ZERO); 658 data = m_tag_data_kalloc(len, wait); in m_tag_kalloc_external() 768 if (wait & Z_NOWAIT) { in m_tag_alloc() 769 wait &= ~Z_NOWAIT; in m_tag_alloc() [all …]
|
| H A D | uipc_mbuf.c | 3328 int wait) in mbuf_cslab_alloc() argument 3378 wait |= MCR_COMP; in mbuf_cslab_alloc() 4378 m = mz_alloc(wait); 4392 #define _M_GET(wait, type) m_get_common(wait, type, 0) argument 4393 #define _M_GETHDR(wait, type) m_get_common(wait, type, 1) argument 4394 #define _M_RETRY(wait, type) _M_GET(wait, type) argument 4395 #define _M_RETRYHDR(wait, type) _M_GETHDR(wait, type) argument 4829 m_mclalloc(int wait) argument 4873 m_bigalloc(int wait) argument 4928 m_16kalloc(int wait) argument [all …]
|
| H A D | mcache.c | 258 u_int32_t flags, int wait __unused) in mcache_create() 273 u_int32_t flags, int wait __unused) in mcache_create_ext() 423 mcache_alloc_ext(mcache_t *cp, mcache_obj_t **list, unsigned int num, int wait) in mcache_alloc_ext() argument 432 VERIFY((wait & (MCR_NOSLEEP | MCR_FAILOK)) != (MCR_NOSLEEP | MCR_FAILOK)); in mcache_alloc_ext() 553 need -= (*cp->mc_slab_alloc)(cp->mc_private, &list, need, wait); in mcache_alloc_ext() 560 if (!(wait & MCR_NONBLOCKING)) { in mcache_alloc_ext() 563 } else if ((wait & (MCR_NOSLEEP | MCR_TRYHARD)) && in mcache_alloc_ext() 620 mcache_alloc(mcache_t *cp, int wait) in mcache_alloc() argument 624 (void) mcache_alloc_ext(cp, &buf, 1, wait); in mcache_alloc() 946 int wait) in mcache_slab_alloc() argument [all …]
|
| /xnu-11215/bsd/sys/ |
| H A D | wait.h | 194 union wait { union 249 pid_t wait(int *) __DARWIN_ALIAS_C(wait);
|
| /xnu-11215/osfmk/console/ |
| H A D | serial_protos.h | 90 int _serial_getc(bool wait); 91 int _vcgetc(bool wait);
|
| H A D | serial_console.c | 638 _serial_getc(bool wait) in _serial_getc() argument 644 } while (wait && c < 0); in _serial_getc() 673 _vcgetc(__unused bool wait) in _vcgetc() argument
|
| /xnu-11215/osfmk/kern/ |
| H A D | kern_apfs_reflock.c | 368 bool wait = false; in kern_apfs_reflock_wait_for_unlock() local 396 wait = true; in kern_apfs_reflock_wait_for_unlock() 401 wait = false; in kern_apfs_reflock_wait_for_unlock() 414 assert(wait == false); in kern_apfs_reflock_wait_for_unlock() 419 if (!wait) { in kern_apfs_reflock_wait_for_unlock()
|
| H A D | waitq.h | 821 #pragma mark wait queues lifecycle 849 #pragma mark port wait queues and port set waitq sets 1009 #pragma mark select wait queues and select port set waitq sets
|
| H A D | exclaves.c | 1603 handle_response_wait(const XrtHosted_Wait_t *wait) in handle_response_wait() argument 1605 Exclaves_L4_Word_t responding_scid = wait->waiter; in handle_response_wait() 1612 "epoch 0x%llx\n", responding_scid, wait->owner, in handle_response_wait() 1613 wait->queueId, wait->epoch); in handle_response_wait() 1614 assert3u(wait->waiterHostId, ==, ctid); in handle_response_wait() 1627 const ctid_t owner = (ctid_t)wait->ownerHostId; in handle_response_wait() 1628 const XrtHosted_Word_t id = wait->queueId; in handle_response_wait() 1629 const uint64_t epoch = wait->epoch; in handle_response_wait() 1634 switch (wait->interruptible) { in handle_response_wait() 1652 wait->interruptible); in handle_response_wait() [all …]
|
| H A D | simple_lock.h | 161 boolean_t wait); 168 boolean_t wait);
|
| H A D | locks.c | 372 hw_lock_trylock_bit(uint32_t *target, unsigned int bit, bool wait) in hw_lock_trylock_bit() argument 382 if (wait) { in hw_lock_trylock_bit() 388 if (wait) { in hw_lock_trylock_bit() 399 if (wait) { in hw_lock_trylock_bit() 2313 gate_not_closed_panic(gate_t *gate, bool wait) in gate_not_closed_panic() argument 2315 if (wait) { in gate_not_closed_panic() 2362 wait_result_t* wait, in gate_wait_turnstile() argument 2377 *wait = thread_block(THREAD_CONTINUE_NULL); in gate_wait_turnstile() 2395 ((*wait != THREAD_AWAKENED) || // thread interrupted or timedout in gate_wait_turnstile()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOServicePrivate.h | 117 virtual void wait(); 139 virtual void wait(); 154 virtual void wait();
|
| H A D | IOSyncer.cpp | 93 IOSyncer::wait(bool autoRelease) in wait() function in IOSyncer
|
| H A D | IOService.cpp | 914 if (wait) { in attach() 2457 wait(); in remove() 2474 wait(); in disable() 2783 bool wait; in waitToBecomeTerminateThread() local 2786 if (wait) { in waitToBecomeTerminateThread() 2840 if (wait) { in scheduleTerminatePhase2() 5615 if (wait) { in waitForState() 5633 if (wait) { in waitForState() 5960 if (wait) { in waitMatchIdle() 7069 wait(); in remove() [all …]
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | IOEventLink.iig | 131 …* @brief Signal the eventlink and wait. If a thread is waiting on the eventlink, this will w… 133 … When the calling thread wakes up, the amount of signals consumed by the wait will be written her… 140 …* @brief Signal the eventlink and wait with a timeout. If a thread is waiting on the eventli… 142 … When the calling thread wakes up, the amount of signals consumed by the wait will be written her… 153 … When the calling thread wakes up, the amount of signals consumed by the wait will be written her…
|
| /xnu-11215/iokit/IOKit/ |
| H A D | IOSyncer.h | 56 virtual IOReturn wait(bool autoRelease = true)
|
| /xnu-11215/tests/ |
| H A D | stackshot_block_owner_14362384.m | 241 * sysctl will either lock and immediately release the lock, or lock and wait until a semaphore 256 action_name = "lock (and wait)"; 348 * sysctl will either lock and immediately release the lock, or lock and wait until a semaphore 367 action_name = "shared lock (and wait)"; 373 action_name = "exclusive lock (and wait)"; 526 T_QUIET; T_ASSERT_POSIX_ZERO(ret, "Spawning grab and wait thread"); 676 ret = pthread_join(tid, NULL); // wait for thread to unblock and exit 699 // this thread should spawn, acquire a kernel rwlock for write, and then wait on a semaphore 775 ret = pthread_join(tid, NULL); // wait for thread to unblock and exit 811 ret = pthread_join(tid, NULL); // wait for thread to unblock and exit [all …]
|
| H A D | test_ptraceme.c | 83 wait(NULL);
|
| H A D | task_info_28439149.c | 83 wait(NULL);
|
| H A D | extract_right_soft_fail.c | 134 wait(&status);
|
| H A D | proc_core_name_24152432.c | 84 ret = wait(NULL); in fork_and_wait_for_segfault()
|
| /xnu-11215/libkern/kxld/tests/ |
| H A D | loadtest.py | 52 retcode = kextload.wait()
|
| /xnu-11215/doc/primitives/ |
| H A D | sched_cond.md | 14 * `sched_cond_wait(sched_cond_t *cond, ...)` - Set state to inactive and wait for a wakeup on cond 77 …s active and clearing the queued wakeup. Once done with its consumption it attempts to wait on the
|
| /xnu-11215/osfmk/arm/ |
| H A D | locks_arm.c | 185 …t32(uint32_t *target, uint32_t test_mask, uint32_t set_mask, enum memory_order ord, boolean_t wait) in atomic_test_and_set32() argument 192 if (wait) { in atomic_test_and_set32()
|
| /xnu-11215/tools/tests/perf_index/ |
| H A D | README | 23 connect to. This tells the program to connect to the specified server and wait 27 The server will wait for num_client to connect. It will then pass type, threads,
|