Skip to content

Commit b0a1419

Browse files
committed
add docs for PTEFlags
1 parent 70da8e5 commit b0a1419

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

os/src/mm/page_table.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,21 @@ use bitflags::*;
88
bitflags! {
99
/// page table entry flags
1010
pub struct PTEFlags: u8 {
11+
/// Valid
1112
const V = 1 << 0;
13+
/// Readable
1214
const R = 1 << 1;
15+
/// Writable
1316
const W = 1 << 2;
17+
/// eXecutable
1418
const X = 1 << 3;
19+
/// User
1520
const U = 1 << 4;
21+
/// Global
1622
const G = 1 << 5;
23+
/// Accessed
1724
const A = 1 << 6;
25+
/// Dirty
1826
const D = 1 << 7;
1927
}
2028
}

0 commit comments

Comments
 (0)