| /xnu-11215/libkern/os/ |
| H A D | log_mem.c | 57 return lm->lm_mem_map[BITMAP_BUCKET(block)] & BITMAP_BIT(block); in bitmap_get() 63 lm->lm_mem_map[BITMAP_BUCKET(block)] |= BITMAP_BIT(block); in bitmap_set() 69 lm->lm_mem_map[BITMAP_BUCKET(block)] &= ~BITMAP_BIT(block); in bitmap_clear() 95 while (block > top_block) { in bitmap_release_root() 97 block = BLOCK_PARENT(block); in bitmap_release_root() 105 bitmap_clear(lm, block); in bitmap_release_root() 116 fun(lm, block + i); in bitmap_update_subtree() 118 block = BLOCK_LCHILD(block); in bitmap_update_subtree() 163 for (size_t block = base; block < end; block++) { in block_reserve() local 167 return block - base; in block_reserve() [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_lockf.c | 524 struct lockf *block; in lf_setlock() local 724 lock->lf_next = block; in lf_setlock() 837 block = *head; in lf_setlock() 843 block = overlap->lf_next; in lf_setlock() 1154 struct lockf *block; in lf_getlock() local 1167 (block->lf_start == 0 && LF_END(block) == OFF_MAX)) { in lf_getlock() 1170 fl->l_len = LF_END(block) - block->lf_start + 1; in lf_getlock() 1653 proc_pid(block->lf_owner), block); in lf_hold_assertion() 1693 proc_pid(block->lf_owner), block); in lf_drop_assertion() 1739 lf_drop_assertion(block); in lf_adjust_assertion() [all …]
|
| H A D | kern_synch.c | 222 goto block; in _sleep() 241 goto block; in _sleep() 257 block: in _sleep()
|
| /xnu-11215/libkern/c++/ |
| H A D | OSCollection.cpp | 135 bool (^block)(OSObject * object) = (typeof(block))refcon; in OSCollectionIterateObjectsBlock() local 136 return block(object); in OSCollectionIterateObjectsBlock() 140 OSCollection::iterateObjects(bool (^block)(OSObject * object)) 142 return iterateObjects((void *) block, OSCollectionIterateObjectsBlock);
|
| H A D | OSSerialize.cpp | 353 OSSerializerBlock block; in withBlock() local 355 block = Block_copy(callback); in withBlock() 356 if (!block) { in withBlock() 360 serializer = (OSSerializer::forTarget(NULL, &OSSerializer::callbackToBlock, block)); in withBlock() 363 Block_release(block); in withBlock()
|
| H A D | OSObject.cpp | 451 OSObject::iterateObjects(bool (^block)(OSObject * object)) 455 return col->iterateObjects(block); 457 return block(this);
|
| H A D | OSDictionary.cpp | 869 bool (^block)(const OSSymbol * key, OSObject * object) = (typeof(block))refcon; in OSDictionaryIterateObjectsBlock() local 870 return block(key, object); in OSDictionaryIterateObjectsBlock() 874 OSDictionary::iterateObjects(bool (^block)(const OSSymbol * key, OSObject * object)) 876 return iterateObjects((void *)block, &OSDictionaryIterateObjectsBlock);
|
| /xnu-11215/tests/ |
| H A D | kqueue_in_select.c | 20 void (^block)(void) = arg; in pthread_async_do() local 21 block(); in pthread_async_do() 22 Block_release(block); in pthread_async_do() 28 pthread_async(void (^block)(void)) 33 rc = pthread_create(&th, NULL, pthread_async_do, Block_copy(block));
|
| H A D | kqueue_close.c | 87 void (^block)(void) = arg; in pthread_async_do() local 88 block(); in pthread_async_do() 89 Block_release(block); in pthread_async_do() 95 pthread_async(void (^block)(void)) 100 rc = pthread_create(&th, NULL, pthread_async_do, Block_copy(block));
|
| H A D | kqueue_port_tests.c | 69 void (^block)(void) = arg; in pthread_async_do() local 70 block(); in pthread_async_do() 71 Block_release(block); in pthread_async_do() 77 pthread_async(void (^block)(void)) 82 rc = pthread_create(&th, NULL, pthread_async_do, Block_copy(block));
|
| H A D | stackshot_block_owner_14362384.m | 527 sleep(1); // give time for thread to block 562 /* Initialize a userspace semaphore, and spawn a thread to block on it. */ 579 sleep(1); // give time for thread to block 623 sleep(1); // give time for thread to block 636 sleep(1); // give time for thread to block 667 sleep(3); // give time for thread to spawn, fall back to kernel for contention, and block 702 sleep(1); // give time for thread to block 703 // this thread should spawn and try to acquire the same kernel rwlock for read, but block 706 sleep(1); // give time for thread to block 762 sleep(2); // give time for thread to block [all …]
|
| H A D | perf_vmfault.c | 259 char *ptr, *block; in fault_pages() local 262 block = memregion_config_per_thread[thread_id].shared_region_addr ? in fault_pages() 265 for (ptr = block; ptr < block + memregion_config_per_thread[thread_id].region_len; ptr += pgsize) { in fault_pages()
|
| /xnu-11215/iokit/DriverKit/ |
| H A D | IODispatchQueue.iig | 69 * By default the queue is serial and will execute one block at a time. 118 * invokes a callback block. Canceling is asynchronous. 127 * @brief Schedule a block to be executed on the queue asynchronously. 129 * retained until the block completes. 133 DispatchAsync(IODispatchBlock block) LOCALONLY; 142 * @brief Schedule a block to be executed concurrently & asynchronously. 150 DispatchConcurrent(IODispatchBlock block) LOCALONLY; 159 * @brief Execute a block on the queue synchronously. 160 * @discussion Execute a block on the queue synchronously. 161 * @param block Block that will executed on the queue. [all …]
|
| H A D | IOServiceNotificationDispatchSource.iig | 76 …* @param handler Optional block to be executed after the interrupt has been disabled and any… 88 * @param handler Handler block to be invoked after any callbacks have completed. 95 * @brief Set the handler block to run when the notification has become ready. 107 …* @brief Invoke a block for each notification available in response to ServiceNotificationRe… 108 …on The IOService object passed to the notification is only retained for the duration of the block. 109 * It should be retained by the block code if used beyond the invocation. 110 * @param block to be invoked with each notification 114 DeliverNotifications(IOServiceNotificationBlock block) LOCALONLY;
|
| H A D | IOInterruptDispatchSource.iig | 55 * IOInterruptDispatchSource delivers interrupts to a handler block on a dispatch queue. 72 * @param queue Target queue to run the handler block. 105 * @brief Set the handler block to run when the interupt fires. 117 …* @param handler Optional block to be executed after the interrupt has been disabled and any… 129 * @param handler Handler block to be invoked after any callbacks have completed.
|
| H A D | IOServiceStateNotificationDispatchSource.iig | 64 …* @param handler Optional block to be executed after the interrupt has been disabled and any… 76 * @param handler Handler block to be invoked after any callbacks have completed. 83 * @brief Set the handler block to run when the notification has become ready.
|
| /xnu-11215/osfmk/kern/ |
| H A D | remote_time.c | 259 goto block; in bt_calibration_thread() 288 goto block; in bt_calibration_thread() 294 goto block; in bt_calibration_thread() 312 goto block; in bt_calibration_thread() 367 goto block; in bt_calibration_thread() 397 goto block; in bt_calibration_thread() 408 goto block; in bt_calibration_thread() 448 block: in bt_calibration_thread()
|
| H A D | coalition.c | 184 coalition_for_each_task_block_t block); 739 i_coal_resource_iterate_tasks(coalition_t coal, coalition_for_each_task_block_t block) in i_coal_resource_iterate_tasks() argument 745 bool should_return = block(t); in i_coal_resource_iterate_tasks() 1261 coalition_for_each_task_block_t block) in i_coal_jetsam_iterate_tasks() argument 1272 bool should_return = block( t); in i_coal_jetsam_iterate_tasks() 1279 bool should_return = block(t); in i_coal_jetsam_iterate_tasks() 1286 bool should_return = block(t); in i_coal_jetsam_iterate_tasks() 1293 bool should_return = block(t); in i_coal_jetsam_iterate_tasks() 1851 selected_task = coal_call(coal, iterate_tasks, block); in coalition_for_each_task_locked() 1863 coalition_for_each_task_locked(coal, block); in coalition_for_each_task() [all …]
|
| /xnu-11215/bsd/nfs/gss/ |
| H A D | gss_krb5_mech.c | 508 if (block == NULL) { in mbuf_walk() 520 cc_clear(blocksize, block); in mbuf_walk() 522 memcpy(block, ptr, residue); in mbuf_walk() 542 memcpy(ptr, block, residue); in mbuf_walk() 546 kfree_data(block, blocksize); in mbuf_walk() 740 uint8_t *block = NULL; in krb5_crypt_mbuf() local 743 if (block == NULL) { in krb5_crypt_mbuf() 949 uint8_t *block = NULL; in krb5_key_derivation() local 959 cccbc_update(ctx->enc_mode, enc_ctx, iv, 1, block, block); in krb5_key_derivation() 963 kfree_data(block, blocksize); in krb5_key_derivation() [all …]
|
| /xnu-11215/libkern/libkern/ |
| H A D | Block_private.h | 425 _Block_get_invoke_fn(struct Block_layout *block) in _Block_get_invoke_fn() argument 427 return (void (*)(void *, ...))_Block_get_function_pointer(block->invoke); in _Block_get_invoke_fn() 431 _Block_set_invoke_fn(struct Block_layout *block, void (*fn)(void *, ...)) in _Block_set_invoke_fn() argument 433 _Block_set_function_pointer(block->invoke, fn); in _Block_set_invoke_fn()
|
| /xnu-11215/EXTERNAL_HEADERS/corecrypto/ |
| H A D | cccmac.h | 26 uint8_t block[CMAC_BLOCKSIZE]; member 54 #define cccmac_block(HC) (CCCMAC_HDR(HC)->block)
|
| /xnu-11215/tests/vm/ |
| H A D | vm_user.c | 25 fork_child_test(void (^block)(void)) 33 block();
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOEventSource.cpp | 237 IOEventSource::setActionBlock(ActionBlock block) in setActionBlock() argument 242 actionBlock = Block_copy(block); in setActionBlock()
|
| /xnu-11215/doc/primitives/ |
| H A D | sched_cond.md | 45 …the thread will still yield (D), thus spending precious CPU cycles setting itself up to block only 80 it will block as in (D). 91 block if it observes a wakeup has been issued while it was awake.
|
| /xnu-11215/libkern/libkern/crypto/ |
| H A D | des.h | 74 int des3_ecb_encrypt(des_cblock *block, des_cblock *, des3_ecb_key_schedule *ks, int encrypt);
|