NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
cs-struct.h File Reference
#include "../core/common.h"
#include "cs-enum.h"

Go to the source code of this file.

Data Structures

struct  CsNode
 The prev-next pointers common in CsEntry and CsList. More...
struct  CsList
 A doubly linked list within CS. More...
struct  CsArc
 Lists for Adaptive Replacement Cache (ARC). More...
struct  Cs
 The Content Store (CS). More...

Macros

#define CsArc_c(arc)
 Access c as uint32.
#define CsArc_2c(arc)
 Access 2c as uint32.
#define CsArc_p(arc)
 Access p as uint32.
#define CsArc_p1(arc)
 Access MAX(p,1) as uint32.

Typedefs

typedef struct CsNode CsNode
typedef struct CsList CsList
 A doubly linked list within CS.
typedef struct CsEntry CsEntry
typedef void(* CsArc_MoveCb) (CsEntry *entry, CsListID src, CsListID dst, uintptr_t ctx)
typedef struct CsArc CsArc
 Lists for Adaptive Replacement Cache (ARC).
typedef struct Cs Cs
 The Content Store (CS).

Macro Definition Documentation

◆ CsArc_2c

#define CsArc_2c ( arc)
Value:
((arc)->Del.capacity)

Access 2c as uint32.

◆ CsArc_c

#define CsArc_c ( arc)
Value:
((arc)->B1.capacity)

Access c as uint32.

◆ CsArc_p

#define CsArc_p ( arc)
Value:
((arc)->T1.capacity)

Access p as uint32.

◆ CsArc_p1

#define CsArc_p1 ( arc)
Value:
((arc)->T2.capacity)

Access MAX(p,1) as uint32.

Typedef Documentation

◆ Cs

typedef struct Cs Cs

The Content Store (CS).

This is embedded in Pcct struct.

◆ CsArc

typedef struct CsArc CsArc

Lists for Adaptive Replacement Cache (ARC).

◆ CsArc_MoveCb

typedef void(* CsArc_MoveCb) (CsEntry *entry, CsListID src, CsListID dst, uintptr_t ctx)

◆ CsEntry

typedef struct CsEntry CsEntry

◆ CsList

typedef struct CsList CsList

A doubly linked list within CS.

◆ CsNode

typedef struct CsNode CsNode