Skip to content

Rename PhysToVirt trait to PageTableFrameMapping#214

Merged
phil-opp merged 2 commits into
nextfrom
rename-phys-to-virt
Dec 28, 2020
Merged

Rename PhysToVirt trait to PageTableFrameMapping#214
phil-opp merged 2 commits into
nextfrom
rename-phys-to-virt

Conversation

@phil-opp

Copy link
Copy Markdown
Member

The new trait and method names better describe their purpose. Since the implementer must make sure that the returned pointer is valid and accessible, the trait is now unsafe to implement. Because of this requirement we also need to remove the generic implementation of this trait for closures.

(See #213 for an alternative, but unsuccessful, attempt).

@phil-opp phil-opp mentioned this pull request Dec 28, 2020
14 tasks
@phil-opp phil-opp changed the title Replace PhysToVirt with new PageTableFrameMapping trait Rename PhysToVirt trait to PageTableFrameMapping Dec 28, 2020
The new trait and method names better describe their purpose. Since the implementer must make sure that the returned pointer is valid and accessible, the trait is now unsafe to implement. Because of this requirement we also need to remove the generic implementation of this trait for closures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant