Expand Minimize
This topic has not yet been rated - Rate this topic

ROUND_TO_PAGES macro

The ROUND_TO_PAGES macro takes a size in bytes and rounds it up to the next full page.

Syntax


ULONG_PTR ROUND_TO_PAGES(
  [in]  ULONG_PTR Size
);

Parameters

Size [in]

Specifies the size in bytes to round up to a page multiple.

Return value

ROUND_TO_PAGES returns the input size rounded up to a multiple of the virtual memory page size for the current platform.

Remarks

Callers of ROUND_TO_PAGES can be running at any IRQL. The caller must ensure that the supplied parameter cannot cause memory overflow.

Requirements

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

IRQL

Any level

 

 

Send comments about this topic to Microsoft

Build date: 5/2/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.