## Virtual Device Driver Reference for OS/2

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

### VDHAllocDMABuffer - Parameters

RequestSize (ULONG) Request Size.

If the Align64kFlag=1, RequestSize is always less than or equal to 64KB. If the Align64kFlag=0, RequestSize is always less than or equal to 128KB.

Align64kFlag (BOOL) Alignment flag.

If Align64kFlag=1, the buffer is at a 64KB alignment in physical memory. If Align64kFlag=0, the buffer is at a 128KB alignment in physical memory.

PhysAddrPtr (PULONG) Location where VDHAllocDMABuffer returns the physical address of the allocation.

rc (PVOID) - returns

Success If the function is successful, it returns the linear address of allocation (system memory).

Failure If the function fails, it returns -1. VDHGetError should be called to determine the nature of the problem.