MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / address

Method address

api/src/mm.rs:118–120  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

116 const ACCESS_FLAGS: MappingFlags = MappingFlags::READ.union(MappingFlags::WRITE);
117
118 pub fn address(&self) -> VirtAddr {
119 VirtAddr::from_ptr_of(self.0)
120 }
121
122 pub fn cast<U>(self) -> UserPtr<U> {
123 UserPtr(self.0 as *mut U)

Callers 8

read_from_userMethod · 0.80
get_as_mutMethod · 0.80
get_as_mut_sliceMethod · 0.80
get_as_refMethod · 0.80
get_as_sliceMethod · 0.80
pushMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected