| /xnu-11215/tests/ |
| H A D | invalid_setaudit_57414044.c | 23 int cond, ret = auditon(A_GETCOND, &cond, sizeof(cond)); variable 28 if (cond != AUC_AUDITING) {
|
| H A D | audit_session.c | 843 int cond, rv_from_auditon = auditon(A_GETCOND, &cond, sizeof(cond)); variable 942 int cond, rv_from_auditon = auditon(A_GETCOND, &cond, sizeof(cond)); variable 961 int cond, rv_from_auditon = auditon(A_GETCOND, &cond, sizeof(cond)); variable 989 int cond, rv_from_auditon = auditon(A_GETCOND, &cond, sizeof(cond)); variable 1061 int cond, rv_from_auditon = auditon(A_GETCOND, &cond, sizeof(cond)); variable
|
| H A D | stackshot_block_owner_14362384.m | 489 pthread_cond_t *cond = (pthread_cond_t *)arg; 490 pthread_cond_wait(cond, &mtx); 824 pthread_cond_t cond = PTHREAD_COND_INITIALIZER; 829 ret = pthread_create(&tid, NULL, pthread_cond_blocking_thread, (void*)&cond); 835 check_python(stackshot, __func__, "thread \\d+: pthread condvar %llx", (long long)&cond); 843 pthread_cond_signal(&cond); 845 T_EXPECT_EQ(waitinfo.context, (uint64_t)&cond, 847 pthread_cond_destroy(&cond);
|
| /xnu-11215/EXTERNAL_HEADERS/corecrypto/ |
| H A D | cc_priv.h | 281 #define CC_LIKELY(cond) __builtin_expect(!!(cond), 1) argument 282 #define CC_UNLIKELY(cond) __builtin_expect(!!(cond), 0) argument 284 #define CC_LIKELY(cond) cond argument 285 #define CC_UNLIKELY(cond) cond argument 288 #define cc_abort_if(cond, msg) \ argument 290 if (CC_UNLIKELY(cond)) { \
|
| /xnu-11215/doc/primitives/ |
| H A D | sched_cond.md | 13 * `sched_cond_init(sched_cond_t *cond)` - Initialize the atomic condition var 14 * `sched_cond_wait(sched_cond_t *cond, ...)` - Set state to inactive and wait for a wakeup on cond 15 * `sched_cond_signal(sched_cond_t *cond, ...)` - Issue a wakeup on cond for the specified thread 16 * `sched_cond_ack(sched_cond_t *cond)` - Acknowledge the wakeup on cond and set state to active 78 cond (G), signalling that it is inactive and checking for any wakeups that have been issued since t…
|
| /xnu-11215/bsd/sys/ |
| H A D | kern_memorystatus_notify.h | 65 #define VM_PRESSURE_DEBUG(cond, format, ...) \ argument 67 if (cond) { printf(format, ##__VA_ARGS__); } \ 70 #define VM_PRESSURE_DEBUG(cond, format, ...) argument
|
| /xnu-11215/osfmk/kern/ |
| H A D | btlog.h | 73 #define __btlog_check(cond, msg) \ argument 74 __attribute__((diagnose_if(cond, msg, "error"))) 76 #define __btlog_check(cond, msg)
|
| H A D | locks.h | 499 cond_swi_var_t cond, 535 cond_swi_var_t cond, 572 cond_swi_var_t cond, 602 cond_swi_var_t cond, 621 cond_swi_var_t cond,
|
| H A D | locks.c | 1694 cond_swi_var_t cond, 1710 turnstile_hash_bucket_lock((uintptr_t)cond, &index, type); 1728 ts = turnstile_prepare_hash((uintptr_t)cond, type); 1737 ret = waitq_assert_wait64(&ts->ts_waitq, CAST_EVENT64_T(cond), interruptible, deadline); 1751 turnstile_complete_hash((uintptr_t)cond, type); 1793 cond_swi_var32_s cond_val = {.cond32_data = os_atomic_load((uint32_t*) cond, relaxed)}; in cond_sleep_with_inheritor32_mask() 1841 cond_swi_var64_s cond_val = {.cond64_data = os_atomic_load((uint64_t*) cond, relaxed)}; in cond_sleep_with_inheritor64_mask() 1887 return cond_sleep_with_inheritor32_mask(cond, expected_cond, ~0u, interruptible, deadline); in cond_sleep_with_inheritor32() 1947 return wakeup_with_inheritor_and_turnstile((event_t)cond, in cond_wakeup_one_with_inheritor() 1968 cond_wakeup_all_with_inheritor(cond_swi_var_t cond, wait_result_t result) in cond_wakeup_all_with_inheritor() argument [all …]
|
| H A D | sched_prim.h | 661 sched_cond_atomic_t *cond); 673 sched_cond_atomic_t *cond, 694 sched_cond_atomic_t *cond, 716 sched_cond_atomic_t *cond, 741 sched_cond_atomic_t *cond);
|
| H A D | sched_prim.c | 1500 sched_cond_atomic_t *cond) in sched_cond_init() argument 1502 os_atomic_init(cond, SCHED_COND_INIT); in sched_cond_init() 1507 sched_cond_atomic_t *cond, in sched_cond_wait_parameter() argument 1512 assert_wait((event_t) cond, interruptible); in sched_cond_wait_parameter() 1514 sched_cond_t new_state = (sched_cond_t) os_atomic_andnot(cond, SCHED_COND_ACTIVE, relaxed); in sched_cond_wait_parameter() 1519 sched_cond_ack(cond); in sched_cond_wait_parameter() 1527 sched_cond_atomic_t *cond, in sched_cond_wait() argument 1531 return sched_cond_wait_parameter(cond, interruptible, continuation, NULL); in sched_cond_wait() 1536 sched_cond_atomic_t *cond) in sched_cond_ack() argument 1545 sched_cond_atomic_t *cond, in sched_cond_signal() argument [all …]
|
| /xnu-11215/libkern/zlib/ |
| H A D | zutil.h | 287 # define Assert(cond,msg) {if(!(cond)) z_error(msg);} argument 294 # define Assert(cond,msg) argument
|
| /xnu-11215/libkern/os/ |
| H A D | refcnt.h | 91 # define os_error_if(cond, msg) __attribute__((diagnose_if((cond), (msg), "error"))) argument
|
| /xnu-11215/bsd/dev/arm64/ |
| H A D | fasttrap_isa.c | 322 condition_true(int cond, int cpsr) argument 330 switch (cond) { 737 int cond; local 740 cond = (instr & 0xf); 743 if (condition_true(cond, regs64->cpsr)) {
|
| /xnu-11215/tests/vm/ |
| H A D | test_vm_no_pager_helper.c | 30 #define ASSERT(cond, ...) \ argument 31 if (!(cond)) { \
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | dtrace.c | 644 static int dtrace_enabling_match(dtrace_enabling_t *, int *, dtrace_match_cond_t *cond); 645 static void dtrace_enabling_matchall_with_cond(dtrace_match_cond_t *cond); 8773 dtrace_match_cond_t cond = {dtrace_cond_provider_match, provider->dtpv_name}; in dtrace_register() local 8774 dtrace_enabling_matchall_with_cond(&cond); in dtrace_register() 9465 dtrace_match_cond_t cond = {dtrace_cond_provider_match, (void*)prov_name}; in dtrace_helper_provide_one() local 9467 dtrace_enabling_matchall_with_cond(&cond); in dtrace_helper_provide_one() 12771 dtrace_enabling_match(dtrace_enabling_t *enab, int *nmatched, dtrace_match_cond_t *cond) in dtrace_enabling_match() argument 12790 if (cond && (cond->dmc_func(&ep->dted_probe, cond->dmc_data) == 0)) { in dtrace_enabling_match() 12835 dtrace_enabling_matchall_with_cond(dtrace_match_cond_t *cond) in dtrace_enabling_matchall_with_cond() argument 12858 (void) dtrace_enabling_match(enab, NULL, cond); in dtrace_enabling_matchall_with_cond()
|
| /xnu-11215/bsd/kern/ |
| H A D | ubc_subr.c | 93 #define assert(cond) \ argument 94 ((void) ((cond) ? 0 : panic("Assert failed: %s", # cond)))
|