Print this page
4745 fix AVL code misspellings

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/avl.h
          +++ new/usr/src/uts/common/sys/avl.h
↓ open down ↓ 31 lines elided ↑ open up ↑
  32   32   */
  33   33  
  34   34  #ifdef  __cplusplus
  35   35  extern "C" {
  36   36  #endif
  37   37  
  38   38  #include <sys/types.h>
  39   39  #include <sys/avl_impl.h>
  40   40  
  41   41  /*
  42      - * This is a generic implemenatation of AVL trees for use in the Solaris kernel.
       42 + * This is a generic implementation of AVL trees for use in the Solaris kernel.
  43   43   * The interfaces provide an efficient way of implementing an ordered set of
  44   44   * data structures.
  45   45   *
  46   46   * AVL trees provide an alternative to using an ordered linked list. Using AVL
  47   47   * trees will usually be faster, however they requires more storage. An ordered
  48   48   * linked list in general requires 2 pointers in each data structure. The
  49   49   * AVL tree implementation uses 3 pointers. The following chart gives the
  50   50   * approximate performance of operations with the different approaches:
  51   51   *
  52   52   *      Operation        Link List      AVL tree
↓ open down ↓ 115 lines elided ↑ open up ↑
 168  168   *
 169  169   * node   - the node to insert
 170  170   * where  - position as returned from avl_find()
 171  171   */
 172  172  extern void avl_insert(avl_tree_t *tree, void *node, avl_index_t where);
 173  173  
 174  174  /*
 175  175   * Insert "new_data" in "tree" in the given "direction" either after
 176  176   * or before the data "here".
 177  177   *
 178      - * This might be usefull for avl clients caching recently accessed
      178 + * This might be useful for avl clients caching recently accessed
 179  179   * data to avoid doing avl_find() again for insertion.
 180  180   *
 181  181   * new_data     - new data to insert
 182  182   * here         - existing node in "tree"
 183  183   * direction    - either AVL_AFTER or AVL_BEFORE the data "here".
 184  184   */
 185  185  extern void avl_insert_here(avl_tree_t *tree, void *new_data, void *here,
 186  186      int direction);
 187  187  
 188  188  
↓ open down ↓ 121 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX