VirtualBox

Changeset 36372 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Mar 23, 2011 4:35:01 PM (14 years ago)
Author:
vboxsync
Message:

RTR0MemObjSize: Correct documentation and added alignment guarantee.

File:
1 edited

Legend:

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

    r33540 r36372  
    8484 * Gets the size of a ring-0 memory object.
    8585 *
    86  * @returns The address of the memory object.
    87  * @returns NULL if the handle is invalid (asserts in strict builds) or if there isn't any mapping.
     86 * The returned value may differ from the one specified to the API creating the
     87 * object because of alignment adjustments.  The minimal alignment currently
     88 * employed by any API is PAGE_SIZE, so the result can safely be shifted by
     89 * PAGE_SHIFT to calculate a page count.
     90 *
     91 * @returns The object size.
     92 * @returns 0 if the handle is invalid (asserts in strict builds) or if there isn't any mapping.
    8893 * @param   MemObj  The ring-0 memory object handle.
    8994 */
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