ROUND_TO_PAGES

ULONG
ROUND_TO_PAGES(

IN ULONG Size
);

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

Parameters

Size

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 page size for the current platform.

Comments

Callers of ROUND_TO_PAGES can be running at any IRQL.