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>
|
| uintptr_t | start |
| | The start address of the memory region.
|
| |
| uintptr_t | end |
| | The end address of the memory region.
|
| |
| uint8_t | perms |
| | The permissions of the memory region. This is a bit mask of the following values:
|
| |
| bool | is_private |
| | Whether the memory region is private.
|
| |
| uintptr_t | offset |
| | The offset of the memory region.
|
| |
| dev_t | dev |
| | The device number of the memory region. Major can be obtained by #major() Minor can be obtained by #minor()
|
| |
| ino_t | inode |
| | The inode number of the memory region.
|
| |
| std::string | path |
| | The path of the memory region.
|
| |
An entry that describes a line in /proc/self/maps. You can obtain a list of these entries by calling Scan().
Definition at line 16 of file lsplt.hpp.
◆ Scan()
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] | pid | The process id to scan. This is "self" by default. |
- Returns
- A list of MapInfo entries.
◆ 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 33 of file lsplt.hpp.
◆ end
| uintptr_t lsplt::v2::MapInfo::end |
The end address of the memory region.
Definition at line 20 of file lsplt.hpp.
◆ inode
| ino_t lsplt::v2::MapInfo::inode |
The inode number of the memory region.
Definition at line 35 of file lsplt.hpp.
◆ is_private
| bool lsplt::v2::MapInfo::is_private |
Whether the memory region is private.
Definition at line 27 of file lsplt.hpp.
◆ offset
| uintptr_t lsplt::v2::MapInfo::offset |
The offset of the memory region.
Definition at line 29 of file lsplt.hpp.
◆ path
The path of the memory region.
Definition at line 37 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 25 of file lsplt.hpp.
◆ start
| uintptr_t lsplt::v2::MapInfo::start |
The start address of the memory region.
Definition at line 18 of file lsplt.hpp.
The documentation for this struct was generated from the following file: