diff options
author | jimharris <jimharris@FreeBSD.org> | 2012-11-01 21:00:13 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2012-11-01 21:00:13 +0000 |
commit | fa2f4d5744edf900713d9c1269cc78d9cd3f0bc8 (patch) | |
tree | fd805602f328e2cd8c477833c42e4d57e855d797 | |
parent | 91507a2ac1123bdfadf1f59276823e3f7adf8435 (diff) | |
download | FreeBSD-src-fa2f4d5744edf900713d9c1269cc78d9cd3f0bc8.zip FreeBSD-src-fa2f4d5744edf900713d9c1269cc78d9cd3f0bc8.tar.gz |
Add descriptions for callout_reset_on and callout_schedule_on and
their curcpu variants.
Discussed with: mav, davide
MFC after: 1 week
-rw-r--r-- | share/man/man9/timeout.9 | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/share/man/man9/timeout.9 b/share/man/man9/timeout.9 index ddc66b5..543d198 100644 --- a/share/man/man9/timeout.9 +++ b/share/man/man9/timeout.9 @@ -29,7 +29,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 2, 2008 +.Dd November 1, 2012 .Dt TIMEOUT 9 .Os .Sh NAME @@ -42,7 +42,11 @@ .Nm callout_stop , .Nm callout_drain , .Nm callout_reset , +.Nm callout_reset_on , +.Nm callout_reset_curcpu , .Nm callout_schedule , +.Nm callout_schedule_on , +.Nm callout_schedule_curcpu , .Nm callout_pending , .Nm callout_active , .Nm callout_deactivate @@ -75,8 +79,18 @@ struct callout_handle handle = CALLOUT_HANDLE_INITIALIZER(&handle) .Ft int .Fn callout_reset "struct callout *c" "int ticks" "timeout_t *func" "void *arg" .Ft int +.Fn callout_reset_on "struct callout *c" "int ticks" "timeout_t *func" \ +"void *arg" "int cpu" +.Ft int +.Fn callout_reset_curcpu "struct callout *c" "int ticks" "timeout_t *func" \ +"void *arg" +.Ft int .Fn callout_schedule "struct callout *c" "int ticks" .Ft int +.Fn callout_schedule_on "struct callout *c" "int ticks" "int cpu" +.Ft int +.Fn callout_schedule_curcpu "struct callout *c" "int ticks" +.Ft int .Fn callout_pending "struct callout *c" .Ft int .Fn callout_active "struct callout *c" @@ -302,6 +316,26 @@ and parameters extracted from the callout structure (though possibly with lower overhead). .Pp +The functions +.Fn callout_reset_on +and +.Fn callout_schedule_on +are equivalent to +.Fn callout_reset +and +.Fn callout_schedule +but take an extra parameter specifying the target CPU for the callout. +.Pp +The functions +.Fn callout_reset_curcpu +and +.Fn callout_schedule_curcpu +are wrappers for +.Fn callout_reset_on +and +.Fn callout_schedule_on +using the current CPU as the target CPU. +.Pp The macros .Fn callout_pending , .Fn callout_active |