tBinary Struct Reference

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.

Detailed Description

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).


Field Documentation

Interpreter used to load the file.

Note:
This can be either requested by the individual file, or a per-driver option

Array of pages defined by this binary.

Note:
Contains NumPages entries

True path of the file.

Note:
Used to uniquely identify the loaded binary to reduce in-memory duplication.

The documentation for this struct was generated from the following file:
Generated on Mon Feb 14 15:21:31 2011 for Acess2 by  doxygen 1.6.3