VirtualBox

Ignore:
Timestamp:
Nov 30, 2008 7:52:59 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40150
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/r0drv/linux/memobj-r0drv-linux.c

    r13994 r14824  
    940940
    941941
    942 int rtR0MemObjNativeMapKernel(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, void *pvFixed, size_t uAlignment, unsigned fProt)
     942int rtR0MemObjNativeMapKernel(PPRTR0MEMOBJINTERNAL ppMem, RTR0MEMOBJ pMemToMap, void *pvFixed, size_t uAlignment,
     943                              unsigned fProt, size_t offSub, size_t cbSub)
    943944{
    944945    int rc = VERR_NO_MEMORY;
     
    947948
    948949    /* Fail if requested to do something we can't. */
     950    AssertMsgReturn(!offSub && !cbSub, ("%#x %#x\n", offSub, cbSub), VERR_NOT_SUPPORTED);
    949951    AssertMsgReturn(pvFixed == (void *)-1, ("%p\n", pvFixed), VERR_NOT_SUPPORTED);
    950952    AssertMsgReturn(uAlignment <= PAGE_SIZE, ("%#x\n", uAlignment), VERR_NOT_SUPPORTED);
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