VirtualBox

Changeset 21282 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 6, 2009 11:43:36 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49619
Message:

iprt/mem.h: Added RTR0MemAreKernelAndUserRangesDifferent.

File:
1 edited

Legend:

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

    r21265 r21282  
    258258RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW;
    259259
    260 
    261260/**
    262261 * Copy memory from an user mode buffer into a kernel buffer.
     
    294293 *
    295294 * @remarks Some systems may have overlapping kernel and user address ranges.
    296  *          One prominent example of this is the x86 version of Mac OS X.
     295 *          One prominent example of this is the x86 version of Mac OS X. Use
     296 *          RTR0MemAreKernelAndUserRangesDifferent() to check.
    297297 */
    298298RTR0DECL(bool) RTR0MemUserIsValidAddr(RTR3PTR R3Ptr);
     
    309309 *
    310310 * @remarks Some systems may have overlapping kernel and user address ranges.
    311  *          One prominent example of this is the x86 version of Mac OS X.
     311 *          One prominent example of this is the x86 version of Mac OS X. Use
     312 *          RTR0MemAreKernelAndUserRangesDifferent() to check.
    312313 */
    313314RTR0DECL(bool) RTR0MemKernelIsValidAddr(void *pv);
     315
     316/**
     317 * Are user mode and kernel mode address ranges distinctly different.
     318 *
     319 * This determins whether RTR0MemKernelIsValidAddr and RTR0MemUserIsValidAddr
     320 * can be used for deciding whether some arbitrary address is a user mode or a
     321 * kernel mode one.
     322 *
     323 * @returns true if they are, false if not.
     324 */
     325RTR0DECL(bool) RTR0MemAreKernelAndUserRangesDifferent(void);
    314326
    315327#endif /* IN_RING0 */
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