VirtualBox

Changeset 22987 in vbox for trunk


Ignore:
Timestamp:
Sep 14, 2009 6:56:54 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52266
Message:

VBox/uvm.h: Added UVM_ASSERT_VALID_EXT_RETURN.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/uvm.h

    r22932 r22987  
    139139#define UVM_MAGIC       0x19700823
    140140
     141/** @def UVM_ASSERT_VALID_EXT_RETURN
     142 * Asserts a the VM handle is valid for external access, i.e. not being
     143 * destroy or terminated.
     144 */
     145#define UVM_ASSERT_VALID_EXT_RETURN(pVM, rc) \
     146        AssertMsgReturn(    RT_VALID_ALIGNED_PTR(pVM, PAGE_SIZE) \
     147                        &&  (pUVM)->u32Magic == UVM_MAGIC, \
     148                        ("pUVM=%p u32Magic=%#x\n", (pUVM), \
     149                         RT_VALID_ALIGNED_PTR(pVM, PAGE_SIZE) ? (pUVM)->u32Magic : 0), \
     150                        (rc))
     151
    141152#endif
    142153
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