Data Structures | Typedefs | Variables
Packet Library Data Structures
Packet Library

Data Structures

struct  Pktlib_Info
 The structure describes the Packet Library information. More...
struct  Pktlib_Heap
 The structure describes the Packet Library Heaps. More...
struct  Pktlib_HeapIfTable
 The structure describes the Heap Interface Table. More...
struct  Pktlib_HeapCfg
 The structure describes the Heap Configuration. More...
struct  Pktlib_HeapStats
 The structure describes the Heap Statistics. More...

Typedefs

typedef struct Pktlib_Info Pktlib_Info
 The structure describes the Packet Library information.
typedef struct Pktlib_Heap Pktlib_Heap
 The structure describes the Packet Library Heaps.
typedef void * Ti_Pkt
 The packet library exposes the Ti_Pkt as an opaque handle.
typedef void * Pktlib_HeapHandle
 Packet Library Heap Handle.
typedef struct Pktlib_HeapIfTable Pktlib_HeapIfTable
 The structure describes the Heap Interface Table.
typedef struct Pktlib_HeapCfg Pktlib_HeapCfg
 The structure describes the Heap Configuration.
typedef struct Pktlib_HeapStats Pktlib_HeapStats
 The structure describes the Heap Statistics.

Variables

Pktlib_Heap gPktHeaps [PKTLIB_MAX_PACKET_HEAP]
 Global list of all the private heaps which are core specific.
Pktlib_Heap gSuperPktHeaps [PKTLIB_MAX_PACKET_HEAP]
 Global list of all the super heaps which are core specific.
Pktlib_Heap gSharedPktHeaps [PKTLIB_MAX_PACKET_HEAP]
 Global list of all the shared heaps which can be present in the system.

Typedef Documentation

typedef struct Pktlib_Heap Pktlib_Heap

The structure describes the Packet Library Heaps.

The packet library heap has a list of packets with buffers and without buffers.

The structure describes the Heap Configuration.

The configuration is populated and passed to the PKTLIB module when a heap is being created.

The structure describes the Heap Interface Table.

There could exist multiple heaps in the system. Heaps can have different properties depending upon the memory region (cached vs. non-cached) and how the data buffers need to be allocated. The table here provides a well defined interface which allows this information to be registered during heap creation.

The structure describes the Heap Statistics.

Heap statistics reported by the packet library

typedef struct Pktlib_Info Pktlib_Info

The structure describes the Packet Library information.

The packet library keeps certain information per packet. This information is required by the library to provide the required services. This structure is stored in the descriptor. We currently use the top 10 bits of the orignal buffer length and the orignal buffer pointer to store this information.


Copyright 2014, Texas Instruments Incorporated