VirtualBox

Changeset 93671 in vbox for trunk/include/iprt/err.h


Ignore:
Timestamp:
Feb 9, 2022 11:42:46 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/hardavl: Initial adaption of the old AVL code into something a little more sturdy and suitable for manging data shared between kernel and user space. Needs more testing and possibly more use of 'volatile'. bugref:10093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/err.h

    r93115 r93671  
    27272727/** @} */
    27282728
     2729
    27292730/** @name FTP status codes
    27302731 * @{ */
     
    27562757/** @} */
    27572758
     2759
     2760/** @name Hardened AVL tree status codes.
     2761 * @{ */
     2762/** Node index is out of bounds. */
     2763#define VERR_HARDAVL_INDEX_OUT_OF_BOUNDS                        (-26801)
     2764/** Node pointer is not within the memory allocated for nodes. */
     2765#define VERR_HARDAVL_POINTER_OUT_OF_BOUNDS                      (-26802)
     2766/** Node pointer does not point to the start of a node. */
     2767#define VERR_HARDAVL_MISALIGNED_POINTER                         (-26803)
     2768/** Bogus reference to freed node. */
     2769#define VERR_HARDAVL_NODE_IS_FREE                               (-26804)
     2770/** Stack overflow during AVL tree operation. */
     2771#define VERR_HARDAVL_STACK_OVERFLOW                             (-26810)
     2772/** Attempted to insert mode with invalid key range. */
     2773#define VERR_HARDAVL_INSERT_INVALID_KEY_RANGE                   (-26811)
     2774/** Bad left tree height. */
     2775#define VERR_HARDAVL_BAD_LEFT_HEIGHT                            (-26812)
     2776/** Bad left right height. */
     2777#define VERR_HARDAVL_BAD_RIGHT_HEIGHT                           (-26813)
     2778/** Bad new tree height. */
     2779#define VERR_HARDAVL_BAD_NEW_HEIGHT                             (-26814)
     2780/** Unexpected NULL pointer to left subtree. */
     2781#define VERR_HARDAVL_UNEXPECTED_NULL_LEFT                       (-26815)
     2782/** Unexpected NULL pointer to right subtree. */
     2783#define VERR_HARDAVL_UNEXPECTED_NULL_RIGHT                      (-26816)
     2784/** Tree traversal encountered more nodes than available in the allocator. */
     2785#define VERR_HARDAVL_TRAVERSED_TOO_MANY_NODES                   (-26817)
     2786/** Too deep walk during lookup.  */
     2787#define VERR_HARDAVL_LOOKUP_TOO_DEEP                            (-26818)
     2788/** @} */
     2789
    27582790/* SED-END */
    27592791
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette