Lines Matching refs:sds
1005 scan_ds_t *sds;
1006 while ((sds = avl_destroy_nodes(&scn->scn_queue, &cookie)) != NULL) {
1007 kmem_free(sds, sizeof (*sds));
1014 scan_ds_t srch, *sds;
1017 sds = avl_find(&scn->scn_queue, &srch, NULL);
1018 if (sds != NULL && txg != NULL)
1019 *txg = sds->sds_txg;
1020 return (sds != NULL);
1026 scan_ds_t *sds;
1029 sds = kmem_zalloc(sizeof (*sds), KM_SLEEP);
1030 sds->sds_dsobj = dsobj;
1031 sds->sds_txg = txg;
1033 VERIFY3P(avl_find(&scn->scn_queue, sds, &where), ==, NULL);
1034 avl_insert(&scn->scn_queue, sds, where);
1040 scan_ds_t srch, *sds;
1044 sds = avl_find(&scn->scn_queue, &srch, NULL);
1045 VERIFY(sds != NULL);
1046 avl_remove(&scn->scn_queue, sds);
1047 kmem_free(sds, sizeof (*sds));
1065 for (scan_ds_t *sds = avl_first(&scn->scn_queue);
1066 sds != NULL; sds = AVL_NEXT(&scn->scn_queue, sds)) {
1068 scn->scn_phys.scn_queue_obj, sds->sds_dsobj,
1069 sds->sds_txg, tx));
2468 scan_ds_t *sds;
2523 while ((sds = avl_first(&scn->scn_queue)) != NULL) {
2525 uint64_t dsobj = sds->sds_dsobj;
2526 uint64_t txg = sds->sds_txg;
2530 sds = NULL; /* must not be touched after removal */