swap
0.1.0
In swap::pagesize
Constants
TRANSPARENT_HUGEPAGE_SIZE_PATH
Statics
PAGESIZE_SHIFT
THP_SIZE
Functions
addr_to_page_idx
bytes_to_pages
is_hugepage_aligned
is_page_aligned
load_transparent_hugepage_size
page_base_addr
page_idx_to_addr
pages_to_bytes
round_up_hugepage_size
?
Settings
Function
swap
::
pagesize
::
is_page_aligned
Copy item path
source
·
[
−
]
pub fn is_page_aligned(v:
usize
) ->
bool
Expand description
Returns whether the address/size is aligned with page.