Home
last modified time | relevance | path

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

12

/xnu-8796.141.3/bsd/kern/
H A Dmcache.c423 unsigned int need = num; in mcache_alloc_ext() local
456 objs = MIN((unsigned int)ccp->cc_objs, need); in mcache_alloc_ext()
466 if ((need -= objs) == 0) { in mcache_alloc_ext()
509 &bkt, (need <= ccp->cc_bktsize) ? 1 : 2); in mcache_alloc_ext()
548 need -= (*cp->mc_slab_alloc)(cp->mc_private, &list, need, wait); in mcache_alloc_ext()
554 if (need > 0) { in mcache_alloc_ext()
571 (*cp->mc_slab_log)((num - need), *top, TRUE); in mcache_alloc_ext()
575 return num - need; in mcache_alloc_ext()
594 if (n != (num - need)) { in mcache_alloc_ext()
597 (void *)cp, num - need, n); in mcache_alloc_ext()
[all …]
H A Duipc_mbuf.c2218 unsigned int need = num; in mbuf_slab_alloc() local
2222 ASSERT(need > 0); in mbuf_slab_alloc()
2231 if (--need == 0) { in mbuf_slab_alloc()
2280 mbuf_sleep(class, need, wait)) { in mbuf_slab_alloc()
2288 m_alloc_cnt(class) += num - need; in mbuf_slab_alloc()
2291 return num - need; in mbuf_slab_alloc()
2421 unsigned int need = num; in cslab_alloc() local
2427 VERIFY(need > 0); in cslab_alloc()
2468 if (--need == 0) { in cslab_alloc()
2472 m_infree(class) -= (num - need); in cslab_alloc()
[all …]
/xnu-8796.141.3/bsd/skywalk/mem/
H A Dskmem_cache.c1342 uint32_t need = num; in skmem_slab_batch_alloc() local
1365 ASSERT(need != 0); in skmem_slab_batch_alloc()
1366 if (--need == 0) { in skmem_slab_batch_alloc()
1372 return num - need; in skmem_slab_batch_alloc()
1696 uint32_t need = num, c = 0; in skmem_depot_batch_alloc() local
1698 ASSERT(list != NULL && need > 0); in skmem_depot_batch_alloc()
1723 if (--need == 0) { in skmem_depot_batch_alloc()
1733 return num - need; in skmem_depot_batch_alloc()
1952 uint32_t need = num; in skmem_cache_batch_alloc() local
1957 if (need == 0) { in skmem_cache_batch_alloc()
[all …]
/xnu-8796.141.3/bsd/skywalk/packet/
H A Dpbufpool.c2019 uint32_t allocp, need = num; in pp_alloc_packet_common() local
2064 (cb)(*array, (num - need), ctx); in pp_alloc_packet_common()
2070 ASSERT(need > 0); in pp_alloc_packet_common()
2071 --need; in pp_alloc_packet_common()
2074 ASSERT((num - need) == allocp || kqum == NULL); in pp_alloc_packet_common()
2076 return num - need; in pp_alloc_packet_common()
2125 uint32_t allocp, need = num; in pp_alloc_pktq() local
2168 (cb)((uint64_t)kpkt, (num - need), ctx); in pp_alloc_pktq()
2173 ASSERT(need > 0); in pp_alloc_pktq()
2174 --need; in pp_alloc_pktq()
[all …]
/xnu-8796.141.3/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-8796.141.3/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-8796.141.3/bsd/nfs/
H A Dnfs_subs.c630 size_t mblen, cplen, need, left; in nfsm_chain_get_opaque_pointer_f() local
662 need = len - left; in nfsm_chain_get_opaque_pointer_f()
664 if (need > mbuf_trailingspace(mbcur)) { in nfsm_chain_get_opaque_pointer_f()
727 mbuf_setlen(mbcur, mbuf_len(mbcur) + need); in nfsm_chain_get_opaque_pointer_f()
732 while (need && mb) { in nfsm_chain_get_opaque_pointer_f()
736 cplen = MIN(mblen, need); in nfsm_chain_get_opaque_pointer_f()
745 mbuf_setlen(mbcur, mbuf_len(mbcur) - need); in nfsm_chain_get_opaque_pointer_f()
750 need -= cplen; in nfsm_chain_get_opaque_pointer_f()
753 if (need) { in nfsm_chain_get_opaque_pointer_f()
759 if (need) { in nfsm_chain_get_opaque_pointer_f()
[all …]
/xnu-8796.141.3/bsd/dev/
H A Dmem.c102 #error need kvtophys prototype
/xnu-8796.141.3/doc/allocators/
H A Dread-only.md26 directly mutable allocations because this fits what we need the memory for:
107 perform a `zone_require_ro` on the element themselves; there's no need to do
H A Dapi-basics.md22 - `<kern/zalloc_internal.h>` for interfaces that need to be exported
291 have non default structors, you will need to manually enroll it into `kalloc_type`.
316 Finally, if you need to decouple the declaration of the operators from
/xnu-8796.141.3/tools/lldbmacros/
H A DREADME.md122 If you need detailed help for a command please type 'help <command name>' and the documentation for…
181 * you fire up lldb and start using zprint. And soon you need to add functionality to zprint.
213 You do not need to do anything special to use summaries. Once they are registered with lldb they sh…
315 …* If you need help with format options take a look at http://docs.python.org/library/string.html#f…
319 …* If you need to print a string from a core.value object then use str() to get string representati…
390 …* If you need to get pagesize of the traget system, do not hard code any value. kern.globals.page_…
434 …* [optional] If you are making changes in the operating_system plugin then you need to set the plu…
/xnu-8796.141.3/doc/
H A Drecount.md97 Since three entities need to be updated at once (thread, task, and processor), only the last update…
99 The sequence lock doesn't need to be taken for these metrics since they're never updated simultaneo…
H A Dsched_cond.md85 2. Wakeups need not explicitly `thread_wake` the consumer thread if it is already awake. This is be…
H A Dxnu_build_consolidation.md113 In some cases, certain statically-allocated arrays/structures need to be cache line-aligned, or hav…
122 …a single build. Note that these no longer reflect actual counts and sizes, and the real values need
H A Datomics.md94 functions do not need to be marked `_Atomic` or `volatile`
309 // Do whatever you need to do/store to central memory
/xnu-8796.141.3/osfmk/conf/
H A Dcopyright.osf32 # that need it to utilize a commercial product sold or licensed by or
/xnu-8796.141.3/makedefs/
H A DMakeInc.def181 # auto-generated ones need mig and iig to be updated to fix. Disable the
732 # We also need a 32MB offset, as this is the minimum block mapping size
734 # to map the low globals page. We also need another 4MB to account for
745 # We need a dedicated virtual page for the low globals. Our bootloader
926 # we need to prevent the LTO logic from dead stripping them.
1060 # Some header guards need to be present and checked in kernel headers but removed from userspace he…
/xnu-8796.141.3/libkdd/
H A DREADME.md41 These types need to be defined in task_corpses.h for easy consumption by userspace inspection tools.
/xnu-8796.141.3/
H A DREADME.md115 To test the xnu kernel, you need to build a kernelcache that links the kexts and
195 If you are adding the first header file in a directory, you will need to
366 need to be applied.
/xnu-8796.141.3/osfmk/mach/machine/
H A Dmach_machine.modulemap81 // and so belong to this module, but need to be excluded or else clang will
/xnu-8796.141.3/tools/tests/perf_index/
H A DREADME17 quite drastically between test type, so you may need to play around with the
/xnu-8796.141.3/bsd/miscfs/devfs/
H A DREADME116 them, or alternatively, corrupting things.. I need a vnode specialist
/xnu-8796.141.3/iokit/DriverKit/
H A DOSAction.iig68 …* a TYPE attribute, so there should not be any need to directly call OSAction::Create…

12