VirtualBox

Changeset 392 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 27, 2007 10:28:29 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17963
Message:

Added a process specifier to the APIs dealing with user addresses.

File:
1 edited

Legend:

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

    r1 r392  
    126126 * @param   pv              User virtual address. This is rounded down to a page boundrary.
    127127 * @param   cb              Number of bytes to lock. This is rounded up to nearest page boundrary.
     128 * @param   R0Process       The process to lock pages in. NIL_R0PROCESS is an alias for the current one.
    128129 *
    129130 * @remark  RTR0MemObjGetAddress() will return the rounded down address.
    130131 */
    131 RTR0DECL(int) RTR0MemObjLockUser(PRTR0MEMOBJ pMemObj, void *pv, size_t cb);
     132RTR0DECL(int) RTR0MemObjLockUser(PRTR0MEMOBJ pMemObj, void *pv, size_t cb, RTR0PROCESS R0Process);
    132133
    133134/**
     
    188189 * @param   uAlignment      The alignment of the reserved memory.
    189190 *                          Supported values are 0 (alias for PAGE_SIZE), PAGE_SIZE, _2M and _4M.
    190  */
    191 RTR0DECL(int) RTR0MemObjReserveUser(PRTR0MEMOBJ pMemObj, void *pvFixed, size_t cb, size_t uAlignment);
     191 * @param   R0Process       The process to reserve the memory in. NIL_R0PROCESS is an alias for the current one.
     192 */
     193RTR0DECL(int) RTR0MemObjReserveUser(PRTR0MEMOBJ pMemObj, void *pvFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process);
    192194
    193195/**
     
    214216 *                          Supported values are 0 (alias for PAGE_SIZE), PAGE_SIZE, _2M and _4M.
    215217 * @param   fProt           Combination of RTMEM_PROT_* flags (except RTMEM_PROT_NONE).
    216  */
    217 RTR0DECL(int) RTR0MemObjMapUser(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt);
     218 * @param   R0Process       The process to map the memory into. NIL_R0PROCESS is an alias for the current one.
     219 */
     220RTR0DECL(int) RTR0MemObjMapUser(PRTR0MEMOBJ pMemObj, RTR0MEMOBJ MemObjToMap, void *pvFixed, size_t uAlignment, unsigned fProt, RTR0PROCESS R0Process);
    218221
    219222#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