INSEE 05.04.2011
Interconnection Nertworks Simulation and Evaluation Environment
|
Declaration of FSIN functions for packet management. More...
Go to the source code of this file.
Functions | |
void | pkt_init () |
void | free_pkt (unsigned long n) |
unsigned long | get_pkt () |
Declaration of FSIN functions for packet management.
void free_pkt | ( | unsigned long | n | ) |
Frees a packet.
Add the packet id. to the free packets
n | The id of the packet to free. |
unsigned long get_pkt | ( | ) |
Get a free packet.
void pkt_init | ( | ) |
Initiates the memory allocation & the free packets structure.
In pkt_space we allocate all the space needed for packet contain. This way our Memory needs are always the same and we must not alloc and free memory each time we use a packet.