VirtualBox

Changeset 93710 in vbox for trunk/include


Ignore:
Timestamp:
Feb 11, 2022 11:10:34 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149881
Message:

IPRT/hardavl: Added RTCHardAvlTreeSlabAllocatorR3_T placeholder for use in ring-0. bugref:10093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/hardavlslaballocator.h

    r93671 r93710  
    137137    }
    138138
    139     inline bool isIntValid(uint32_t a_idxNode1)
     139    inline bool isIntValid(uint32_t a_idxNode1) RT_NOEXCEPT
    140140    {
    141141        return a_idxNode1 <= m_cNodes;
     
    180180        return NULL;
    181181    }
    182 
    183182};
    184183
     184
     185/**
     186 * Placeholder structure for ring-3 slab allocator.
     187 */
     188typedef struct RTCHardAvlTreeSlabAllocatorR3_T
     189{
     190    /** Pointer to an array of nodes. */
     191    RTR3PTR     m_paNodes;
     192    /** Node allocation bitmap: 1 = free, 0 = allocated. */
     193    RTR3PTR     m_pbmAlloc;
     194    /** Max number of nodes in m_paNodes and valid bits in m_pbmAlloc. */
     195    uint32_t    m_cNodes;
     196    /** Pointer error counter. */
     197    uint32_t    m_cErrors;
     198    /** Allocation hint. */
     199    uint32_t    m_idxAllocHint;
     200    uint32_t    m_uPadding;
     201} RTCHardAvlTreeSlabAllocatorR3_T;
     202AssertCompileSize(RTCHardAvlTreeSlabAllocatorR3_T,
     203                  sizeof(RTCHardAvlTreeSlabAllocator<RTUINT128U>) - (sizeof(void *) - sizeof(RTR3PTR)) * 2);
     204
    185205/** @} */
    186206
Note: See TracChangeset for help on using the changeset viewer.

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