On Tuesday, August 13, 2013 14:43:47 Antonio Quartulli wrote:
+static uint32_t batadv_iv_ogm_metric_get(struct batadv_neigh_node *neigh_node) +{
- if (!neigh_node)
return 0;
- return neigh_node->bat_iv.tq_avg;
+}
Kernel doc ?
diff --git a/types.h b/types.h index 0141261..2b5b1c1 100644 --- a/types.h +++ b/types.h @@ -1002,6 +1002,7 @@ struct batadv_algo_ops { void (*bat_primary_iface_set)(struct batadv_hard_iface *hard_iface); void (*bat_ogm_schedule)(struct batadv_hard_iface *hard_iface); void (*bat_ogm_emit)(struct batadv_forw_packet *forw_packet);
- uint32_t (*bat_metric_get)(struct batadv_neigh_node *neigh_node); /* orig_node handling API */ void (*bat_orig_print)(struct batadv_priv *priv, struct seq_file *seq);
};
Kernel doc ?
Cheers, Marek