Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2020 02:28:39 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r356967 - head/share/man/man9
Message-ID:  <202001220228.00M2SdnS092025@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Wed Jan 22 02:28:39 2020
New Revision: 356967
URL: https://svnweb.freebsd.org/changeset/base/356967

Log:
  Change argument order of epoch_call() to more natural, first function,
  then its argument.
  
  A miss from r356826.

Modified:
  head/share/man/man9/epoch.9

Modified: head/share/man/man9/epoch.9
==============================================================================
--- head/share/man/man9/epoch.9	Wed Jan 22 02:06:34 2020	(r356966)
+++ head/share/man/man9/epoch.9	Wed Jan 22 02:28:39 2020	(r356967)
@@ -26,7 +26,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd December 27, 2019
+.Dd January 16, 2020
 .Dt EPOCH 9
 .Os
 .Sh NAME
@@ -60,6 +60,7 @@ struct epoch_context {
 };
 .Ed
 .Vt typedef "struct epoch_context *epoch_context_t" ;
+.Vt typedef "void epoch_callback_t(epoch_context_t)" ;
 .Bd -literal
 struct epoch_tracker;	/* Opaque */
 .Ed
@@ -82,7 +83,7 @@ struct epoch_tracker;	/* Opaque */
 .Ft void
 .Fn epoch_wait_preempt "epoch_t epoch"
 .Ft void
-.Fn epoch_call "epoch_t epoch" "epoch_context_t ctx" "void (*callback)(epoch_context_t)"
+.Fn epoch_call "epoch_t epoch" "epoch_callback_t callback" "epoch_context_t ctx"
 .Ft void
 .Fn epoch_drain_callbacks "epoch_t epoch"
 .Ft int
@@ -254,7 +255,7 @@ ifa_free(struct ifaddr *ifa)
 {
 
     if (refcount_release(&ifa->ifa_refcnt))
-        epoch_call(net_epoch, &ifa->ifa_epoch_ctx, ifa_destroy);
+        epoch_call(net_epoch, ifa_destroy, &ifa->ifa_epoch_ctx);
 }
 
 void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001220228.00M2SdnS092025>