| /xnu-11215/bsd/kern/ |
| H A D | subr_eventhandler.c | 140 if (list == NULL) { in eventhandler_register_internal() 149 list = new_list; in eventhandler_register_internal() 152 bzero(&list->el_lock, sizeof(list->el_lock)); in eventhandler_register_internal() 153 (void) snprintf(list->el_name, sizeof(list->el_name), "%s", name); in eventhandler_register_internal() 170 EHL_LOCK(list); in eventhandler_register_internal() 181 EHL_UNLOCK(list); in eventhandler_register_internal() 246 msleep((caddr_t)list, &list->el_lock, PSPIN, "evhrm", 0); in eventhandler_deregister() 248 EHL_UNLOCK(list); in eventhandler_deregister() 268 return list; in _eventhandler_find_list() 297 return list; in eventhandler_find_list() [all …]
|
| H A D | mcache.c | 434 ASSERT(list != NULL); in mcache_alloc_ext() 435 *list = NULL; in mcache_alloc_ext() 468 *list = NULL; in mcache_alloc_ext() 956 *list = NULL; in mcache_slab_alloc() 992 list = *plist = &(*list)->obj_next; in mcache_slab_alloc() 1018 list->obj_next = NULL; in mcache_slab_free() 1020 base = list; in mcache_slab_free() 1055 while (list != NULL) { in mcache_slab_audit() 1058 base = list; in mcache_slab_audit() 1073 list = list->obj_next = next; in mcache_slab_audit() [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | dhcp_options.c | 85 bzero(list, sizeof(*list)); in ptrlist_init() 92 if (list->array) { in ptrlist_free() 93 kfree_type(const void *, list->size, list->array); in ptrlist_free() 95 ptrlist_init(list); in ptrlist_free() 102 if (list == NULL || list->array == NULL) { in ptrlist_count() 106 return list->count; in ptrlist_count() 147 list->array = arr; in ptrlist_grow() 158 list->array[list->count++] = element; in ptrlist_add() 170 bcopy(extra->array, list->array + list->count, in ptrlist_concat() 235 dhcpol_init(list); in dhcpol_parse_buffer() [all …]
|
| H A D | dhcp_options.h | 185 void dhcpol_init(dhcpol_t * list); 186 void dhcpol_free(dhcpol_t * list); 187 int dhcpol_count(dhcpol_t * list); 188 boolean_t dhcpol_add(dhcpol_t * list, const void * element); 189 const void * dhcpol_element(dhcpol_t * list, int i); 190 boolean_t dhcpol_concat(dhcpol_t * list, dhcpol_t * extra); 191 boolean_t dhcpol_parse_buffer(dhcpol_t * list, 194 const void * dhcpol_find(dhcpol_t * list, int tag, int * len_p,
|
| /xnu-11215/bsd/net/ |
| H A D | mblist.h | 52 mblist_init(mblist_t list) in mblist_init() argument 54 bzero(list, sizeof(*list)); in mblist_init() 60 if (list->head == NULL) { in mblist_append() 61 list->head = m; in mblist_append() 63 list->tail->m_nextpkt = m; in mblist_append() 65 list->tail = m; in mblist_append() 66 list->count++; in mblist_append() 74 if (list->head == NULL) { in mblist_append_list() 75 *list = append; in mblist_append_list() 77 VERIFY(list->tail != NULL); in mblist_append_list() [all …]
|
| H A D | pf_osfp.c | 242 pf_osfp_match(struct pf_osfp_enlist *list, pf_osfp_t os) in pf_osfp_match() argument 251 if (list == NULL) { in pf_osfp_match() 256 SLIST_FOREACH(entry, list, fp_entry) { in pf_osfp_match() 408 pf_osfp_find(struct pf_osfp_list *list, struct pf_os_fingerprint *find, in pf_osfp_find() argument 424 SLIST_FOREACH(f, list, fp_next) { in pf_osfp_find() 490 pf_osfp_find_exact(struct pf_osfp_list *list, struct pf_os_fingerprint *find) in pf_osfp_find_exact() argument 494 SLIST_FOREACH(f, list, fp_next) { in pf_osfp_find_exact() 512 pf_osfp_insert(struct pf_osfp_list *list, struct pf_os_fingerprint *ins) in pf_osfp_insert() argument 518 SLIST_FOREACH(f, list, fp_next) in pf_osfp_insert() 523 SLIST_INSERT_HEAD(list, ins, fp_next); in pf_osfp_insert()
|
| /xnu-11215/bsd/sys/ |
| H A D | eventhandler.h | 122 VERIFY((list)->el_flags & EHL_INITTED); \ 123 EHL_LOCK_ASSERT((list), LCK_MTX_ASSERT_OWNED); \ 124 (list)->el_runcount++; \ 125 VERIFY((list)->el_runcount > 0); \ 127 TAILQ_FOREACH(_ep, &((list)->el_entries), ee_link) { \ 129 EHL_UNLOCK((list)); \ 134 EHL_LOCK_SPIN((list)); \ 137 VERIFY((list)->el_runcount > 0); \ 138 (list)->el_runcount--; \ 203 void eventhandler_deregister(struct eventhandler_list *list, [all …]
|
| H A D | event_private.h | 836 extern void klist_init(struct klist *list); 838 #define KNOTE(list, hint) knote(list, hint, false) argument 839 #define KNOTE_ATTACH(list, kn) knote_attach(list, kn) argument 840 #define KNOTE_DETACH(list, kn) knote_detach(list, kn) argument 842 extern void knote(struct klist *list, long hint, bool autodetach); 843 extern int knote_attach(struct klist *list, struct knote *kn); 844 extern int knote_detach(struct klist *list, struct knote *kn); 845 extern void knote_vanish(struct klist *list, bool make_active);
|
| /xnu-11215/osfmk/kern/ |
| H A D | hv_io_notifier.c | 44 LIST_ENTRY(hv_ion_entry) list; 58 struct io_notifier_list list; member 70 LIST_FOREACH(ion, &grp->list, list) { in hv_io_notifier_grp_lookup() 131 LIST_INSERT_HEAD(&grp->list, ion, list); in hv_io_notifier_grp_add() 162 LIST_REMOVE(entry, list); in hv_io_notifier_grp_remove() 187 LIST_FOREACH(ion, &grp->list, list) { in hv_io_notifier_grp_fire() 256 while (!LIST_EMPTY(&grp->list)) { in hv_io_notifier_grp_free() 257 hv_ion_entry_t *ion = LIST_FIRST(&grp->list); in hv_io_notifier_grp_free() 259 LIST_REMOVE(ion, list); in hv_io_notifier_grp_free()
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_pmap.c | 66 iter->list = page_list; in unified_page_list_iterator_init() 81 switch (iter->list->type) { in unified_page_list_iterator_next() 112 switch (iter->list->type) { in unified_page_list_iterator_end() 114 return iter->upl_index >= iter->list->upl.upl_size; in unified_page_list_iterator_end() 119 …return vm_page_queue_end((vm_page_queue_head_t*)iter->list->pageq, (vm_page_queue_entry_t)iter->pa… in unified_page_list_iterator_end() 143 switch (iter->list->type) { in unified_page_list_iterator_page() 145 phys_page = iter->list->upl.upl_info[iter->upl_index].phys_addr; in unified_page_list_iterator_page()
|
| /xnu-11215/osfmk/tests/ |
| H A D | vm_parameter_validation.h | 589 result_t list[]; member 838 results->testname, results->list[i].ret, results->list[i].name); in test_results() 1037 vm_inherit_trial_t list[]; member 1134 vm_sync_trial_t list[]; member 1206 vm_msync_trial_t list[]; member 1279 vm_advise_trial_t list[]; member 1493 mmap_flags_trial_t list[]; member 1650 vm_tag_trial_t list[]; member 1727 vm_prot_trial_t list[]; member 2103 addr_trial_t list[]; member [all …]
|
| /xnu-11215/osfmk/i386/ |
| H A D | hibernate_i386.c | 66 hibernate_page_list_t * list; in hibernate_page_list_allocate() local 189 list = kalloc_data(size, Z_WAITOK); in hibernate_page_list_allocate() 190 if (!list) { in hibernate_page_list_allocate() 191 return list; in hibernate_page_list_allocate() 194 list->list_size = (uint32_t)size; in hibernate_page_list_allocate() 195 list->page_count = page_count; in hibernate_page_list_allocate() 196 list->bank_count = num_banks; in hibernate_page_list_allocate() 200 bitmap = &list->bank_bitmap[0]; in hibernate_page_list_allocate() 216 return list; in hibernate_page_list_allocate()
|
| /xnu-11215/osfmk/arm64/ |
| H A D | hibernate_arm64.c | 94 hibernate_page_list_t * list; in hibernate_page_list_allocate() local 118 list = kalloc_data(size, Z_WAITOK); in hibernate_page_list_allocate() 119 if (!list) { in hibernate_page_list_allocate() 123 list->list_size = (uint32_t)size; in hibernate_page_list_allocate() 124 list->page_count = page_count; in hibernate_page_list_allocate() 125 list->bank_count = num_banks; in hibernate_page_list_allocate() 129 bitmap = &list->bank_bitmap[0]; in hibernate_page_list_allocate() 146 return list; in hibernate_page_list_allocate()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IODeviceMemory.cpp | 57 InitElement list[], in arrayFromList() argument 70 range = IODeviceMemory::withRange( list[i].start, list[i].length ); in arrayFromList() 72 range->setTag( list[i].tag ); in arrayFromList()
|
| H A D | IOHibernateRestoreKernel.c | 310 hibernate_page_bitmap(hibernate_page_list_t * list, uint32_t page) in hibernate_page_bitmap() argument 313 hibernate_bitmap_t * bitmap = &list->bank_bitmap[0]; in hibernate_page_bitmap() 315 for (bank = 0; bank < list->bank_count; bank++) { in hibernate_page_bitmap() 321 if (bank == list->bank_count) { in hibernate_page_bitmap() 332 hibernate_bitmap_t * bitmap = &list->bank_bitmap[0]; in hibernate_page_bitmap_pin() 334 for (bank = 0; bank < list->bank_count; bank++) { in hibernate_page_bitmap_pin() 344 if (bank == list->bank_count) { in hibernate_page_bitmap_pin() 356 bitmap = hibernate_page_bitmap(list, page); in hibernate_page_bitset() 371 hibernate_page_bittst(hibernate_page_list_t * list, uint32_t page) in hibernate_page_bittst() argument 376 bitmap = hibernate_page_bitmap(list, page); in hibernate_page_bittst() [all …]
|
| /xnu-11215/san/memory/ |
| H A D | kasan-fakestack.c | 64 LIST_ENTRY(fakestack_header) list; 144 LIST_FOREACH_SAFE(cur, head, list, tmp) { in kasan_fakestack_gc() 146 LIST_REMOVE(cur, list); in kasan_fakestack_gc() 147 LIST_INSERT_HEAD(&tofree, cur, list); in kasan_fakestack_gc() 155 LIST_FOREACH_SAFE(cur, &tofree, list, tmp) { in kasan_fakestack_gc() 212 LIST_INSERT_HEAD(head, hdr, list); in kasan_fakestack_alloc() 243 LIST_REMOVE(hdr, list); in kasan_fakestack_free() 261 LIST_FOREACH(cur, head, list) { in kasan_fakestack_drop()
|
| /xnu-11215/bsd/skywalk/mem/ |
| H A D | skmem_cache.c | 1295 ASSERT(list != NULL); in skmem_cache_batch_alloc() 1296 *list = NULL; in skmem_cache_batch_alloc() 1325 *list = NULL; in skmem_cache_batch_alloc() 1470 *list = rtop; in skmem_cache_batch_alloc() 1501 *list = buf; in skmem_cache_batch_alloc() 1769 listn = list->mo_next; in skmem_cache_batch_free_common() 1770 list->mo_next = NULL; in skmem_cache_batch_free_common() 1777 list->mo_next = listn; in skmem_cache_batch_free_common() 1778 list = listn; in skmem_cache_batch_free_common() 2297 while (list != NULL) { in skmem_audit_buf() [all …]
|
| H A D | skmem_slab.c | 561 ASSERT(list != NULL && (skm->skm_mode & SKM_MODE_BATCH)); in skmem_slab_batch_alloc() 562 *list = NULL; in skmem_slab_batch_alloc() 575 *list = SKMEM_OBJ_ADDR(&oi); in skmem_slab_batch_alloc() 576 ASSERT((*list)->mo_next == NULL); in skmem_slab_batch_alloc() 578 (*list)->mo_info = oi; in skmem_slab_batch_alloc() 579 (*list)->mo_minfo = oim; in skmem_slab_batch_alloc() 580 list = &(*list)->mo_next; in skmem_slab_batch_alloc() 822 listn = list->mo_next; in skmem_slab_batch_free() 823 list->mo_next = NULL; in skmem_slab_batch_free() 828 skm->skm_slab_free(skm, (void *)list); in skmem_slab_batch_free() [all …]
|
| /xnu-11215/tests/ |
| H A D | net_bridge.c | 100 switch_port list[1]; member 1195 list = (switch_port_list_t) in switch_port_list_alloc() 1197 list->size = port_count; in switch_port_list_alloc() 1198 list->mac_nat = mac_nat; in switch_port_list_alloc() 1199 return list; in switch_port_list_alloc() 1208 for (i = 0, port = list->list; i < list->count; i++, port++) { in switch_port_list_dealloc() 1212 free(list); in switch_port_list_dealloc() 2009 port_list->list); in mac_nat_test_arp_in() 2980 list = NULL; in bridge_setup() 2983 return list; in bridge_setup() [all …]
|
| H A D | net_vlan.c | 235 test_traffic_for_pair(S_feth_pairs->list, af); in test_traffic_for_af() 240 pair = &S_vlan_pairs->list[i]; in test_traffic_for_af() 262 scan = S_feth_pairs->list; in initialize_feth_pairs() 281 feth_pair = S_feth_pairs->list; in initialize_vlan_pairs() 283 scan = S_vlan_pairs->list; in initialize_vlan_pairs() 318 ifname = S_feth_pairs->list->one.if_name; in vlan_send_short_packet() 422 vlan_pair = S_vlan_pairs->list; in vlan_test_bridged_traffic() 425 feth_pair = S_feth_pairs->list + 1; in vlan_test_bridged_traffic()
|
| /xnu-11215/tools/cocci/ |
| H A D | vm-bind.cocci | 4 expression list trailer; 16 expression list trailer; 28 expression list trailer;
|
| /xnu-11215/osfmk/arm64/sptm/pmap/ |
| H A D | pmap_data.c | 599 new_batch = free_list->list; in pv_free_array_get_batch() 628 free_list->list = batch_head; in pv_free_array_give_batch() 650 if ((*pvepp = free_list->list) != NULL) { in pv_free_list_alloc() 652 free_list->list = pvep->pve_next; in pv_free_list_alloc() 694 pve_tail->pve_next = pv_kern_free.list; in pv_list_kern_free() 695 pv_kern_free.list = pve_head; in pv_list_kern_free() 743 assert(pmap_cpu_data->pv_free.list != NULL); in pv_list_alloc() 788 pmap_cpu_data->pv_free.list = pve_head; in pv_list_free() 822 pmap_cpu_data->pv_free.list = pve_head; in pv_list_free() 1013 pv_entry_t *pve_head = pv_kern_free.list; in pv_alloc() [all …]
|
| /xnu-11215/SETUP/kextsymboltool/ |
| H A D | kextsymboltool.c | 180 struct symbol * list; member 669 export_symbols[export_idx].list = first; in main() 701 export_symbols[export_idx].list = &export_symbols[export_idx]; in main() 853 export_symbols[export_idx].list[import_idx].name); in main() 861 strx += export_symbols[export_idx].list[import_idx].name_len; in main() 867 if (export_symbols[export_idx].list[import_idx].indirect) { in main() 887 strx += export_symbols[export_idx].list[import_idx].name_len; in main() 893 if (export_symbols[export_idx].list[import_idx].indirect) { in main() 928 export_symbols[export_idx].list[import_idx].name_len); in main() 932 if (export_symbols[export_idx].list[import_idx].indirect) { in main() [all …]
|
| /xnu-11215/libkern/kmod/libkmod.xcodeproj/ |
| H A D | project.pbxproj | 12 …buildConfigurationList = C61E2D9612F3647000FC9BCA /* Build configuration list for PBXAggregateTarg… 193 …buildConfigurationList = C61E2D8512F360A200FC9BCA /* Build configuration list for PBXNativeTarget … 214 …buildConfigurationList = C61E2D9312F3642100FC9BCA /* Build configuration list for PBXNativeTarget … 231 …buildConfigurationList = C61E2D9F12F364C100FC9BCA /* Build configuration list for PBXNativeTarget … 254 …buildConfigurationList = C61E2D6312F3605700FC9BCA /* Build configuration list for PBXProject "libk… 439 C61E2D6312F3605700FC9BCA /* Build configuration list for PBXProject "libkmod" */ = { 447 C61E2D8512F360A200FC9BCA /* Build configuration list for PBXNativeTarget "libkmodtest" */ = { 455 C61E2D9312F3642100FC9BCA /* Build configuration list for PBXNativeTarget "libkmod" */ = { 463 C61E2D9612F3647000FC9BCA /* Build configuration list for PBXAggregateTarget "All" */ = { 471 C61E2D9F12F364C100FC9BCA /* Build configuration list for PBXNativeTarget "libkmodc++" */ = {
|
| /xnu-11215/bsd/crypto/doc/ |
| H A D | KernelCrypto.txt | 29 * notice, this list of conditions and the following disclaimer. 31 * notice, this list of conditions and the following disclaimer in the 73 notice, this list of conditions and the following disclaimer; 76 notice, this list of conditions and the following disclaimer 103 notice, this list of conditions and the following disclaimer; 106 notice, this list of conditions and the following disclaimer 135 list of conditions and the following disclaimer; 137 2. binary distributions include the above copyright notice, this list
|