aboutsummaryrefslogtreecommitdiff
path: root/rust/kernel/lib.rs
diff options
context:
space:
mode:
authorAlice Ryhl <[email protected]>2024-10-16 11:34:25 +0000
committerMiguel Ojeda <[email protected]>2024-10-21 20:34:46 +0200
commit6e86292f212cf121cafe881c18381b5972b18d4f (patch)
treecdff55ee619a34bee1dd4ecf3fff057be7c27ec3 /rust/kernel/lib.rs
parentd4d7c05f9656fd8e14c6977a54986264eb296ec8 (diff)
rust: page: add Rust version of PAGE_ALIGN
This is a useful for helper for working with indices into buffers that consist of several pages. I forgot to include it when I added PAGE_SIZE and PAGE_MASK for the same purpose in commit fc6e66f4696b ("rust: add abstraction for `struct page`"). Reviewed-by: Boqun Feng <[email protected]> Signed-off-by: Alice Ryhl <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Added intra-doc links, formatted comment and replaced "Brackets" with "Parentheses" as discussed in the list. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel/lib.rs')
0 files changed, 0 insertions, 0 deletions