diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-03-19 11:54:53 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-03-19 11:54:53 +0000 |
| commit | b2f23986bc461ea1f2c7b9f45d032fc63b597ba3 (patch) | |
| tree | 90879debb7a842db2b5aa2454f3d46645da54515 | |
| parent | 799005bc8ad85a3aed9d1b571dfcb215bd5f38de (diff) | |
rnd(9): Document the serial use of rndsource callbacks.
This simplifies the rndsource API -- no need to lock, unless you're
also coordinating with other driver logic like concurrent
opencrypto(4) requests that share device requests.
| -rw-r--r-- | share/man/man9/rnd.9 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/share/man/man9/rnd.9 b/share/man/man9/rnd.9 index 32742de987b..225e7eab525 100644 --- a/share/man/man9/rnd.9 +++ b/share/man/man9/rnd.9 @@ -1,4 +1,4 @@ -.\" $NetBSD: rnd.9,v 1.29 2020/05/04 15:13:45 wiz Exp $ +.\" $NetBSD: rnd.9,v 1.30 2022/03/19 11:54:53 riastradh Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -165,6 +165,12 @@ not or .Fn rnd_add_uint32 . .El +.Pp +.Nm +issues calls to each source's +.Fa callback +in serial \(em it never issues two calls to the same source's callback +at the same time in two differen threads or on two different CPUs. .It Fn rnd_attach_source "rnd_source" "devname" "type" "flags" Makes .Fa rnd_source |
