2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
20 .Nd insert items into an AVL tree
26 .Fa "avl_tree_t *tree"
28 .Fa "avl_index_t where"
32 .Fa "avl_tree_t *tree"
42 functions are used to add the entry
51 value, obtained from a call to
53 to determine where to insert the new entry into the tree. The tree must
54 not have been modified in between the call to
58 If callers are not using
60 to validate the presence of
62 in the tree and only immediately insert it, then
68 function is for consumers who are keeping track of recently accessed
69 data and wish to avoid an additional call to
73 will be inserted starting at the node
75 which must already exist in the tree. To insert the node in the tree
82 Otherwise, to indicate that the new entry should be inserted after
90 to anything other than
94 If this is done, the behavior is not defined.
100 .Sh INTERFACE STABILITY