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.h
Go to the documentation of this file.
1// MemoryAccessor - A tool for accessing /proc/PID/mem
2// Copyright (C) 2024 zloymish
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <https://www.gnu.org/licenses/>.
16
24#ifndef MEMORYACCESSOR_SRC_SEGMENTINFO_H_
25#define MEMORYACCESSOR_SRC_SEGMENTINFO_H_
26
27#include <cstdint>
28#include <string>
29
38 size_t start;
39 size_t
41 size_t offset;
43
44 uint8_t mode{0};
46
47 uint32_t major_id;
48 uint32_t minor_id;
49
50 size_t inode_id;
52
53 std::string path;
54};
55
56#endif // MEMORYACCESSOR_SRC_SEGMENTINFO_H_
A struct to store the information of a memory segment.
Definition segmentinfo.h:37
size_t end
End address (first address that does not belong to the segment)
Definition segmentinfo.h:40
uint8_t mode
Definition segmentinfo.h:44
std::string path
Path or name.
Definition segmentinfo.h:53
uint32_t minor_id
Minor ID.
Definition segmentinfo.h:48
size_t inode_id
Definition segmentinfo.h:50
size_t offset
Definition segmentinfo.h:41
size_t start
Start address.
Definition segmentinfo.h:38
uint32_t major_id
Major ID.
Definition segmentinfo.h:47