Home
last modified time | relevance | path

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

12

/xnu-11417.101.15/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-11417.101.15/bsd/skywalk/mem/
H A Dskmem_cache.c1049 uint32_t need = num, c = 0; in skmem_depot_batch_alloc() local
1051 ASSERT(list != NULL && need > 0); in skmem_depot_batch_alloc()
1076 if (--need == 0) { in skmem_depot_batch_alloc()
1086 return num - need; in skmem_depot_batch_alloc()
1293 uint32_t need = num; in skmem_cache_batch_alloc() local
1298 if (need == 0) { in skmem_cache_batch_alloc()
1301 ASSERT(need == 1 || (skm->skm_mode & SKM_MODE_BATCH)); in skmem_cache_batch_alloc()
1310 int objs = MIN((unsigned int)cp->cp_rounds, need); in skmem_cache_batch_alloc()
1329 if ((need -= objs) == 0) { in skmem_cache_batch_alloc()
1361 &skm->skm_depot_full, &mg, (need <= cp->cp_magsize) ? 1 : 2); in skmem_cache_batch_alloc()
[all …]
H A Dskmem_slab.c555 uint32_t need = num; in skmem_slab_batch_alloc() local
578 ASSERT(need != 0); in skmem_slab_batch_alloc()
579 if (--need == 0) { in skmem_slab_batch_alloc()
585 return num - need; in skmem_slab_batch_alloc()
/xnu-11417.101.15/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-11417.101.15/bsd/skywalk/packet/
H A Dpbufpool.c2065 uint32_t allocp, need = num; in pp_alloc_packet_common() local
2113 (cb)(*array_cp, (num - need), ctx); in pp_alloc_packet_common()
2119 ASSERT(need > 0); in pp_alloc_packet_common()
2120 --need; in pp_alloc_packet_common()
2123 ASSERT((num - need) == allocp || kqum == NULL); in pp_alloc_packet_common()
2125 return num - need; in pp_alloc_packet_common()
2184 uint32_t allocp, need = num; in pp_alloc_pktq() local
2228 (cb)((uint64_t)kpkt, (num - need), ctx); in pp_alloc_pktq()
2233 ASSERT(need > 0); in pp_alloc_pktq()
2234 --need; in pp_alloc_pktq()
[all …]
/xnu-11417.101.15/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-11417.101.15/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-11417.101.15/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
/xnu-11417.101.15/bsd/nfs/
H A Dnfs_subs.c595 size_t mblen, cplen, need, left; in nfsm_chain_get_opaque_pointer_f() local
627 need = len - left; in nfsm_chain_get_opaque_pointer_f()
629 if (need > mbuf_trailingspace(mbcur)) { in nfsm_chain_get_opaque_pointer_f()
692 mbuf_setlen(mbcur, mbuf_len(mbcur) + need); in nfsm_chain_get_opaque_pointer_f()
697 while (need && mb) { in nfsm_chain_get_opaque_pointer_f()
701 cplen = MIN(mblen, need); in nfsm_chain_get_opaque_pointer_f()
710 mbuf_setlen(mbcur, mbuf_len(mbcur) - need); in nfsm_chain_get_opaque_pointer_f()
715 need -= cplen; in nfsm_chain_get_opaque_pointer_f()
718 if (need) { in nfsm_chain_get_opaque_pointer_f()
724 if (need) { in nfsm_chain_get_opaque_pointer_f()
[all …]
/xnu-11417.101.15/bsd/dev/
H A Dmem.c102 #error need kvtophys prototype
/xnu-11417.101.15/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-11417.101.15/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
H A Dapi-basics.md24 - `<kern/zalloc_internal.h>` for interfaces that need to be exported
306 have non default structors, you will need to manually enroll it into `kalloc_type`.
331 Finally, if you need to decouple the declaration of the operators from
/xnu-11417.101.15/tools/lldbmacros/
H A DREADME.md32 If you need to debug a core file, you can add '--core /path/to/corefile' to your lldb command (e.g.…
127 If you need detailed help for a command please type 'help <command name>' and the documentation for…
186 * you fire up lldb and start using zprint. And soon you need to add functionality to zprint.
218 You do not need to do anything special to use summaries. Once they are registered with lldb they sh…
320 …* If you need help with format options take a look at http://docs.python.org/library/string.html#f…
324 …* If you need to print a string from a core.value object then use str() to get string representati…
395 …* If you need to get pagesize of the traget system, do not hard code any value. kern.globals.page_…
442 …* [optional] If you are making changes in the operating_system plugin then you need to set the plu…
/xnu-11417.101.15/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-11417.101.15/osfmk/conf/
H A Dcopyright.osf32 # that need it to utilize a commercial product sold or licensed by or
/xnu-11417.101.15/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-11417.101.15/makedefs/
H A DMakeInc.dir8 # For instance, a makefile need only define the special variable SETUP_SUBDIRS
/xnu-11417.101.15/libkdd/
H A DREADME.md41 These types need to be defined in task_corpses.h for easy consumption by userspace inspection tools.
/xnu-11417.101.15/doc/debugging/
H A Dmacro_testing.md24 Standalone tests do not need LLDB and can be run with:

12