Lock-free cursor creation

This commit is contained in:
Zhang Junyang
2024-11-04 10:16:06 +08:00
committed by Tate, Hongliang Tian
parent 0ef55a396f
commit b2b00bdfd2
2 changed files with 33 additions and 28 deletions

View File

@ -176,7 +176,7 @@ where
/// The caller must ensure that the physical address is valid and points to
/// a forgotten page table node. A forgotten page table node can only be
/// restored once. The level must match the level of the page table node.
unsafe fn from_raw_parts(paddr: Paddr, level: PagingLevel) -> Self {
pub(super) unsafe fn from_raw_parts(paddr: Paddr, level: PagingLevel) -> Self {
Self {
raw: paddr,
level,