Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mm/virtualrange: introduce the VRangeAlloc type #474

Merged
merged 2 commits into from
Oct 2, 2024

Commits on Sep 30, 2024

  1. mm/virtualrange: introduce the VRangeAlloc type

    Introduce a new smart pointer type for virtual range allocations. The
    new type automatically frees the virtual range from the correct
    allocator on drop. This significantly simplifies the logic for the
    PerCPUPageMappingGuard methods.
    
    Signed-off-by: Carlos López <[email protected]>
    00xc committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    977fc9f View commit details
    Browse the repository at this point in the history
  2. mm/ptguards: use iterator instead of slice indexing

    Zip two iterators instead of manually indexing into a slice in
    PerCPUPageMappingGuard::create_4k_pages(), as it is more conventional
    Rust.
    
    Signed-off-by: Carlos López <[email protected]>
    00xc committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c614650 View commit details
    Browse the repository at this point in the history