Lines Matching defs:sds
1476 scan_ds_t *sds;
1477 while ((sds = avl_destroy_nodes(&scn->scn_queue, &cookie)) != NULL) {
1478 kmem_free(sds, sizeof (*sds));
1485 scan_ds_t srch, *sds;
1488 sds = avl_find(&scn->scn_queue, &srch, NULL);
1489 if (sds != NULL && txg != NULL)
1490 *txg = sds->sds_txg;
1491 return (sds != NULL);
1497 scan_ds_t *sds;
1500 sds = kmem_zalloc(sizeof (*sds), KM_SLEEP);
1501 sds->sds_dsobj = dsobj;
1502 sds->sds_txg = txg;
1504 VERIFY3P(avl_find(&scn->scn_queue, sds, &where), ==, NULL);
1505 avl_insert(&scn->scn_queue, sds, where);
1511 scan_ds_t srch, *sds;
1515 sds = avl_find(&scn->scn_queue, &srch, NULL);
1516 VERIFY(sds != NULL);
1517 avl_remove(&scn->scn_queue, sds);
1518 kmem_free(sds, sizeof (*sds));
1536 for (scan_ds_t *sds = avl_first(&scn->scn_queue);
1537 sds != NULL; sds = AVL_NEXT(&scn->scn_queue, sds)) {
1539 scn->scn_phys.scn_queue_obj, sds->sds_dsobj,
1540 sds->sds_txg, tx));
3102 scan_ds_t *sds;
3156 while ((sds = avl_first(&scn->scn_queue)) != NULL) {
3158 uint64_t dsobj = sds->sds_dsobj;
3159 uint64_t txg = sds->sds_txg;
3163 sds = NULL;