| /xnu-11215/osfmk/kern/ |
| H A D | mk_sp.c | 78 policy_limit_t limit, in thread_set_policy() argument 97 policy_rr_limit_t rr_limit = (policy_rr_limit_t) limit; in thread_set_policy() 140 (policy_timeshare_limit_t) limit; in thread_set_policy() 192 policy_limit_t limit = NULL; in thread_policy() local 228 limit = (policy_limit_t) &rr_limit; in thread_policy() 245 limit = (policy_limit_t) &fifo_limit; in thread_policy() 262 limit = (policy_limit_t) &ts_limit; in thread_policy() 294 limit = (policy_limit_t) &rr_limit; in thread_policy() 316 limit = (policy_limit_t) &fifo_limit; in thread_policy() 338 limit = (policy_limit_t) &ts_limit; in thread_policy() [all …]
|
| H A D | compact_id.c | 142 compact_id_t limit, in compact_id_get_locked() argument 165 if (cid > limit) { in compact_id_get_locked() 184 compact_id_t limit, in compact_id_get() argument 190 cid = compact_id_get_locked(table, limit, value); in compact_id_get()
|
| H A D | ledger.c | 1316 *limit = LEDGER_LIMIT_INFINITY; in ledger_get_limit() 1319 *limit = le->le_limit; in ledger_get_limit() 1353 if (limit == LEDGER_LIMIT_INFINITY) { in ledger_set_limit() 1362 le->le_limit = limit; in ledger_set_limit() 2455 return limit > balance ? limit - balance + 1 : 0; in ledger_get_remaining() 2498 int64_t limit; in ledger_limit() local 2545 limit = nsecs_to_abstime(nsecs); in ledger_limit() 2547 limit = args->lla_limit; in ledger_limit() 2555 ledger_set_limit(l, idx, limit); in ledger_limit() 2601 *limit = LEDGER_LIMIT_INFINITY; in ledger_get_diag_mem_threshold() [all …]
|
| H A D | compact_id.h | 113 compact_id_t limit, 118 compact_id_t limit,
|
| H A D | ledger.h | 204 ledger_amount_t *limit); 206 ledger_amount_t limit, uint8_t warn_level_percentage); 272 ledger_amount_t *limit); 275 ledger_amount_t limit);
|
| H A D | exc_resource.h | 272 #define EXC_RESOURCE_IO_ENCODE_LIMIT(code, limit) \ argument 273 ((code) |= (((uint64_t)(limit) & 0x7FFFULL)))
|
| H A D | restartable.c | 142 uint64_t limit = task_has_64Bit_data(task) ? UINT64_MAX : UINT32_MAX; in _ranges_validate() local 163 if (ranges[i].location > limit || end > limit || recovery > limit) { in _ranges_validate()
|
| H A D | coalition.h | 110 int coalition_ledger_set_logical_writes_limit(coalition_t coal, int64_t limit); 111 void coalition_io_monitor_ctl(struct coalition *coalition, uint32_t flags, int64_t limit);
|
| /xnu-11215/osfmk/vm/ |
| H A D | WKdm_new.h | 87 unsigned int limit); 98 unsigned int limit); 110 unsigned int limit);
|
| H A D | vm_compressor_algorithms.c | 271 boolean_t *incomp_copy, unsigned int limit, __unused uint32_t *pop_count) in WKdmC() argument 278 wkcval = WKdm_compress_4k(src_buf, dest_buf, scratch, limit); in WKdmC() 286 int wkswsz = WKdm_compress_16k(src_buf, dest_buf, scratch, limit); in WKdmC() 293 wkcval = WKdm_compress_new(src_buf, dest_buf, scratch, limit); in WKdmC()
|
| /xnu-11215/doc/vm/ |
| H A D | memorystatus_kills.md | 20 … | thread that went over the process' memory limit | No | 31 …limit kills. When the number of available pages is below `memorystatus_available_pages_pressure`, … 35 When the system hits the vnode limit, and the VFS subsystem is not able to recycle any vnodes, we k… 59 …of old segments (older than 48 hours) in the compressor pool is above our limit and the compressor… 65 …limit. The process is immediately killed. This kill happens on the thread that tried to allocate a… 67 …limit when it's a soft limit. In that case the callback does a simulated crash instead of a per pr… 94 The compressor is at or near either the segment or compressed pages limit. See `vm_compressor_low_o… 100 …ore swap files (either because we've run out of disk space or we've hit the static swapfile limit). 101 …m priority order. If we're approaching but not yet at the swapfile limit we will limit the kills t…
|
| H A D | memorystatus_notify.md | 7 Handlers can be registered for pressure and limit notifications via the 21 …ORYPRESSURE_PROC_LIMIT_WARN` | Process is within 100 MB of its memory limit. … 22 …ESSURE_PROC_LIMIT_CRITICAL` | Process has violated memory limit. Only sent if the memory limit is … 108 limit), it will notify registered process via `NOTE_MEMORYSTATUS_LOW_SWAP` /
|
| /xnu-11215/libsyscall/wrappers/ |
| H A D | coalition.c | 79 coalition_ledger_set_logical_writes_limit(uint64_t cid, int64_t limit) in coalition_ledger_set_logical_writes_limit() argument 81 size_t size = sizeof(limit); in coalition_ledger_set_logical_writes_limit() 82 return __coalition_ledger(COALITION_LEDGER_SET_LOGICAL_WRITES_LIMIT, &cid, (void *)&limit, &size); in coalition_ledger_set_logical_writes_limit()
|
| /xnu-11215/bsd/dev/i386/ |
| H A D | fbt_x86.c | 264 machine_inst_t *instr, *limit, theInstr, i1, i2, i3; in fbt_provide_probe() local 294 limit = (machine_inst_t *)instrHigh; in fbt_provide_probe() 322 if ((instr + 1) >= limit) in fbt_provide_probe() 415 if (instr >= limit) in fbt_provide_probe() 444 if (check + sizeof (uintptr_t) > (uintptr_t)limit) in fbt_provide_probe() 449 if (ptr >= (uint8_t *)symbolStart && ptr < limit) { in fbt_provide_probe() 478 if (instr >= limit) in fbt_provide_probe()
|
| /xnu-11215/tests/vm/ |
| H A D | entitlement_internal_bands.c | 26 int32_t set_band, limit; variable 29 bool success = get_priority_props(getpid(), false, &set_band, &limit, &user_data, &state);
|
| /xnu-11215/bsd/dev/arm64/ |
| H A D | fbt_arm.c | 283 machine_inst_t *instr, *pushinstr = NULL, *limit, theInstr; in fbt_provide_probe() local 299 limit = (machine_inst_t *)instrHigh; in fbt_provide_probe() 423 if (instr >= limit) { in fbt_provide_probe() 458 for (; instr < limit; instr++) { in fbt_provide_probe() 469 if (dest >= limit || dest < symbolStart) { in fbt_provide_probe()
|
| /xnu-11215/libsyscall/mach/ |
| H A D | thread_act.c | 65 …olicy, policy_base_t base, mach_msg_type_number_t baseCnt, policy_limit_t limit, mach_msg_type_num… in thread_set_policy() argument 69 kr = _kernelrpc_thread_set_policy(thr_act, pset, policy, base, baseCnt, limit, limitCnt); in thread_set_policy()
|
| /xnu-11215/tests/ |
| H A D | sysctl_wire_limits.c | 141 wire_to_limit(size_t limit, size_t *size) in wire_to_limit() argument 159 T_QUIET; T_ASSERT_GE(limit, offset_from_limit, "more pages are wired than the limit."); in wire_to_limit() 160 buffer_size = limit - offset_from_limit; in wire_to_limit()
|
| H A D | memorystatus_vm_map_fork.c | 245 char *limit; variable 258 limit = argv[0]; 260 limit_mb = strtol(limit, NULL, 10);
|
| H A D | memorystatus_assertion_helpers.c | 169 entry.pid, entry.limit, entry.user_data, entry.priority, entry.state); in get_priority_props() 180 *limit_mb = entry.limit; in get_priority_props()
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | lockprof.c | 117 uint64_t limit = count * mult; in probe_create() local 120 nanoseconds_to_absolutetime(limit, &limit); in probe_create() 144 probe->lockprof_limit = limit; in probe_create()
|
| H A D | fbt.c | 360 uint64_t limit; in fbt_provide_kernel_section() local 389 limit = sect_end; in fbt_provide_kernel_section() 391 limit = sym[i + 1].n_value; in fbt_provide_kernel_section() 394 …rovide_probe(ctl, ctl->mod_modname, name, (machine_inst_t*)sym[i].n_value, (machine_inst_t*)limit); in fbt_provide_kernel_section()
|
| /xnu-11215/osfmk/mach/ |
| H A D | resource_notify.defs | 69 observation_nsecs : int64_t; /* time it took to hit limit */ 89 observation_nsecs : int64_t; /* time it took to hit limit */ 109 observation_nsecs : int64_t; /* time it took to hit limit */
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_netifdirect.c | 298 netif_payload_t payload, int payload_length, uint32_t limit, 306 assert(payload->packet_number < limit); 320 if (payload->packet_number < limit) { 325 payload->packet_number, limit); 381 if (payload->packet_number >= limit) { 394 skt_netif_channel_receive(int child, channel_port_t port, uint32_t limit, in skt_netif_channel_receive() argument 402 assert(*receive_index < limit); in skt_netif_channel_receive() 465 if (*receive_index == limit) { in skt_netif_channel_receive()
|
| /xnu-11215/bsd/net/pktsched/ |
| H A D | pktsched_netem.c | 692 size_t limit; /* max size */ member 694 struct heap_elem __counted_by(limit) p[]; 803 heap_create(size_t limit) in heap_create() argument 808 h = kalloc_type(struct heap, struct heap_elem, limit, Z_WAITOK | Z_ZERO); in heap_create() 813 h->limit = limit; in heap_create() 824 kfree_type(struct heap, struct heap_elem, h->limit, h); in heap_destroy() 836 if (h->size == h->limit) { in heap_insert()
|