/illumos-gate/usr/src/common/list/ |
H A D | list.c | 46 #define list_empty(a) ((a)->list_head.list_next == &(a)->list_head) 78 list->list_head.list_next = list->list_head.list_prev = in list_create() 79 &list->list_head; in list_create() 85 list_node_t *node = &list->list_head; in list_destroy() 119 list_node_t *lold = &list->list_head; in list_insert_head() 126 list_node_t *lold = &list->list_head; in list_insert_tail() 143 if (head == &list->list_head) in list_remove_head() 153 if (tail == &list->list_head) in list_remove_tail() 160 list_head(list_t *list) in list_head() function 203 list_node_t *dstnode = &dst->list_head; in list_move_tail() [all …]
|
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xge-queue.c | 52 if (xge_list_is_empty(&queue->list_head)) in __queue_consume() 55 elem = (xge_queue_item_t *)queue->list_head.next; in __queue_consume() 109 if (xge_list_is_empty(&queue->list_head)) { in __queue_consume() 281 xge_list_init(&queue->list_head); in xge_queue_create() 298 if (!xge_list_is_empty(&queue->list_head)) { in xge_queue_destroy() 348 xge_assert(!xge_list_is_empty(&queue->list_head)); in __io_queue_grow() 350 ((char *)queue->list_head.next - (char *)oldbuf)); in __io_queue_grow() 352 ((char *)queue->list_head.prev - (char *)oldbuf)); in __io_queue_grow() 354 xge_list_for_each(item, &queue->list_head) { in __io_queue_grow() 356 if (elem->item.next != &queue->list_head) { in __io_queue_grow() [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_llist.c | 80 entry->list_head = NULL; in dapl_llist_init_entry() 120 entry->list_head = head; in dapl_llist_add_head() 148 entry->list_head = head; in dapl_llist_add_tail() 180 new_entry->list_head = head; in dapl_llist_add_entry() 206 first->list_head = NULL; in dapl_llist_remove_head() 232 last->list_head = NULL; in dapl_llist_remove_tail() 280 dapl_os_assert(entry->list_head == head); in dapl_llist_remove_entry() 281 entry->list_head = NULL; in dapl_llist_remove_entry()
|
H A D | dapl_ia_util.c | 905 DAPL_LLIST_HEAD *list_head; in dapls_ia_unlink_sp() local 908 list_head = &ia_ptr->psp_list_head; in dapls_ia_unlink_sp() 912 list_head = &ia_ptr->rsp_list_head; in dapls_ia_unlink_sp() 916 (void) dapl_llist_remove_entry(list_head, in dapls_ia_unlink_sp() 944 DAPL_LLIST_HEAD *list_head; in dapls_ia_sp_search() local 947 list_head = &ia_ptr->psp_list_head; in dapls_ia_sp_search() 949 list_head = &ia_ptr->rsp_list_head; in dapls_ia_sp_search() 954 sp_ptr = (dapl_llist_is_empty(list_head) ? NULL : in dapls_ia_sp_search() 955 dapl_llist_peek_head(list_head)); in dapls_ia_sp_search() 961 sp_ptr = dapl_llist_next_entry(list_head, in dapls_ia_sp_search()
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | perfcnt.c | 65 static List *list_head = NULL; variable 85 if (list_head == NULL) { in list_insert() 86 list_head = new_list; in list_insert() 90 for (cur = list_head, prev = NULL; in list_insert() 98 new_list->l_next = list_head; in list_insert() 99 list_head = new_list; in list_insert() 261 for (cur = list_head; cur; cur = cur->l_next) { in cleanup()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/smartpqi/ |
H A D | smartpqi.c | 296 offset + offsetof(list_t, list_head)); in pqi_list_head() 297 if (*list_anchor == list.list_head.list_next) { in pqi_list_head() 314 (uintptr_t)s_devnodes.list_head.list_next); in pqi_device_list_head() 334 (uintptr_t)cmds.list_head.list_next); in pqi_cmd_list_head() 337 "command list (0x%p)\n", cmds.list_head.list_next); in pqi_cmd_list_head() 399 struct list_node *list_head; in pqi_display_devices() local 428 (uint8_t *)d_drvrp, &list_head, cmdp); in pqi_display_devices() 432 list_head = NULL; in pqi_display_devices() 434 if (list_head != NULL) { in pqi_display_devices() 437 next_dp->pd_target, list_head); in pqi_display_devices() [all …]
|
/illumos-gate/usr/src/lib/libpcidb/common/ |
H A D | pcidb.c | 494 for (v = list_head(&hdl->ph_vendors); v != NULL; in pcidb_lookup_vendor() 518 return (list_head(&hdl->ph_vendors)); in pcidb_vendor_iter() 533 for (pcidb_device_t *dev = list_head(&vend->pv_devs); dev != NULL; in pcidb_lookup_device_by_vendor() 557 return (list_head(&vend->pv_devs)); in pcidb_device_iter() 591 for (sub = list_head(&dev->pd_subs); sub != NULL; in pcidb_lookup_subvd_by_device() 631 return (list_head(&dev->pd_subs)); in pcidb_subvd_iter() 674 for (pcidb_class_t *class = list_head(&hdl->ph_classes); class != NULL; in pcidb_lookup_class() 687 return (list_head(&hdl->ph_classes)); in pcidb_class_iter() 724 for (pcidb_subclass_t *sub = list_head(&class->pc_subclass); in pcidb_lookup_subclass_by_class() 737 return (list_head(&class->pc_subclass)); in pcidb_subclass_iter() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ilb/ |
H A D | ilb_alg_rr.c | 71 rr_alg->rr_next = list_head(servers); in rr_lb() 76 rr_alg->rr_next = list_head(servers); in rr_lb() 97 for (tmp_server = list_head(servers); tmp_server != NULL; in rr_server_del() 145 for (tmp_server = list_head(servers); tmp_server != NULL; in rr_server_toggle() 225 while ((tmp_server = list_head(servers)) != NULL) { in rr_fini()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | dcopy.c | 257 ASSERT(list_head(&dcopy_statep->d_globalchan_list.dl_list) == NULL); in dcopy_fini() 258 ASSERT(list_head(&dcopy_statep->d_device_list.dl_list) == NULL); in dcopy_fini() 301 channel = list_head(&list->dl_list); in dcopy_alloc() 583 list_node = list_head(&list->dl_list); in dcopy_list_pop() 678 channel = list_head(&device->dc_devchan_list.dl_list); in dcopy_device_register() 696 channel = list_head(&device->dc_devchan_list.dl_list); in dcopy_device_register() 739 channel = list_head(&device->dc_devchan_list.dl_list); in dcopy_device_unregister() 786 channel = list_head(&device->dc_devchan_list.dl_list); in dcopy_device_cleanup() 794 channel = list_head(&device->dc_devchan_list.dl_list); in dcopy_device_cleanup() 843 priv = list_head(&poll_list->dl_list); in dcopy_device_channel_notify() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zio_inject.c | 170 for (handler = list_head(&inject_handlers); handler != NULL; in zio_handle_panic_injection() 229 for (handler = list_head(&inject_handlers); handler != NULL; in zio_handle_decrypt_injection() 271 for (handler = list_head(&inject_handlers); handler != NULL; in zio_handle_fault_injection() 313 for (handler = list_head(&inject_handlers); handler != NULL; in zio_handle_label_injection() 361 for (handler = list_head(&inject_handlers); handler != NULL; in zio_handle_device_injection() 430 for (handler = list_head(&inject_handlers); handler != NULL; in zio_handle_ignored_writes() 468 for (handler = list_head(&inject_handlers); handler != NULL; in spa_handle_ignored_writes() 550 for (inject_handler_t *handler = list_head(&inject_handlers); in zio_handle_io_delay() 835 for (handler = list_head(&inject_handlers); handler != NULL; in zio_inject_list_next() 866 for (handler = list_head(&inject_handlers); handler != NULL; in zio_clear_fault()
|
H A D | vdev_indirect.c | 296 while ((is = list_head(&iv->iv_splits)) != NULL) { in vdev_indirect_map_free() 305 while ((ic = list_head(&is->is_unique_child)) != NULL) in vdev_indirect_map_free() 1245 for (indirect_split_t *is = list_head(&iv->iv_splits); in vdev_indirect_read_all() 1302 indirect_split_t *first = list_head(&iv->iv_splits); in vdev_indirect_io_start() 1414 for (indirect_split_t *is = list_head(&iv->iv_splits); in vdev_indirect_repair() 1448 for (indirect_split_t *is = list_head(&iv->iv_splits); in vdev_indirect_all_checksum_errors() 1478 for (indirect_split_t *is = list_head(&iv->iv_splits); in vdev_indirect_splits_checksum_validate() 1505 for (indirect_split_t *is = list_head(&iv->iv_splits); in vdev_indirect_splits_enumerate_all() 1507 is->is_good_child = list_head(&is->is_unique_child); in vdev_indirect_splits_enumerate_all() 1525 is->is_good_child = list_head(&is->is_unique_child); in vdev_indirect_splits_enumerate_all() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | immu_dmar.c | 259 idt = list_head(&ioapic_drhd_list); in ioapic_drhd_lookup() 547 for (scope = list_head(scope_list); scope; in print_scope_list() 570 for (drhd = list_head(drhd_list); drhd; in print_drhd_list() 597 for (rmrr = list_head(rmrr_list); rmrr; in print_rmrr_list() 716 drhd = list_head(drhd_list); in dmar_devinfos_create() 757 drhd = list_head(drhd_list); in dmar_devi_destroy() 962 rmrr = list_head(&(tbl->tbl_rmrr_list)[seg]); in immu_dmar_rmrr_map() 969 scope = list_head(&(rmrr->rm_scope_list)); in immu_dmar_rmrr_map() 1085 scope = list_head(&(drhd->dr_scope_list)); in immu_dmar_get_immu() 1139 scope = list_head(&(drhd->dr_scope_list)); in immu_dmar_get_immu() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | retire_store.c | 151 ASSERT(list_head(nvf_list(rio_store_handle)) == NULL); in retire_store_read() 183 while (rsp = list_head(listp)) { in retire_list_free() 266 for (rsp = list_head(listp); rsp; rsp = list_next(listp, rsp)) { in rio_store_encode() 334 for (rsp = list_head(listp); rsp; rsp = list_next(listp, rsp)) { in e_ddi_retire_persist() 380 for (rsp = list_head(listp); rsp; rsp = next) { in e_ddi_retire_unpersist() 416 for (rsp = list_head(listp); rsp; rsp = list_next(listp, rsp)) { in e_ddi_device_retired()
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/with_structs/ |
H A D | implicit_dependencies_verbose.pretty | 751 'reason': set([('list_head', 'next')])}, 767 'reason': set([('list_head', 'next')])}, 769 'reason': set([('list_head', 'next')])}, 773 'reason': set([('list_head', 'next')])}, 784 'reason': set([('list_head', 'next')])}, 792 'reason': set([('list_head', 'next')])}, 801 'reason': set([('list_head', 'next')])}, 814 'reason': set([('list_head', 'next')])}, 818 'reason': set([('list_head', 'next')])}, 824 ('list_head', 'next')])}, [all …]
|
H A D | implicit_dependencies_verbose | 1134 ('list_head', 'next')])}, 1137 'reason': set([('list_head', 'next')])}, 1141 ('list_head', 'next')])}, 1156 ('list_head', 'next')])}, 1160 'reason': set([('list_head', 'next')])}, 1162 'reason': set([('list_head', 'next')])}, 1168 'reason': set([('list_head', 'next')])}, 1172 ('list_head', 'next')])}, 1183 'reason': set([('list_head', 'next')])}, 1192 'reason': set([('list_head', 'next')])}, [all …]
|
/illumos-gate/usr/src/uts/common/io/overlay/ |
H A D | overlay_plugin.c | 178 for (ipp = list_head(&overlay_plugin_list); ipp != NULL; in overlay_plugin_register() 198 for (opp = list_head(&overlay_plugin_list); opp != NULL; in overlay_plugin_unregister() 232 for (opp = list_head(&overlay_plugin_list); opp != NULL; in overlay_plugin_lookup() 273 for (opp = list_head(&overlay_plugin_list); opp != NULL; in overlay_plugin_walk()
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_addr.c | 565 obj1 = list_head(&list1->sctp_ipif_list); in sctp_compare_ipif_list() 567 obj2 = list_head(&list2->sctp_ipif_list); in sctp_compare_ipif_list() 618 obj = list_head(&list1->sctp_ipif_list); in sctp_copy_ipifs() 907 sctp = list_head(&sctps->sctps_g_list); in sctp_update_saddrs() 923 sobj = list_head(&sctp->sctp_saddrs[idx].sctp_ipif_list); in sctp_update_saddrs() 1438 obj = list_head(&sctp->sctp_saddrs[i].sctp_ipif_list); in sctp_check_saddr() 1506 obj = list_head(&sctp->sctp_saddrs[i].sctp_ipif_list); in sctp_get_valid_addr() 1578 obj = list_head(&sctp->sctp_saddrs[i].sctp_ipif_list); in sctp_getmyaddrs() 1679 obj = list_head(&sctp->sctp_saddrs[i].sctp_ipif_list); in sctp_saddr_info() 1872 sctp_ipif = list_head( in sctp_get_addrlist() [all …]
|
H A D | sctp_misc.c | 99 for (sctp_walker = list_head(&sctps->sctps_g_list); in sctp_display_all() 119 for (sl = list_head(&sctps->sctps_listener_conf); sl != NULL; in sctp_find_listener_conf() 139 while ((sl = list_head(&sctps->sctps_listener_conf)) != NULL) { in sctp_listener_conf_cleanup()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_quota.c | 246 qtree = list_head(&smb_quota_fs_list); in smb_quota_fini() 300 qtree = list_head(&smb_quota_fs_list); in smb_quota_add_fs() 344 qtree = list_head(&smb_quota_fs_list); in smb_quota_remove_fs() 452 while ((quota = list_head(list)) != NULL) { in smb_quota_free() 494 sid = list_head(sid_list); in smb_quota_query_all() 505 sid = list_head(sid_list); in smb_quota_query_all() 558 sid = list_head(sid_list); in smb_quota_query_list() 610 quota = list_head(quota_list); in smb_quota_zfs_set_quotas() 749 qtree = list_head(&smb_quota_fs_list); in smb_quota_tree_lookup() 769 qtree = list_head(&smb_quota_fs_list); in smb_quota_tree_lookup()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_domain.c | 185 dcnode = list_head(&smb_dcache.dc_cache); in smb_domain_lookup_name() 242 dcnode = list_head(&smb_dcache.dc_cache); in smb_domain_lookup_sid() 279 dcnode = list_head(&smb_dcache.dc_cache); in smb_domain_lookup_type() 390 dcnode = list_head(&smb_dcache.dc_cache); in smb_domain_update() 395 dcnode = list_head(&smb_dcache.dc_cache); in smb_domain_update() 448 domain = list_head(&smb_dcache.dc_cache); in smb_domain_save() 658 while ((di = list_head(&smb_dcache.dc_cache)) != NULL) in smb_dcache_flush()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockparams.c | 366 for (sp = list_head(list); sp != NULL; sp = list_next(list, sp)) { in sockparams_find() 685 for (sp = list_head(&sphead); sp != NULL; in solookup() 774 for (sp = list_head(list); sp != NULL; in sockparams_filter_cleanup_impl() 778 for (fil = list_head(flist); fil != NULL; in sockparams_filter_cleanup_impl() 807 for (sp = list_head(list); sp != NULL; in sockparams_new_filter_impl() 855 for (sp = list_head(&sphead); sp != NULL; in sockparams_copyout_socktable() 871 for (sp = list_head(&sphead); sp != NULL; in sockparams_copyout_socktable()
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_client.c | 663 cur_smi = list_head(&smg->smg_list); in smbfs_flushall() 679 for (tmp_smi = list_head(&smg->smg_list); in smbfs_flushall() 687 next_smi = list_head(&smg->smg_list); in smbfs_flushall() 735 for (smi = list_head(&smg->smg_list); smi != NULL; in smbfs_zone_shutdown() 782 if (list_head(&smg->smg_list) != NULL) { in smbfs_zone_destroy() 821 if (list_head(&smg->smg_list) == NULL && in smbfs_zonelist_remove()
|
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_browser.c | 867 hinfo = list_head(&smb_binfo.bi_hlist); in smb_browser_process_AnnouncementRequest() 1070 hinfo = list_head(&smb_binfo.bi_hlist); in smb_browser_config() 1089 hinfo = list_head(&smb_binfo.bi_hlist); in smb_browser_config() 1257 hinfo = list_head(&smb_binfo.bi_hlist); in smb_browser_service() 1308 hinfo = list_head(&smb_binfo.bi_hlist); in smb_browser_netlogon() 1385 while ((hinfo = list_head(&smb_binfo.bi_hlist)) != NULL) { in smb_browser_infofree()
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_quota.c | 113 while ((sid = list_head(sid_list)) != NULL) { in smb_quota_free_sids() 274 while ((quota = list_head(list)) != NULL) { in smb_quota_free_quotas() 306 quota = list_head(list); in smb_quota_encode_quotas() 411 q = list_head(&reply.qr_quota_list); in smb_quota_query_user_quota()
|
/illumos-gate/usr/src/uts/common/refhash/ |
H A D | refhash.c | 121 for (lp = list_head(&hp->rh_buckets[bucket]); lp != NULL; in refhash_lookup() 139 for (lp = list_head(&hp->rh_objs); lp != NULL; in refhash_linear_search() 173 lp = list_head(&hp->rh_objs); in refhash_first()
|