INSEE 05.04.2011
Interconnection Nertworks Simulation and Evaluation Environment
Functions
C:/cygwin/home/Javier/insee/src/pkt_mem.h File Reference

Declaration of FSIN functions for packet management. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void pkt_init ()
void free_pkt (unsigned long n)
unsigned long get_pkt ()

Detailed Description

Declaration of FSIN functions for packet management.


Function Documentation

void free_pkt ( unsigned long  n)

Frees a packet.

Add the packet id. to the free packets

Parameters:
nThe id of the packet to free.
unsigned long get_pkt ( )

Get a free packet.

Returns:
The id of the last used 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.