CNDP  22.08.0
hmap Struct Reference

#include <hmap.h>

Public Member Functions

 TAILQ_ENTRY (hmap) next
 

Data Fields

char name [HMAP_MAX_NAME_SIZE]
 
uint32_t capacity
 
uint32_t max_capacity
 
uint32_t curr_capacity
 
pthread_mutex_t mutex
 
hmap_funcs_t fns
 
hmap_kvp_tmap
 

Detailed Description

A structure used to retrieve information of a hmap

Definition at line 89 of file hmap.h.

Member Function Documentation

◆ TAILQ_ENTRY()

TAILQ_ENTRY ( hmap  )

List of next hmap entries

Field Documentation

◆ name

char name[HMAP_MAX_NAME_SIZE]

Name of hmap

Definition at line 91 of file hmap.h.

◆ capacity

uint32_t capacity

Total capacity

Definition at line 92 of file hmap.h.

◆ max_capacity

uint32_t max_capacity

Max capacity should not be exceeded

Definition at line 93 of file hmap.h.

◆ curr_capacity

uint32_t curr_capacity

Current capacity

Definition at line 94 of file hmap.h.

◆ mutex

pthread_mutex_t mutex

Mutex for hmap

Definition at line 95 of file hmap.h.

◆ fns

hmap_funcs_t fns

Function pointers

Definition at line 96 of file hmap.h.

◆ map

hmap_kvp_t* map

Key-value-pair 16 bytes total 8 byte data

Definition at line 97 of file hmap.h.


The documentation for this struct was generated from the following file: