#include <mesh.h>
Public Attributes | |
int(* | copy_node )(struct hlist_node *p, struct mesh_table *newtbl) |
atomic_t | entries |
void(* | free_node )(struct hlist_node *p, bool free_leafs) |
spinlock_t | gates_lock |
struct hlist_head * | hash_buckets |
unsigned int | hash_mask |
__u32 | hash_rnd |
spinlock_t * | hashwlock |
struct hlist_head * | known_gates |
int | mean_chain_len |
struct rcu_head | rcu_head |
int | size_order |
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 132 of file kernel-3.2/mesh.h.
int(* mesh_table::copy_node)(struct hlist_node *p, struct mesh_table *newtbl) |
Definition at line 140 of file kernel-3.2/mesh.h.
atomic_t mesh_table::entries |
Definition at line 138 of file kernel-3.2/mesh.h.
void(* mesh_table::free_node)(struct hlist_node *p, bool free_leafs) |
Definition at line 139 of file kernel-3.2/mesh.h.
spinlock_t mesh_table::gates_lock |
Definition at line 144 of file kernel-3.2/mesh.h.
struct hlist_head * mesh_table::hash_buckets |
Definition at line 134 of file kernel-3.2/mesh.h.
unsigned int mesh_table::hash_mask |
Definition at line 136 of file kernel-3.2/mesh.h.
Definition at line 137 of file kernel-3.2/mesh.h.
spinlock_t * mesh_table::hashwlock |
Definition at line 135 of file kernel-3.2/mesh.h.
struct hlist_head * mesh_table::known_gates |
Definition at line 143 of file kernel-3.2/mesh.h.
Definition at line 142 of file kernel-3.2/mesh.h.
struct rcu_head mesh_table::rcu_head |
Definition at line 146 of file kernel-3.2/mesh.h.
Definition at line 141 of file kernel-3.2/mesh.h.