Skip to content

Commit

Permalink
add link to PAGE_SHIFT in C
Browse files Browse the repository at this point in the history
Co-authored-by: Miguel Ojeda <[email protected]>
  • Loading branch information
adamrk and ojeda authored Mar 2, 2021
1 parent 41325ef commit 3ec22aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ pub use crate::error::{Error, KernelResult};
pub use crate::types::{CStr, Mode};

/// Page size defined in terms of the `PAGE_SHIFT` macro from C.
///
/// [`PAGE_SHIFT`]: ../../../include/asm-generic/page.h
pub const PAGE_SIZE: usize = 1 << bindings::PAGE_SHIFT;

/// The top level entrypoint to implementing a kernel module.
Expand Down

0 comments on commit 3ec22aa

Please sign in to comment.