| /xnu-11215/libkern/libclosure/ |
| H A D | runtime.cpp | 102 int32_t old_value = *where; in latching_incr_int() local 106 if (OSAtomicCompareAndSwapInt(old_value, old_value + 2, where)) { in latching_incr_int() 107 return old_value + 2; in latching_incr_int() 116 int32_t old_value = *where; in latching_incr_int_not_deallocating() local 117 if (old_value & BLOCK_DEALLOCATING) { in latching_incr_int_not_deallocating() 125 if (OSAtomicCompareAndSwapInt(old_value, old_value + 2, where)) { in latching_incr_int_not_deallocating() 138 int32_t old_value = *where; in latching_decr_int_should_deallocate() local 142 if ((old_value & BLOCK_REFCOUNT_MASK) == 0) { in latching_decr_int_should_deallocate() 145 int32_t new_value = old_value - 2; in latching_decr_int_should_deallocate() 148 new_value = old_value - 1; in latching_decr_int_should_deallocate() [all …]
|
| /xnu-11215/bsd/net/ |
| H A D | restricted_in_port.c | 215 int old_value = restricted_port_enforced; variable 216 int value = old_value; 231 old_value, restricted_port_enforced); 242 int old_value = restricted_port_verbose; variable 243 int value = old_value; 257 old_value, restricted_port_verbose); 268 uint16_t old_value = restricted_port_test; in sysctl_restricted_port_test_common() local 269 int value = old_value; in sysctl_restricted_port_test_common() 333 uint16_t old_value = restricted_port_test; variable 341 old_value, restricted_port_test); [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | tcp_ccdbg.c | 46 UInt32 old_value = TCP_CCDBG_NOUNIT; in tcp_ccdbg_control_connect() local 49 if (tcp_ccdbg_unit != old_value) { in tcp_ccdbg_control_connect() 53 if (OSCompareAndSwap(old_value, new_value, &tcp_ccdbg_unit)) { in tcp_ccdbg_control_connect() 66 UInt32 old_value = tcp_ccdbg_unit; in tcp_ccdbg_control_disconnect() local 72 if (!OSCompareAndSwap(old_value, new_value, in tcp_ccdbg_control_disconnect()
|
| H A D | mptcp.c | 179 int old_value = *(int *)oidp->oid_arg1; variable 192 old_value, *(int *)oidp->oid_arg1);
|
| H A D | in_pcb.c | 195 int old_value = *(int *)oidp->oid_arg1; variable 223 old_value, *(int *)oidp->oid_arg1);
|
| /xnu-11215/doc/primitives/ |
| H A D | atomics.md | 256 int old_value, new_value; 259 old_value = atomic_load_explicit(address, memory_order_relaxed); 261 if (!validate(old_value)) { 264 new_value = compute_new_value(old_value); 274 int old_value, new_value; 277 success = os_atomic_rmw_loop(address, old_value, new_value, acquire, { 278 if (!validate(old_value)) { 281 new_value = compute_new_value(old_value); 304 int old_value, new_value; 319 if (!validate(old_value)) { [all …]
|
| /xnu-11215/bsd/dev/i386/ |
| H A D | sysctl.c | 278 int new_value = 0, old_value = 0, changed = 0, error; in panic_set_restart_timeout() local 283 old_value = (int)MIN(nstime / NSEC_PER_SEC, INT_MAX); in panic_set_restart_timeout() 286 error = sysctl_io_number(req, old_value, sizeof(old_value), &new_value, &changed); in panic_set_restart_timeout() 366 uint64_t old_value; in misc_kernel_timeout_spin() local 372 absolutetime_to_nanoseconds(kernel_timeout_spin, &old_value); in misc_kernel_timeout_spin() 374 error = sysctl_io_number(req, old_value, sizeof(uint64_t), &new_value, &changed); in misc_kernel_timeout_spin() 958 uint64_t new_value = 0, old_value = 0; in misc_svisor_read() local 961 error = sysctl_io_number(req, old_value, sizeof(uint64_t), &new_value, &changed); in misc_svisor_read() 1057 uint32_t old_value = curtask_get_insn_copy_optout() ? 1 : 0; variable 1068 return SYSCTL_OUT(req, &old_value, sizeof(old_value));
|
| /xnu-11215/libsyscall/wrappers/ |
| H A D | kdebug_trace.c | 76 void* old_value = NULL; in kdebug_typefilter() local 77 …if (ptr && !atomic_compare_exchange_strong((void* _Atomic volatile *)&typefilter, &old_value, ptr)… in kdebug_typefilter()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_sysctl.c | 3452 int new_value, old_value, changed; local 3458 old_value = KERN_RAGE_THREAD; 3460 old_value = KERN_RAGE_PROC; 3462 old_value = 0; 3516 int new_value, old_value; local 3526 old_value = 0; 3528 if ((error = sysctl_io_number(req, old_value, sizeof(old_value), &new_value, NULL)) != 0) { 3566 old_value = KERN_OPENEVT_PROC; 3568 old_value = 0; 4315 vm_map_size_t old_value; local [all …]
|
| H A D | sys_generic.c | 2883 uint32_t old_value = thread_get_no_smt() ? 1 : 0; variable 2895 return SYSCTL_OUT(req, &old_value, sizeof(old_value)); 2983 int old_value = thread_get_no_smt() ? 1 : 0; in sysctl_kern_sched_thread_set_no_smt() local 2984 int error = sysctl_io_number(req, old_value, sizeof(int), &new_value, &changed); in sysctl_kern_sched_thread_set_no_smt() 3012 int old_value = rt_allow_limit_percent; in sysctl_kern_rt_allow_limit_percent() local 3015 int error = sysctl_io_number(req, old_value, sizeof(old_value), in sysctl_kern_rt_allow_limit_percent() 3044 uint64_t old_value = rt_allow_limit_interval_ms; in sysctl_kern_rt_allow_limit_interval_ms() local 3047 int error = sysctl_io_number(req, old_value, sizeof(old_value), in sysctl_kern_rt_allow_limit_interval_ms() 3077 int old_value = task_get_filter_msg_flag(current_task()) ? 1 : 0; variable 3128 int old_value = ipc_entry_table_count_max(); variable [all …]
|
| H A D | kern_exit.c | 1364 uint32_t old_value = atomic_load_explicit(&p->p_user_faults, in abort_with_payload_internal() local 1374 if (old_value >= OS_REASON_TOTAL_USER_FAULTS_PER_PROC) { in abort_with_payload_internal() 1379 &old_value, old_value + 1, memory_order_relaxed, in abort_with_payload_internal()
|
| H A D | kern_memorystatus.c | 4827 uint64_t old_value = 0; variable 4834 old_value = memorystatus_vm_map_fork_pidwatch_val; 4836 error = sysctl_io_number(req, old_value, sizeof(old_value), &new_value, NULL); 4850 …log_debug("memorystatus: pidwatch old_value = 0x%llx, new_value = 0x%llx\n", old_value, new_value);
|
| /xnu-11215/bsd/dev/arm64/ |
| H A D | sysctl.c | 116 int old_value = (int)ml_cpu_signal_deferred_get_timer(); in cpu_signal_deferred_timer() local 118 int error = sysctl_io_number(req, old_value, sizeof(int), &new_value, &changed); in cpu_signal_deferred_timer()
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_protos.h | 563 bool *old_value);
|
| H A D | vm_user.c | 1175 vm_toggle_entry_reuse(int toggle, int *old_value) in vm_toggle_entry_reuse() argument 1180 if (toggle == VM_TOGGLE_GETVALUE && old_value != NULL) { in vm_toggle_entry_reuse() 1181 *old_value = map->disable_vmentry_reuse; in vm_toggle_entry_reuse()
|
| H A D | memory_object.c | 1691 bool *old_value) in memory_object_mark_as_tracked() argument 1705 *old_value = object->fbdp_tracked; in memory_object_mark_as_tracked()
|
| H A D | vm_shared_region.c | 3022 uint32_t old_value; in vm_shared_region_slide_page_v1() local 3025 old_value = *ptr_to_slide; in vm_shared_region_slide_page_v1() 3027 if (is_64 && *ptr_to_slide < old_value) { in vm_shared_region_slide_page_v1() 3035 i, j, b, slide, old_value, *ptr_to_slide); in vm_shared_region_slide_page_v1()
|
| /xnu-11215/osfmk/kern/ |
| H A D | policy_internal.h | 245 extern int task_low_mem_privileged_listener(task_t task, boolean_t new_value, boolean_t *old_value);
|
| H A D | task_policy.c | 3754 task_low_mem_privileged_listener(task_t task, boolean_t new_value, boolean_t *old_value) in task_low_mem_privileged_listener() argument 3756 if (old_value != NULL) { in task_low_mem_privileged_listener() 3757 *old_value = (boolean_t)task->low_mem_privileged_listener; in task_low_mem_privileged_listener()
|
| /xnu-11215/tests/skywalk/ |
| H A D | skywalk_test_common.c | 2394 sktc_toggle_ip_reass(int new_value, int *old_value) in sktc_toggle_ip_reass() argument 2396 size_t old_value_size = sizeof(*old_value); in sktc_toggle_ip_reass() 2401 old_value, old_value != NULL ? &old_value_size : NULL, in sktc_toggle_ip_reass()
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_syscalls.c | 11957 int new_value, old_value, changed = 0; in sysctl_nspace_resolver() local 11960 error = nspace_resolver_get_proc_state(p, &old_value); in sysctl_nspace_resolver() 11965 error = sysctl_io_number(req, old_value, sizeof(int), &new_value, in sysctl_nspace_resolver() 11983 int new_value, old_value, changed = 0; in sysctl_nspace_prevent_materialization() local 11986 error = nspace_materialization_get_proc_state(p, &old_value); in sysctl_nspace_prevent_materialization() 11991 error = sysctl_io_number(req, old_value, sizeof(int), &new_value, in sysctl_nspace_prevent_materialization() 12008 int new_value, old_value, changed = 0; in sysctl_nspace_thread_prevent_materialization() local 12011 error = nspace_materialization_get_thread_state(&old_value); in sysctl_nspace_thread_prevent_materialization() 12016 error = sysctl_io_number(req, old_value, sizeof(int), &new_value, in sysctl_nspace_thread_prevent_materialization()
|
| /xnu-11215/libkern/c++/ |
| H A D | OSKext.cpp | 16964 int new_value = 0, old_value = 0, changed = 0; local 16965 int error = sysctl_io_number(req, old_value, sizeof(int), &new_value, &changed);
|