Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
mesh_table Struct Reference

#include <mesh.h>

Data Fields

struct hlist_headhash_buckets
 
spinlock_thashwlock
 
unsigned int hash_mask
 
__u32 hash_rnd
 
atomic_t entries
 
void(* free_node )(struct hlist_node *p, bool free_leafs)
 
int(* copy_node )(struct hlist_node *p, struct mesh_table *newtbl)
 
int size_order
 
int mean_chain_len
 
struct hlist_headknown_gates
 
spinlock_t gates_lock
 
struct rcu_head rcu_head
 

Detailed Description

struct mesh_table

: array of hash buckets of the table : array of locks to protect write operations, one per bucket : 2^size_order - 1, used to compute hash idx : random value used for hash computations : number of entries in the table : function to free nodes of the table : function to copy nodes of the table : determines size of the table, there will be 2^size_order hash buckets : maximum average length for the hash buckets' list, if it is reached, the table will grow : list of known mesh gates and their mpaths by the station. The gate's mpath may or may not be resolved and active.

rcu_head: RCU head to free the table

Definition at line 159 of file mesh.h.

Field Documentation

int(* copy_node)(struct hlist_node *p, struct mesh_table *newtbl)

Definition at line 167 of file mesh.h.

atomic_t entries

Definition at line 165 of file mesh.h.

void(* free_node)(struct hlist_node *p, bool free_leafs)

Definition at line 166 of file mesh.h.

spinlock_t gates_lock

Definition at line 171 of file mesh.h.

struct hlist_head* hash_buckets

Definition at line 161 of file mesh.h.

unsigned int hash_mask

Definition at line 163 of file mesh.h.

__u32 hash_rnd

Definition at line 164 of file mesh.h.

spinlock_t* hashwlock

Definition at line 162 of file mesh.h.

struct hlist_head* known_gates

Definition at line 170 of file mesh.h.

int mean_chain_len

Definition at line 169 of file mesh.h.

struct rcu_head rcu_head

Definition at line 173 of file mesh.h.

int size_order

Definition at line 168 of file mesh.h.


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