From 3ec22aa971d4acc397355171a7bf69a2b43905e9 Mon Sep 17 00:00:00 2001 From: Adam Bratschi-Kaye Date: Tue, 2 Mar 2021 22:01:14 +0100 Subject: [PATCH] add link to PAGE_SHIFT in C Co-authored-by: Miguel Ojeda --- rust/kernel/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index 93f0d0979567ef..6ef12992f50a81 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -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.