WdfCommonBufferGetAlignedLogicalAddress - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfcommonbuffer.h

PHYSICAL_ADDRESS WdfCommonBufferGetAlignedLogicalAddress(
  [in] WDFCOMMONBUFFER CommonBuffer
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfcommonbuffer-wdfcommonbuffergetalignedlogicaladdress)

WdfCommonBufferGetAlignedLogicalAddress function

Description

[Applies to KMDF only]

The WdfCommonBufferGetAlignedLogicalAddress method returns the logical address that is associated with a specified common buffer.

Parameters

CommonBuffer [in]

A handle to a common buffer object that the driver obtained by a previous call to WdfCommonBufferCreate.

Return value

WdfCommonBufferGetAlignedLogicalAddress returns the logical address of the buffer that is associated with the common buffer that the CommonBuffer parameter specifies.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

Logical addresses are mapped addresses that devices use to access physical memory.

If the driver called WdfDeviceSetAlignmentRequirement to set a buffer alignment requirement, the framework aligns the common buffer according to that alignment requirement.

For more information about common buffers, see Using Common Buffers

Examples

For a code example that uses WdfCommonBufferGetAlignedLogicalAddress, see WdfCommonBufferCreate.

See also

WdfCommonBufferCreate

WdfCommonBufferGetAlignedVirtualAddress

WdfDeviceSetAlignmentRequirement