VirtualBox

Changeset 23610 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Oct 7, 2009 9:22:10 PM (15 years ago)
Author:
vboxsync
Message:

IPRT,VMM,SUPDrv,VBGLR0: Added a parameter to RTR0MemObjLockUser/Kernel that indicates read/write intent so we can correctly lock readonly memory on Windows and OS/2. (Guest property strings, see #4238.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/memobj.h

    r20525 r23610  
    335335 * @param   R3Ptr           User virtual address, page aligned.
    336336 * @param   cb              Number of bytes to lock, page aligned.
     337 * @param   fAccess         The desired access, a combination of RTMEM_PROT_READ
     338 *                          and RTMEM_PROT_WRITE.
    337339 * @param   R0Process       The process to lock pages in.
    338340 */
    339 int rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, RTR0PROCESS R0Process);
     341int rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process);
    340342
    341343/**
     
    346348 * @param   pv              Kernel virtual address, page aligned.
    347349 * @param   cb              Number of bytes to lock, page aligned.
    348  */
    349 int rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb);
     350 * @param   fAccess         The desired access, a combination of RTMEM_PROT_READ
     351 *                          and RTMEM_PROT_WRITE.
     352 */
     353int rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess);
    350354
    351355/**
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