Changeset 23610 in vbox for trunk/include/iprt
- Timestamp:
- Oct 7, 2009 9:22:10 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53284
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/memobj.h
r20525 r23610 146 146 * @returns IPRT status code. 147 147 * @param pMemObj Where to store the ring-0 memory object handle. 148 * @param R3Ptr User virtual address. This is rounded down to a page boundrary. 149 * @param cb Number of bytes to lock. This is rounded up to nearest page boundrary. 150 * @param R0Process The process to lock pages in. NIL_R0PROCESS is an alias for the current one. 151 * 152 * @remarks RTR0MemGetAddressR3() and RTR0MemGetAddress() will return the rounded 148 * @param R3Ptr User virtual address. This is rounded down to a page 149 * boundrary. 150 * @param cb Number of bytes to lock. This is rounded up to 151 * nearest page boundrary. 152 * @param fAccess The desired access, a combination of RTMEM_PROT_READ 153 * and RTMEM_PROT_WRITE. 154 * @param R0Process The process to lock pages in. NIL_R0PROCESS is an 155 * alias for the current one. 156 * 157 * @remarks RTR0MemGetAddressR3() and RTR0MemGetAddress() will return therounded 153 158 * down address. 159 * 154 160 * @remarks Linux: This API requires that the memory begin locked is in a memory 155 161 * mapping that is not required in any forked off child process. This … … 157 163 * lifting it. 158 164 */ 159 RTR0DECL(int) RTR0MemObjLockUser(PRTR0MEMOBJ pMemObj, RTR3PTR R3Ptr, size_t cb, RTR0PROCESS R0Process);165 RTR0DECL(int) RTR0MemObjLockUser(PRTR0MEMOBJ pMemObj, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process); 160 166 161 167 /** … … 166 172 * @param pv Kernel virtual address. This is rounded down to a page boundrary. 167 173 * @param cb Number of bytes to lock. This is rounded up to nearest page boundrary. 174 * @param fAccess The desired access, a combination of RTMEM_PROT_READ 175 * and RTMEM_PROT_WRITE. 168 176 * 169 177 * @remark RTR0MemGetAddress() will return the rounded down address. 170 178 */ 171 RTR0DECL(int) RTR0MemObjLockKernel(PRTR0MEMOBJ pMemObj, void *pv, size_t cb );179 RTR0DECL(int) RTR0MemObjLockKernel(PRTR0MEMOBJ pMemObj, void *pv, size_t cb, uint32_t fAccess); 172 180 173 181 /**
Note:
See TracChangeset
for help on using the changeset viewer.