VirtualBox

Ignore:
Timestamp:
Sep 15, 2007 10:04:05 AM (17 years ago)
Author:
vboxsync
Message:

IOC_VOID fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp

    r4071 r4818  
    4242    if (!rc)
    4343    {
     44        /*
     45         * Simple test.
     46         */
     47        void *pv;
     48        int rc = SUPPageAlloc(1, &pv);
     49        AssertRC(rc);
     50        RTPrintf("pv=%p\n", pv);
     51        SUPPAGE aPages[1];
     52        rc = SUPPageLock(pv, 1, &aPages[0]);
     53        RTPrintf("rc=%d aPages[0]=%RHp\n", rc, pv, aPages[0]);
     54        RTThreadSleep(1500);
     55#if 0
     56        RTPrintf("Unlocking...\n");
     57        RTThreadSleep(250);
     58        rc = SUPPageUnlock(pv);
     59        RTPrintf("rc=%d\n", rc);
     60        RTThreadSleep(1500);
     61#endif
     62
     63        /*
     64         * More extensive.
     65         */
    4466        static struct
    4567        {
     
    169191            SUPPageFree(pv, BIG_SIZEPP >> PAGE_SHIFT);
    170192        }
    171 
    172193        rc = SUPTerm();
    173194        RTPrintf("SUPTerm -> rc=%d\n", rc);
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