git: 7563019bc693 - main - Add if_try_ref() to simplify refcount handling inside epoch.
Hans Petter Selasky
hps at selasky.org
Sat Mar 6 10:33:58 UTC 2021
On 2/23/21 12:38 AM, Alexander V. Chernikov wrote:
> The branch main has been updated by melifaro:
> diff --git a/sys/net/if_var.h b/sys/net/if_var.h
> index 291a7781d73c..33a737880a8d 100644
> --- a/sys/net/if_var.h
> +++ b/sys/net/if_var.h
> @@ -661,6 +661,7 @@ void if_link_state_change(struct ifnet *, int);
> int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3);
> void if_ref(struct ifnet *);
> void if_rele(struct ifnet *);
> +bool if_try_ref(struct ifnet *);
I think you should add __result_use_check for this prototype!?
> int if_setlladdr(struct ifnet *, const u_char *, int);
> int if_tunnel_check_nesting(struct ifnet *, struct mbuf *, uint32_t, int);
> void if_up(struct ifnet *);
>
--HPS
More information about the dev-commits-src-main
mailing list