diff options
author | ben <ben@FreeBSD.org> | 2001-01-31 12:17:45 +0000 |
---|---|---|
committer | ben <ben@FreeBSD.org> | 2001-01-31 12:17:45 +0000 |
commit | e8881fd42645233f9fbaa07357fcab52f7af647d (patch) | |
tree | 28a4d273e38f96a29ad837799e48b572ec6ad340 | |
parent | ac66988baa43c0f898523d6c14996f5df68e1e29 (diff) | |
download | FreeBSD-src-e8881fd42645233f9fbaa07357fcab52f7af647d.zip FreeBSD-src-e8881fd42645233f9fbaa07357fcab52f7af647d.tar.gz |
Document the mpsafe argument to callout_init().
PR: 24529
Submitted by: harti brandt <brandt@fokus.gmd.de>
Reviewed by: jlemon
-rw-r--r-- | share/man/man9/timeout.9 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/share/man/man9/timeout.9 b/share/man/man9/timeout.9 index 2040fe3..58581be 100644 --- a/share/man/man9/timeout.9 +++ b/share/man/man9/timeout.9 @@ -65,7 +65,7 @@ struct callout_handle handle = CALLOUT_HANDLE_INITIALIZER(&handle) .Ft void .Fn untimeout "timeout_t *func" "void *arg" "struct callout_handle handle" .Ft void -.Fn callout_init "struct callout *c" +.Fn callout_init "struct callout *c" "int mpsafe" .Ft void .Fn callout_stop "struct callout *c" .Ft void @@ -169,6 +169,14 @@ initializes a callout so it can be passed to or .Fn callout_reset without any side effects. +If the +.Fa mpsafe +argument is zero, +the callout structure is not considered to be +.Dq multi-processor safe ; +that is, +the Giant lock will be acquired before calling the callout function, +and released when the callout function returns. .Pp The function .Fn callout_stop |