Defines a binary file. More...
#include <binary.h>
Data Fields | |
struct sBinary * | Next |
Pointer used by the kernel. | |
char * | TruePath |
True path of the file. | |
char * | Interpreter |
Interpreter used to load the file. | |
Uint | Entry |
Entrypoint of the binary (at requested base);. | |
Uint | Base |
File's requested load base. | |
int | ReferenceCount |
Number of times this binary has been mapped. | |
int | NumPages |
Number of pages defined in the file. | |
tBinaryPage | Pages [] |
Array of pages defined by this binary. |
Defines a binary file.
This structure defines and maintains the state of a binary during and after loading. Before the binary is loaded into memory (when it has just been returned from tBinaryType.Load) the Pages array will contain the file offsets to the page data in the Physical fields (or -1 for uninitialised data) and the Size fields define how much data is stored in-file for the page (to allow partial pages to be loaded from disk) Once the binary is loaded (NOTE: Drivers do not need to know about this, it is here for information only) the Physical fields now contain the physical addresses of the pages filled with the data. The Virtual fields contain the preferred virtual address of the pages (a given process may have these pages mapped to a different location).
char* tBinary::Interpreter |
Interpreter used to load the file.
Array of pages defined by this binary.
char* tBinary::TruePath |
True path of the file.