## Virtual Device Driver Reference for OS/2

[prev][next][parent][TOC]

### VDHAllocDMABuffer

Select an item:

    Format
    Parameters
    Return Codes
    Purpose
    Glossary

This function allocates a DMA buffer.

    #include mvdm.h

    ULONG     RequestSize;   /*  Request size */

    BOOL      Align64kFlag;  /*  Alignment flag */

    PULONG    PhysAddrPtr;   /*  Location to store the physical address returned */

    PVOID     rc;

    rc = VDHAllocDMABuffer(RequestSize, Align64kFlag,

           PhysAddrPtr);