Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

static int krdrFileAllUnmap ( PKRDR  pRdr,
const void *  pvBits 
) [static]

Definition at line 939 of file kRdrFile.cpp.

References KRDRFILE::cMappings, KERR_INVALID_PARAMETER, NULL, and KRDRFILE::pvMapping.

{
    PKRDRFILE pRdrFile = (PKRDRFILE)pRdr;

    /* check for underflow */
    if (pRdrFile->cMappings <= 0)
        return KERR_INVALID_PARAMETER;

    /* decrement usage counter, free mapping if no longer in use. */
    if (!--pRdrFile->cMappings)
    {
        kHlpFree(pRdrFile->pvMapping);
        pRdrFile->pvMapping = NULL;
    }

    return 0;
}


Generated by  Doxygen 1.6.0   Back to index