Home
last modified time | relevance | path

Searched refs:need (Results 1 – 25 of 53) sorted by relevance

123

/xnu-12377.61.12/bsd/kern/
H A Dmcache.c428 unsigned int need = num; in mcache_alloc_ext() local
461 objs = MIN((unsigned int)ccp->cc_objs, need); in mcache_alloc_ext()
471 if ((need -= objs) == 0) { in mcache_alloc_ext()
514 &bkt, (need <= ccp->cc_bktsize) ? 1 : 2); in mcache_alloc_ext()
553 need -= (*cp->mc_slab_alloc)(cp->mc_private, &list, need, wait); in mcache_alloc_ext()
559 if (need > 0) { in mcache_alloc_ext()
576 (*cp->mc_slab_log)((num - need), *top, TRUE); in mcache_alloc_ext()
580 return num - need; in mcache_alloc_ext()
599 if (n != (num - need)) { in mcache_alloc_ext()
602 (void *)cp, num - need, n); in mcache_alloc_ext()
[all …]
/xnu-12377.61.12/bsd/skywalk/mem/
H A Dskmem_cache.c1050 uint32_t need = num, c = 0; in skmem_depot_batch_alloc() local
1052 ASSERT(list != NULL && need > 0); in skmem_depot_batch_alloc()
1077 if (--need == 0) { in skmem_depot_batch_alloc()
1087 return num - need; in skmem_depot_batch_alloc()
1294 uint32_t need = num; in skmem_cache_batch_alloc() local
1299 if (need == 0) { in skmem_cache_batch_alloc()
1302 ASSERT(need == 1 || (skm->skm_mode & SKM_MODE_BATCH)); in skmem_cache_batch_alloc()
1311 int objs = MIN((unsigned int)cp->cp_rounds, need); in skmem_cache_batch_alloc()
1330 if ((need -= objs) == 0) { in skmem_cache_batch_alloc()
1362 &skm->skm_depot_full, &mg, (need <= cp->cp_magsize) ? 1 : 2); in skmem_cache_batch_alloc()
[all …]
H A Dskmem_slab.c556 uint32_t need = num; in skmem_slab_batch_alloc() local
579 ASSERT(need != 0); in skmem_slab_batch_alloc()
580 if (--need == 0) { in skmem_slab_batch_alloc()
586 return num - need; in skmem_slab_batch_alloc()
/xnu-12377.61.12/doc/primitives/
H A Dstring-handling.md23 result. Given `strcmp(first, secnd, n)`, you need to know the types of `first`
33 that does this might need to write the string function.
40 then you might need to swap the two string arguments. `strlcmp` is sensitive to
199 to convert a character array to a `__null_terminated` string if you need to
206 Occasionally, you need to turn a NUL-terminated string back into "char buffer"
207 (usually to interoperate with copy APIs that need a pointer and a byte count).
210 using `__null_terminated_to_indexable` (if you don't need the NUL terminator to
212 (if you need it). Also keep in mind that in code which pervasively deals with
H A Dsched_cond.md90 2. Wakeups need not explicitly `thread_wake` the consumer thread if it is already awake. This is be…
/xnu-12377.61.12/bsd/skywalk/packet/
H A Dpbufpool.c1993 uint32_t allocp, need = num; in pp_alloc_packet_common() local
2048 (cb)(*array_cp, (num - need), ctx); in pp_alloc_packet_common()
2054 ASSERT(need > 0); in pp_alloc_packet_common()
2055 --need; in pp_alloc_packet_common()
2058 ASSERT((num - need) == allocp || kqum == NULL); in pp_alloc_packet_common()
2060 return num - need; in pp_alloc_packet_common()
2119 uint32_t allocp, need = num; in pp_alloc_pktq() local
2170 (cb)((uint64_t)kpkt, (num - need), ctx); in pp_alloc_pktq()
2175 ASSERT(need > 0); in pp_alloc_pktq()
2176 --need; in pp_alloc_pktq()
[all …]
/xnu-12377.61.12/tools/cocci/
H A Dzalloc-data.cocci4 // This might need to be run several times
H A Dzalloc-zero.cocci4 // This might need to be run several times
H A Dzalloc-nofail.cocci4 // This might need to be run several times
/xnu-12377.61.12/osfmk/mach/
H A Dmach_types.defs315 * definition may need to be changed. (See
340 * definition may need to be changed. (See
436 * need to be changed. (See mach/{host_info,vm_statistics}.h)
468 * may need to be changed.
507 * need to be changed. (see mach/processor.h) */
563 * need to be changed. (see mach/memory_object.h) */
570 * need to be changed. (see mach/vm_region.h) */
/xnu-12377.61.12/doc/vm/
H A Dsanitize.md189 `caddr_t` you may also need to add opaque types for corresponding types like
203 case for syscalls. Therefore we need to modify the mach trap manually to use
216 Now that the internal function definitions see the opaque types, we need to
249 For files outside `osfmk/vm` and `bsd/vm` that need to see the opaque type
270 was previously unused, you may need to update the golden results.
339 You may need to write new tests in `vm_parameter_validation` if you do
399 other tests. You should not need to modify either of them. Note that string
415 you need error code compatibility handling. Run your new test before and
H A Dpageout_scan.md75 Check to see if we need to drop the PageQ lock:
77 may need it.
82 - We need a vm-object lock but another thread is holding it. That thread
83 may also need the PageQ lock.
192 to identified "good" victims and need to reclaim whatever we can find.
/xnu-12377.61.12/bsd/nfs/
H A Dnfs_subs.c596 size_t mblen, cplen, need, left; in nfsm_chain_get_opaque_pointer_f() local
628 need = len - left; in nfsm_chain_get_opaque_pointer_f()
630 if (need > mbuf_trailingspace(mbcur)) { in nfsm_chain_get_opaque_pointer_f()
693 mbuf_setlen(mbcur, mbuf_len(mbcur) + need); in nfsm_chain_get_opaque_pointer_f()
698 while (need && mb) { in nfsm_chain_get_opaque_pointer_f()
702 cplen = MIN(mblen, need); in nfsm_chain_get_opaque_pointer_f()
711 mbuf_setlen(mbcur, mbuf_len(mbcur) - need); in nfsm_chain_get_opaque_pointer_f()
716 need -= cplen; in nfsm_chain_get_opaque_pointer_f()
719 if (need) { in nfsm_chain_get_opaque_pointer_f()
725 if (need) { in nfsm_chain_get_opaque_pointer_f()
[all …]
/xnu-12377.61.12/bsd/dev/
H A Dmem.c102 #error need kvtophys prototype
/xnu-12377.61.12/doc/building/
H A Dbound_checks.md159 fixing it will be a same-day emergency that you will need to firefight and then
169 qualification, integrators only need to back out the `bound-checks-soft` change
172 _other_ changes that rely on your modifications may need to be cascaded out of
202 Read "where bound-checks-seed comes in" for a different approach if you need
H A Dxnu_build_consolidation.md115 In some cases, certain statically-allocated arrays/structures need to be cache line-aligned, or hav…
124 …a single build. Note that these no longer reflect actual counts and sizes, and the real values need
/xnu-12377.61.12/doc/allocators/
H A Dread-only.md28 directly mutable allocations because this fits what we need the memory for:
109 perform a `zone_require_ro` on the element themselves; there's no need to do
/xnu-12377.61.12/tools/lldbmacros/
H A DREADME.md33 If you need to debug a core file, you can add '--core /path/to/corefile' to your lldb command (e.g.…
128 If you need detailed help for a command please type 'help <command name>' and the documentation for…
187 * you fire up lldb and start using zprint. And soon you need to add functionality to zprint.
219 You do not need to do anything special to use summaries. Once they are registered with lldb they sh…
321 …* If you need help with format options take a look at http://docs.python.org/library/string.html#f…
325 …* If you need to print a string from a core.value object then use str() to get string representati…
396 …* If you need to get pagesize of the traget system, do not hard code any value. kern.globals.page_…
443 …* [optional] If you are making changes in the operating_system plugin then you need to set the plu…
/xnu-12377.61.12/tools/lldbmacros/tests/
H A DREADME.md31 Notice! if you need a gdb-remote session, you will have to enter it manually before running the mac…
/xnu-12377.61.12/osfmk/conf/
H A Dcopyright.osf32 # that need it to utilize a commercial product sold or licensed by or
/xnu-12377.61.12/doc/observability/
H A Drecount.md109 Since three entities need to be updated at once (thread, task, and processor), only the last update…
111 The sequence lock doesn't need to be taken for these metrics since they're never updated simultaneo…
H A Dmt_stackshot.md20 work based on perfcontrol's recommendation. (We need to do this because even if
86 reasonably-sized chunks as we need them. We also want the output to have each
/xnu-12377.61.12/makedefs/
H A DMakeInc.dir8 # For instance, a makefile need only define the special variable SETUP_SUBDIRS
/xnu-12377.61.12/libkdd/
H A DREADME.md41 These types need to be defined in task_corpses.h for easy consumption by userspace inspection tools.
/xnu-12377.61.12/doc/debugging/
H A Dmacro_testing.md24 Standalone tests do not need LLDB and can be run with:

123