LSPlt  LSPosed Developers
lsplt::v2::MapInfo Struct Reference

An entry that describes a line in /proc/self/maps. You can obtain a list of these entries by calling Scan(). More...

#include <lsplt.hpp>

Static Public Member Functions

static std::vector< MapInfoScan (std::string_view pid="self")
 Scans /proc/self/maps and returns a list of MapInfo entries. This is useful to find out the inode of the library to hook. More...
 

Data Fields

uintptr_t start
 The start address of the memory region. More...
 
uintptr_t end
 The end address of the memory region. More...
 
uint8_t perms
 The permissions of the memory region. This is a bit mask of the following values: More...
 
bool is_private
 Whether the memory region is private. More...
 
uintptr_t offset
 The offset of the memory region. More...
 
dev_t dev
 The device number of the memory region. Major can be obtained by #major() Minor can be obtained by #minor() More...
 
ino_t inode
 The inode number of the memory region. More...
 
std::string path
 The path of the memory region. More...
 

Detailed Description

An entry that describes a line in /proc/self/maps. You can obtain a list of these entries by calling Scan().

Definition at line 15 of file lsplt.hpp.

Member Function Documentation

◆ Scan()

static std::vector<MapInfo> lsplt::v2::MapInfo::Scan ( std::string_view  pid = "self")
static

Scans /proc/self/maps and returns a list of MapInfo entries. This is useful to find out the inode of the library to hook.

Parameters
[in]pidThe process id to scan. This is "self" by default.
Returns
A list of MapInfo entries.

Field Documentation

◆ dev

dev_t lsplt::v2::MapInfo::dev

The device number of the memory region. Major can be obtained by #major() Minor can be obtained by #minor()

Definition at line 32 of file lsplt.hpp.

◆ end

uintptr_t lsplt::v2::MapInfo::end

The end address of the memory region.

Definition at line 19 of file lsplt.hpp.

◆ inode

ino_t lsplt::v2::MapInfo::inode

The inode number of the memory region.

Definition at line 34 of file lsplt.hpp.

◆ is_private

bool lsplt::v2::MapInfo::is_private

Whether the memory region is private.

Definition at line 26 of file lsplt.hpp.

◆ offset

uintptr_t lsplt::v2::MapInfo::offset

The offset of the memory region.

Definition at line 28 of file lsplt.hpp.

◆ path

std::string lsplt::v2::MapInfo::path

The path of the memory region.

Definition at line 36 of file lsplt.hpp.

◆ perms

uint8_t lsplt::v2::MapInfo::perms

The permissions of the memory region. This is a bit mask of the following values:

  • PROT_READ
  • PROT_WRITE
  • PROT_EXEC

Definition at line 24 of file lsplt.hpp.

◆ start

uintptr_t lsplt::v2::MapInfo::start

The start address of the memory region.

Definition at line 17 of file lsplt.hpp.


The documentation for this struct was generated from the following file: