NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs
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)   ((arc)->B1.capacity)
 Access c as uint32. More...
 
#define CsArc_2c(arc)   ((arc)->Del.capacity)
 Access 2c as uint32. More...
 
#define CsArc_p(arc)   ((arc)->T1.capacity)
 Access p as uint32. More...
 
#define CsArc_p1(arc)   ((arc)->T2.capacity)
 Access MAX(p,1) as uint32. More...
 

Typedefs

typedef struct CsNode CsNode
 
typedef struct CsList CsList
 A doubly linked list within CS. More...
 
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). More...
 
typedef struct DiskStore DiskStore
 
typedef struct DiskAlloc DiskAlloc
 
typedef struct Cs Cs
 The Content Store (CS). More...
 

Macro Definition Documentation

◆ CsArc_2c

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

Access 2c as uint32.

◆ CsArc_c

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

Access c as uint32.

◆ CsArc_p

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

Access p as uint32.

◆ CsArc_p1

#define CsArc_p1 (   arc)    ((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

◆ DiskAlloc

typedef struct DiskAlloc DiskAlloc

◆ DiskStore

typedef struct DiskStore DiskStore