ROUND_TO_PAGES macro (wdm.h)
The ROUND_TO_PAGES macro takes a size in bytes and rounds it up to the next full page.
Syntax
void ROUND_TO_PAGES(
[in] Size
);
Parameters
[in] Size
Specifies the size in bytes to round up to a page multiple.
Return value
None
Remarks
ROUND_TO_PAGES returns a ULONG_PTR with the input size rounded up to a multiple of the virtual memory page size for the current platform.
Callers of ROUND_TO_PAGES can be running at any IRQL. The caller must ensure that the supplied parameter cannot cause memory overflow.
Requirements
Requirement | Value |
---|---|
Header | wdm.h |
IRQL | Any level |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for