mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-15 16:26:48 +00:00
Correct a small syntax error
This commit is contained in:
parent
bebfc360da
commit
fda05e9e23
@ -59,9 +59,9 @@ impl<M: PageMeta> Page<M> {
|
||||
let vaddr = mapping::page_to_meta::<PagingConsts>(paddr);
|
||||
let ptr = vaddr as *const MetaSlot;
|
||||
|
||||
// SAFETY: The aligned pointer points to a initialized `MetaSlot`.
|
||||
// SAFETY: The aligned pointer points to an initialized `MetaSlot`.
|
||||
let usage = unsafe { &(*ptr).usage };
|
||||
// SAFETY: The aligned pointer points to a initialized `MetaSlot`.
|
||||
// SAFETY: The aligned pointer points to an initialized `MetaSlot`.
|
||||
let ref_count = unsafe { &(*ptr).ref_count };
|
||||
|
||||
usage
|
||||
|
Loading…
x
Reference in New Issue
Block a user