Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 58) sorted by relevance

123

/xnu-11215/bsd/net/
H A Dtrie_utility.c323 uint16_t current = trie->root; in net_trie_insert() local
330 uint16_t parent = current; in net_trie_insert()
334 current = child; in net_trie_insert()
337 current_end = TRIE_NODE(trie, current).start + TRIE_NODE(trie, current).length; in net_trie_insert()
349 if (node_idx < (TRIE_NODE(trie, current).start + TRIE_NODE(trie, current).length)) { in net_trie_insert()
401 current = prefix; in net_trie_insert()
449 current = leaf; in net_trie_insert()
452 return current; in net_trie_insert()
476 uint16_t node_end = TRIE_NODE(trie, current).start + TRIE_NODE(trie, current).length; in net_trie_search()
540 last_matched = current; in net_trie_search()
[all …]
H A Dinit.c93 struct init_list_entry *__single current = NULL; in net_init_run() local
105 current = backward_head; in net_init_run()
106 backward_head = current->next; in net_init_run()
107 current->next = forward_head; in net_init_run()
108 forward_head = current; in net_init_run()
113 current = forward_head; in net_init_run()
114 forward_head = current->next; in net_init_run()
115 current->func(); in net_init_run()
116 kfree_type(struct init_list_entry, current); in net_init_run()
H A Dether_if_module.c169 u_int32_t current = 0; in ether_del_proto() local
176 for (current = desc_blk->n_max_used; current > 0; current--) { in ether_del_proto()
177 if (desc_blk->block_ptr[current - 1].protocol_family == in ether_del_proto()
180 desc_blk->block_ptr[current - 1].type = 0; in ether_del_proto()
370 char * current; in ether_remove_vlan_encapsulation() local
383 current = mtod(m, char *); in ether_remove_vlan_encapsulation()
385 frame_header > current) { in ether_remove_vlan_encapsulation()
388 ifp->if_xname, current, frame_header); in ether_remove_vlan_encapsulation()
391 if ((current - frame_header) < ETHER_HDR_LEN) { in ether_remove_vlan_encapsulation()
394 ifp->if_xname, current, frame_header); in ether_remove_vlan_encapsulation()
/xnu-11215/tests/
H A Dtest_sysctl_kern_procargs_25397314.m44 NSString *current = nil;
105 current = [[NSString alloc] initWithBytes:cursor length:currentLen encoding:NSUTF8StringEncoding];
106 T_QUIET; T_ASSERT_NOTNULL(current, "allocated string");
110 executablePath = current;
116 [components addObject:current];
118 [current release];
123 current = [[NSString alloc] initWithBytes:cursor length:currentLen encoding:NSUTF8StringEncoding];
124 T_QUIET; T_ASSERT_NOTNULL(current, "allocated string");
125 legacyExecutablePath = current;
H A Dmemorystatus_zone_test.c545 query_zone_map_size(uint64_t *current, uint64_t *total) in query_zone_map_size() argument
564 if (current) { in query_zone_map_size()
565 *current = zstats[0]; in query_zone_map_size()
H A Dstackshot_tests.m1389 io_registry_entry_t current = IO_OBJECT_NULL;
1417 [driverkit_pids unionSet:find_driverkit_pids(current)];
1419 IOObjectRelease(current);
1664 T_LOG("Found current UUID is %s", str);
1692 T_LOG("attempting to take stackshot for current PID");
1848 SRP_TEST_THREAD, /* expect waiter on current thread */
1849 SRP_TEST_PID, /* expect waiter on current PID */
3335 "current process name matches in stackshot");
3375 "thread ID of thread in current task is valid");
3387 "total syscalls of current thread is valid");
[all …]
/xnu-11215/iokit/Tests/
H A DTests.cpp1098 OSObject * current = NULL; in OSCollectionIteratorTests() local
1110 while ((current = osci->getNextObject()) != NULL) { in OSCollectionIteratorTests()
1112 assert(current == firstObj); in OSCollectionIteratorTests()
1114 assert(current == secondObj); in OSCollectionIteratorTests()
1128 assert(current == firstObj); in OSCollectionIteratorTests()
1130 assert(current == secondObj); in OSCollectionIteratorTests()
1146 while ((current = osci->getNextObject()) != NULL) { in OSCollectionIteratorTests()
1148 assert(current == firstObj); in OSCollectionIteratorTests()
1150 assert(current == secondObj); in OSCollectionIteratorTests()
1165 assert(current == firstObj); in OSCollectionIteratorTests()
[all …]
H A DTestIOMemoryDescriptor.cpp752 OSObject * current = NULL; in IOMDContextTest() local
762 current = bmd->copyContext(); in IOMDContextTest()
763 assert(current == firstString); in IOMDContextTest()
764 OSSafeReleaseNULL(current); in IOMDContextTest()
770 current = bmd->copyContext(); in IOMDContextTest()
771 assert(current == secondString); in IOMDContextTest()
772 OSSafeReleaseNULL(current); in IOMDContextTest()
/xnu-11215/makedefs/
H A DMakeInc.dir12 # in the current directory.
23 # subdirectories, and a target to build in the current directory afterwards.
29 # $(3): The target to build in the current directory _after_ the subdirectory
H A DMakeInc.top18 # current directory, makefile, and target. One
36 # Default to current kernel architecture
384 # $(3) is the list of the build configs in the current group
405 # invalidate current kernel in $(SYMROOT). Timestamp must be +1 from a previous kernel build
627 # Aggregate install targets, which install everything appropriate for the current build alias/make …
/xnu-11215/bsd/netinet/
H A Dflow_divert.c789 uint16_t current = trie->root; in flow_divert_trie_insert() local
796 uint16_t parent = current; in flow_divert_trie_insert()
800 current = child; in flow_divert_trie_insert()
803 current_end = TRIE_NODE(trie, current).start + TRIE_NODE(trie, current).length; in flow_divert_trie_insert()
815 if (node_idx < (TRIE_NODE(trie, current).start + TRIE_NODE(trie, current).length)) { in flow_divert_trie_insert()
856 current = prefix; in flow_divert_trie_insert()
895 current = leaf; in flow_divert_trie_insert()
898 return current; in flow_divert_trie_insert()
905 uint16_t current = trie->root; in flow_divert_trie_search() local
910 uint16_t node_end = TRIE_NODE(trie, current).start + TRIE_NODE(trie, current).length; in flow_divert_trie_search()
[all …]
/xnu-11215/iokit/Kernel/
H A DIORegistryEntry.cpp2366 create->start.current = root; in iterateOver()
2419 where->current = prev->current; in enterEntry()
2438 if (where->current) {// && (where != &start)) in exitEntry()
2439 where->current->release(); in exitEntry()
2464 where->current = root; in reset()
2492 && where->current in getNextObjectFlat()
2494 where->current->getParentSetReference( plane ) : in getNextObjectFlat()
2500 if (where->current) { in getNextObjectFlat()
2501 where->current->release(); in getNextObjectFlat()
2514 where->current = next; in getNextObjectFlat()
[all …]
H A DIOService.cpp6093 OSObject * current = NULL; in copyExistingServices() local
6117 current = service; in copyExistingServices()
6146 current = ctx.result; in copyExistingServices()
6150 current = NULL; in copyExistingServices()
6155 current = service; in copyExistingServices()
6158 if (current) { in copyExistingServices()
6202 || (current && _current && !current->isEqualTo(_current))) { in copyExistingServices()
6205 current->serialize(s1); in copyExistingServices()
6223 current->release(); in copyExistingServices()
6224 current = iter; in copyExistingServices()
[all …]
/xnu-11215/iokit/DriverKit/
H A DIODispatchQueue.iig99 * @brief Determines if the current thread is running on the queue.
100 …* @discussion Determines if the current thread is running on the queue, including if the queue in…
102 * @return bool true if current thread is running on this queue.
173 …* @brief Log the current execution context with respect to any queues the current thread hol…
/xnu-11215/osfmk/i386/
H A Dpmap_common.c105 unsigned int current, template = 0; in pmap_set_cache_attributes() local
134 current = pmap_phys_attributes[pai] & PHYS_CACHEABILITY_MASK; in pmap_set_cache_attributes()
140 if ((template & PHYS_NCACHE) && !(current & PHYS_NCACHE)) { in pmap_set_cache_attributes()
/xnu-11215/osfmk/kern/
H A Dsimple_lock.h228 uint32_t current);
232 uint64_t current);
/xnu-11215/osfmk/vm/
H A Dvm_map.c5741 current = entry; in vm_map_protect()
5839 current = current->vme_next; in vm_map_protect()
5875 current = entry; in vm_map_protect()
5902 current = NULL; in vm_map_protect()
5984 current->vme_start, current->vme_end, in vm_map_protect()
6009 …if (current->is_sub_map || (VME_OBJECT(current) == NULL) || (VME_OBJECT(current) != compressor_obj… in vm_map_protect()
6043 map, (uint64_t)current->vme_start, (uint64_t)current->vme_end, prot, current->wired_count); in vm_map_protect()
6062 if (current->is_sub_map && current->use_pmap) { in vm_map_protect()
6076 current = current->vme_next; in vm_map_protect()
6086 current = entry; in vm_map_protect()
[all …]
/xnu-11215/doc/observability/
H A Dmt_stackshot.md75 current cluster's freelist (again, to reduce cache effects). The freelist is a
76 last resort, and is only used if the current cluster's buffer space fills.
91 have any extra room at the end of the current chunk once we finish with a task,
93 various heuristics including flags and current task / thread counts to estimate
/xnu-11215/bsd/net/classq/
H A Dclassq_sfb.h76 u_int32_t current; member
/xnu-11215/doc/vm/
H A Dmemorystatus_notify.md26 The kernel tracks its current "pressure level" via
76 `mach_vm_pressure_level_monitor()` which allows the current pressure level to
/xnu-11215/tools/tests/zero-to-n/
H A Dzero-to-n.c204 __attribute__((aligned(128))) uint32_t current; member
730 if (g_cpu_histogram[cpuid].current == 1) { in worker_thread()
732 g_cpu_histogram[cpuid].current = 0; in worker_thread()
827 g_cpu_histogram[cpuid].current = 1; in worker_thread()
899 if (g_cpu_histogram[cpuid].current == 1) { in worker_thread()
901 g_cpu_histogram[cpuid].current = 0; in worker_thread()
/xnu-11215/osfmk/mach/
H A Dvm_map.defs154 * Set the current or maximum protection attribute
156 * space of the target task. The current protection
159 * that may be given in the current protection.
290 * The mapping will take the current and maximum protections and
H A Dmach_vm.defs157 * Set the current or maximum protection attribute
159 * space of the target virtual memory map. The current
162 * that may be given in the current protection.
339 * The mapping will take the current and maximum protections and
/xnu-11215/tools/lldbmacros/
H A Dioreg.py952 current = self
953 while current is not None:
954 if current == other:
957 current = current.superclass()
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace.c2800 current = spec->dtsp_state; in dtrace_speculation()
2812 current, DTRACESPEC_ACTIVE) == current) in dtrace_speculation()
2858 current = spec->dtsp_state; in dtrace_speculation_commit()
2863 switch (current) { in dtrace_speculation_commit()
2905 current, new) != current); in dtrace_speculation_commit()
3026 current = spec->dtsp_state; in dtrace_speculation_discard()
3028 switch (current) { in dtrace_speculation_discard()
3052 current, new) != current); in dtrace_speculation_discard()
3157 ASSERT(rv == current); in dtrace_speculation_clean()
3192 switch (current) { in dtrace_speculation_buffer()
[all …]

123