NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
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.

Functions

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

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.