Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
ao2_container_hash Struct Reference
Collaboration diagram for ao2_container_hash:
Collaboration graph
[legend]

Data Fields

struct hash_bucket buckets [0]
 
struct ao2_container common
 Items common to all containers. More...
 
ao2_hash_fnhash_fn
 
int n_buckets
 

Detailed Description

A hash container in addition to values common to all container types, stores the hash callback function, the number of hash buckets, and the hash bucket heads.

Definition at line 65 of file astobj2_hash.c.

Field Documentation

◆ buckets

struct hash_bucket buckets[0]

Hash bucket array of n_buckets. Variable size.

Definition at line 75 of file astobj2_hash.c.

Referenced by hash_ao2_node_destructor().

◆ common

struct ao2_container common

Items common to all containers.

Note
Must be first in the specific container struct.

Definition at line 70 of file astobj2_hash.c.

Referenced by hash_ao2_node_destructor().

◆ hash_fn

ao2_hash_fn* hash_fn

Definition at line 71 of file astobj2_hash.c.

◆ n_buckets

int n_buckets

Number of hash buckets in this container.

Definition at line 73 of file astobj2_hash.c.

Referenced by __ao2_container_alloc_hash().


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