Home
last modified time | relevance | path

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

12

/xnu-11215/bsd/kern/
H A Dmcache.c428 unsigned int need = num; in mcache_alloc_ext() local
553 need -= (*cp->mc_slab_alloc)(cp->mc_private, &list, need, wait); in mcache_alloc_ext()
559 if (need > 0) { in mcache_alloc_ext()
580 return num - need; in mcache_alloc_ext()
613 return num - need; in mcache_alloc_ext()
950 unsigned int need = num; in mcache_slab_alloc() local
995 if (--need == 0) { in mcache_slab_alloc()
1000 return num - need; in mcache_slab_alloc()
1125 uint32_t need = num; in mcache_bkt_batch_alloc() local
1147 if (--need == 0) { in mcache_bkt_batch_alloc()
[all …]
/xnu-11215/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
192 to convert a character array to a `__null_terminated` string if you need to
199 Occasionally, you need to turn a NUL-terminated string back into "char buffer"
200 (usually to interoperate with copy APIs that need a pointer and a byte count).
203 using `__null_terminated_to_indexable` (if you don't need the NUL terminator to
205 (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-11215/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()
1329 if ((need -= objs) == 0) { in skmem_cache_batch_alloc()
1469 need -= rlistc; in skmem_cache_batch_alloc()
1475 ASSERT(*top == NULL && num == 1 && need == 1); in skmem_cache_batch_alloc()
1500 need = 0; in skmem_cache_batch_alloc()
[all …]
H A Dskmem_slab.c559 uint32_t need = num; in skmem_slab_batch_alloc() local
582 ASSERT(need != 0); in skmem_slab_batch_alloc()
583 if (--need == 0) { in skmem_slab_batch_alloc()
589 return num - need; in skmem_slab_batch_alloc()
/xnu-11215/bsd/skywalk/packet/
H A Dpbufpool.c2064 uint32_t allocp, need = num; in pp_alloc_packet_common() local
2123 ASSERT(need > 0); in pp_alloc_packet_common()
2124 --need; in pp_alloc_packet_common()
2129 return num - need; in pp_alloc_packet_common()
2188 uint32_t allocp, need = num; in pp_alloc_pktq() local
2242 ASSERT(need > 0); in pp_alloc_pktq()
2243 --need; in pp_alloc_pktq()
2250 } else if (need == num) { in pp_alloc_pktq()
2674 ASSERT(need > 0); in pp_alloc_buflet_common()
2675 --need; in pp_alloc_buflet_common()
[all …]
/xnu-11215/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-11215/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-11215/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-11215/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-11215/doc/building/
H A Dbound_checks.md132 fixing it will be a same-day emergency that you will need to firefight and then
142 qualification, integrators only need to back out the `bound-checks-soft` change
145 _other_ changes that rely on your modifications may need to be cascaded out of
175 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-11215/bsd/dev/
H A Dmem.c102 #error need kvtophys prototype
/xnu-11215/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-11215/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-11215/osfmk/conf/
H A Dcopyright.osf32 # that need it to utilize a commercial product sold or licensed by or
/xnu-11215/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-11215/makedefs/
H A DMakeInc.dir8 # For instance, a makefile need only define the special variable SETUP_SUBDIRS
H A DMakeInc.def205 # auto-generated ones need mig and iig to be updated to fix. Disable the
830 # We also need a 32MB offset, as this is the minimum block mapping size
832 # to map the low globals page. We also need another 4MB to account for
843 # We need a dedicated virtual page for the low globals. Our bootloader
1075 # we need to prevent the LTO logic from dead stripping them.
1214 # Some header guards need to be present and checked in kernel headers but removed from userspace he…
/xnu-11215/libkdd/
H A DREADME.md41 These types need to be defined in task_corpses.h for easy consumption by userspace inspection tools.
/xnu-11215/doc/debugging/
H A Dmacro_testing.md24 Standalone tests do not need LLDB and can be run with:
/xnu-11215/doc/arm/
H A Dsme.md103 not need explicit barriers. Specifically, ARM guarantees that all direct and
161 streaming SVE mode. This policy means that xnu does not need to preserve
184 not need to manually invalidate any `ZA` or `ZT0` state left by a previous

12