Lines Matching defs:cursor
1375 * Initializes the given cursor for the AVL.
1376 * The cursor will be used to iterate through the AVL
1379 smb_avl_iterinit(smb_avl_t *avl, smb_avl_cursor_t *cursor)
1382 ASSERT(cursor);
1384 cursor->avlc_next = NULL;
1385 cursor->avlc_sequence = avl->avl_sequence;
1389 * Iterates through the AVL using the given cursor.
1402 smb_avl_iterate(smb_avl_t *avl, smb_avl_cursor_t *cursor)
1407 ASSERT(cursor);
1413 if (cursor->avlc_sequence != avl->avl_sequence) {
1419 if (cursor->avlc_next == NULL)
1422 node = AVL_NEXT(&avl->avl_tree, cursor->avlc_next);
1427 cursor->avlc_next = node;