aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2020-01-22 02:28:39 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2020-01-22 02:28:39 +0000
commit1d11092814b84f7f8dce47777d4c1e1327db46dd (patch)
tree1e43772a2ba76d98c7f848d65f65c24b522521ee /share/man/man9
parent0a90eb9f2faa52ad0258afd5e59dc4135464f7ad (diff)
downloadsrc-1d11092814b84f7f8dce47777d4c1e1327db46dd.tar.gz
src-1d11092814b84f7f8dce47777d4c1e1327db46dd.zip
Change argument order of epoch_call() to more natural, first function,
then its argument. A miss from r356826.
Notes
Notes: svn path=/head/; revision=356967
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/epoch.97
1 files changed, 4 insertions, 3 deletions
diff --git a/share/man/man9/epoch.9 b/share/man/man9/epoch.9
index ca3886c9860c..7ea7dec0471e 100644
--- a/share/man/man9/epoch.9
+++ b/share/man/man9/epoch.9
@@ -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