From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Mon, 26 Aug 2013 09:44:17 +0800 References: <1376376232-2178-1-git-send-email-ordex@autistici.org> <1376376232-2178-5-git-send-email-ordex@autistici.org> In-Reply-To: <1376376232-2178-5-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201308260944.17336.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv3 4/9] batman-adv: add bat_metric_get API function Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking 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