mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Document the mpsafe argument to callout_init().
PR: 24529 Submitted by: harti brandt <brandt@fokus.gmd.de> Reviewed by: jlemon
This commit is contained in:
parent
3c36aab606
commit
d13241e146
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71883
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user