2024-06-06 19:53:31 -07:00
2024-06-06 19:53:31 -07:00
2024-06-04 00:09:41 -07:00
2024-06-03 23:15:37 -07:00
2024-06-06 19:53:31 -07:00

superfetch

Simple library for translating virtual addresses to physical addresses from usermode.

Example usage

#include <superfetch/superfetch.h>

int main() {
  auto const mm = spf::memory_map::current();
  if (!mm) {
    // Do something with mm.error()
  }

  // Any kernel virtual address.
  void const* const virt = ...;

  std::uint64_t const phys = mm->translate(virt);
  if (!phys) {
    // Do something...
  }

  std::printf("%p -> %zX\n", virt, phys);
}

Installation

To use superfetch, simply add the include directory to your project and include superfetch/superfetch.h.

CMake

If you are using CMake, add this repository as a subdirectory and link to the superfetch target library.

add_subdirectory(path/to/superfetch/repo/dir)
target_link_libraries(my_project_target superfetch)
S
Description
Automated archival mirror of github.com/jonomango/superfetch
Readme MIT
34 KiB
Languages
C++ 94.3%
CMake 5.7%