NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Functions
alloc.h File Reference
#include "../core/common.h"
#include <rte_bitmap.h>

Go to the source code of this file.

Data Structures

struct  DiskAlloc
 Disk slot allocator. More...
 

Typedefs

typedef struct DiskAlloc DiskAlloc
 Disk slot allocator. More...
 

Functions

DiskAllocDiskAlloc_New (uint64_t min, uint64_t max, int numaSocket)
 Create DiskAlloc. More...
 

Typedef Documentation

◆ DiskAlloc

typedef struct DiskAlloc DiskAlloc

Disk slot allocator.

This data structure is non-thread-safe.

Function Documentation

◆ DiskAlloc_New()

DiskAlloc* DiskAlloc_New ( uint64_t  min,
uint64_t  max,
int  numaSocket 
)

Create DiskAlloc.

Parameters
mininclusive minimum disk slot number.
maxinclusive maximum disk slot number.
numaSocketwhere to allocate memory.