Module Name: src Committed By: riastradh Date: Sat Mar 19 11:54:53 UTC 2022
Modified Files: src/share/man/man9: rnd.9 Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/share/man/man9/rnd.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man9/rnd.9 diff -u src/share/man/man9/rnd.9:1.29 src/share/man/man9/rnd.9:1.30 --- src/share/man/man9/rnd.9:1.29 Mon May 4 15:13:45 2020 +++ src/share/man/man9/rnd.9 Sat Mar 19 11:54:53 2022 @@ -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