VirtualBox

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


Ignore:
Timestamp:
Nov 30, 2008 7:52:59 AM (16 years ago)
Author:
vboxsync
Message:

IPRT: RTR0MemObjMapKernelEx for mapping a portion of a memory object into ring-0. Only implemented on darwin (where I had to switch back to use I/O kit to wire memory instead of vm_map_wire).

File:
1 edited

Legend:

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

    r8245 r14824  
    380380 *
    381381 * @returns IPRT status code.
     382 * @retval  VERR_NOT_SUPPORTED see RTR0MemObjMapKernelEx.
     383 *
    382384 * @param   ppMem           Where to store the ring-0 memory object handle of the mapping object.
    383385 * @param   pMemToMap       The object to be map.
     
    385387 * @param   uAlignment      The alignment of the reserved memory; PAGE_SIZE, _2M or _4M.
    386388 * @param   fProt           Combination of RTMEM_PROT_* flags (except RTMEM_PROT_NONE).
    387  */
    388 int rtR0MemObjNativeMapKernel(PPRTR0MEMOBJINTERNAL ppMem, PRTR0MEMOBJINTERNAL pMemToMap, void *pvFixed, size_t uAlignment, unsigned fProt);
     389 * @param   offSub          Where in the object to start mapping. If non-zero
     390 *                          the value must be page aligned and cbSub must be
     391 *                          non-zero as well.
     392 * @param   cbSub           The size of the part of the object to be mapped. If
     393 *                          zero the entire object is mapped. The value must be
     394 *                          page aligned.
     395 */
     396int rtR0MemObjNativeMapKernel(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, void *pvFixed, size_t uAlignment,
     397                              unsigned fProt, size_t offSub, size_t cbSub);
    389398
    390399/**
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