
Go to the source code of this file.
Classes | |
| struct | Sat_MmFixed_t_ |
| DECLARATIONS ///. More... | |
| struct | Sat_MmFlex_t_ |
| struct | Sat_MmStep_t_ |
Functions | |
| Sat_MmFixed_t * | Sat_MmFixedStart (int nEntrySize) |
| FUNCTION DEFINITIONS ///. | |
| void | Sat_MmFixedStop (Sat_MmFixed_t *p, int fVerbose) |
| char * | Sat_MmFixedEntryFetch (Sat_MmFixed_t *p) |
| void | Sat_MmFixedEntryRecycle (Sat_MmFixed_t *p, char *pEntry) |
| void | Sat_MmFixedRestart (Sat_MmFixed_t *p) |
| int | Sat_MmFixedReadMemUsage (Sat_MmFixed_t *p) |
| Sat_MmFlex_t * | Sat_MmFlexStart () |
| void | Sat_MmFlexStop (Sat_MmFlex_t *p, int fVerbose) |
| char * | Sat_MmFlexEntryFetch (Sat_MmFlex_t *p, int nBytes) |
| int | Sat_MmFlexReadMemUsage (Sat_MmFlex_t *p) |
| Sat_MmStep_t * | Sat_MmStepStart (int nSteps) |
| void | Sat_MmStepStop (Sat_MmStep_t *p, int fVerbose) |
| void | Sat_MmStepRestart (Sat_MmStep_t *p) |
| char * | Sat_MmStepEntryFetch (Sat_MmStep_t *p, int nBytes) |
| void | Sat_MmStepEntryRecycle (Sat_MmStep_t *p, char *pEntry, int nBytes) |
| int | Sat_MmStepReadMemUsage (Sat_MmStep_t *p) |
| char * Sat_MmFixedEntryFetch | ( | Sat_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 169 of file satMem.c.

| void Sat_MmFixedEntryRecycle | ( | Sat_MmFixed_t * | p, |
| char * | pEntry ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 220 of file satMem.c.

| int Sat_MmFixedReadMemUsage | ( | Sat_MmFixed_t * | p | ) |
| void Sat_MmFixedRestart | ( | Sat_MmFixed_t * | p | ) |
Function*************************************************************
Synopsis []
Description [Relocates all the memory except the first chunk.]
SideEffects []
SeeAlso []
Definition at line 240 of file satMem.c.

| Sat_MmFixed_t * Sat_MmFixedStart | ( | int | nEntrySize | ) |
FUNCTION DEFINITIONS ///.
GLOBAL VARIABLES ///.
Function*************************************************************
Synopsis [Allocates memory pieces of fixed size.]
Description [The size of the chunk is computed as the minimum of 1024 entries and 64K. Can only work with entry size at least 4 byte long.]
SideEffects []
SeeAlso []
Definition at line 101 of file satMem.c.


| void Sat_MmFixedStop | ( | Sat_MmFixed_t * | p, |
| int | fVerbose ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 140 of file satMem.c.

| char * Sat_MmFlexEntryFetch | ( | Sat_MmFlex_t * | p, |
| int | nBytes ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 360 of file satMem.c.
| int Sat_MmFlexReadMemUsage | ( | Sat_MmFlex_t * | p | ) |
| Sat_MmFlex_t * Sat_MmFlexStart | ( | ) |
Function*************************************************************
Synopsis [Allocates entries of flexible size.]
Description [Can only work with entry size at least 4 byte long.]
SideEffects []
SeeAlso []
Definition at line 299 of file satMem.c.

| void Sat_MmFlexStop | ( | Sat_MmFlex_t * | p, |
| int | fVerbose ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 331 of file satMem.c.
| char * Sat_MmStepEntryFetch | ( | Sat_MmStep_t * | p, |
| int | nBytes ) |
Function*************************************************************
Synopsis [Creates the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 523 of file satMem.c.

| void Sat_MmStepEntryRecycle | ( | Sat_MmStep_t * | p, |
| char * | pEntry, | ||
| int | nBytes ) |
Function*************************************************************
Synopsis [Recycles the entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 552 of file satMem.c.

| int Sat_MmStepReadMemUsage | ( | Sat_MmStep_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
| void Sat_MmStepRestart | ( | Sat_MmStep_t * | p | ) |
| Sat_MmStep_t * Sat_MmStepStart | ( | int | nSteps | ) |
Function*************************************************************
Synopsis [Starts the hierarchical memory manager.]
Description [This manager can allocate entries of any size. Iternally they are mapped into the entries with the number of bytes equal to the power of 2. The smallest entry size is 8 bytes. The next one is 16 bytes etc. So, if the user requests 6 bytes, he gets 8 byte entry. If we asks for 25 bytes, he gets 32 byte entry etc. The input parameters "nSteps" says how many fixed memory managers are employed internally. Calling this procedure with nSteps equal to 10 results in 10 hierarchically arranged internal memory managers, which can allocate up to 4096 (1Kb) entries. Requests for larger entries are handed over to malloc() and then ABC_FREE()ed.]
SideEffects []
SeeAlso []
Definition at line 434 of file satMem.c.

| void Sat_MmStepStop | ( | Sat_MmStep_t * | p, |
| int | fVerbose ) |