MemoryAccessor 1
A command-line front-end for exploring virtual memory of a linux process by accessing /proc/PID/mem file.
Loading...
Searching...
No Matches
SegmentInfo Struct Reference

A struct to store the information of a memory segment. More...

#include <segmentinfo.h>

Public Attributes

size_t start
 Start address.
 
size_t end
 End address (first address that does not belong to the segment)
 
size_t offset
 
uint8_t mode {0}
 
uint32_t major_id
 Major ID.
 
uint32_t minor_id
 Minor ID.
 
size_t inode_id
 
std::string path
 Path or name.
 

Detailed Description

A struct to store the information of a memory segment.

This struct stores the information of one memory segment in a way it is given in /proc/PID/maps file. It uses its own style of storing the permissions though.

Member Data Documentation

◆ inode_id

size_t SegmentInfo::inode_id

Inode ID if it is a file mapping (e.g., executable from ROM)

◆ mode

uint8_t SegmentInfo::mode {0}

Permissions, are stored as 0000rwx(p/s), where p is 0, s is 1 (private - shared)

◆ offset

size_t SegmentInfo::offset

Offset from the start of the file if it is a file mapping (e.g., executable from ROM)


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