Module Name:    src
Committed By:   pgoyette
Date:           Thu Jul 12 00:07:36 UTC 2012

Modified Files:
        src/share/man/man9: rnd.9

Log Message:
More updates, since the structure name has changed from rndsourc_element_t
to krndsource_t.  While here, add RND_TYPE_ENV to the list of source types.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 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.21 src/share/man/man9/rnd.9:1.22
--- src/share/man/man9/rnd.9:1.21	Wed Jul 11 18:17:50 2012
+++ src/share/man/man9/rnd.9	Thu Jul 12 00:07:36 2012
@@ -1,4 +1,4 @@
-.\"	$NetBSD: rnd.9,v 1.21 2012/07/11 18:17:50 pgoyette Exp $
+.\"	$NetBSD: rnd.9,v 1.22 2012/07/12 00:07:36 pgoyette Exp $
 .\"
 .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -40,13 +40,13 @@
 .Sh SYNOPSIS
 .In sys/rnd.h
 .Ft void
-.Fn rnd_attach_source "rndsource_element_t *rnd_source" "char *devname" "uint32_t source_type" "uint32_t flags"
+.Fn rnd_attach_source "krndsource_t *rnd_source" "char *devname" "uint32_t source_type" "uint32_t flags"
 .Ft void
-.Fn rnd_detach_source "rndsource_element_t *rnd_source"
+.Fn rnd_detach_source "krndsource_t *rnd_source"
 .Ft void
-.Fn rnd_add_data "rndsource_element_t *rnd_source" "void *data" "uint32_t len" "uint32_t entropy"
+.Fn rnd_add_data "krndsource_t *rnd_source" "void *data" "uint32_t len" "uint32_t entropy"
 .Ft void
-.Fn rnd_add_uint32 "rndsource_element_t *rnd_source" "uint32_t datum"
+.Fn rnd_add_uint32 "krndsource_t *rnd_source" "uint32_t datum"
 .Sh DESCRIPTION
 These
 .Nm
@@ -68,7 +68,7 @@ Do not share
 structures between two devices.
 .Pp
 .Bl -tag -width 8n
-.It Fn rnd_attach_source "rndsource_element_t *rnd_source" "char *devname" "uint32_t source_type" "uint32_t flags"
+.It Fn rnd_attach_source "krndsource_t *rnd_source" "char *devname" "uint32_t source_type" "uint32_t flags"
 This function announces the availability of a device for entropy collection.
 It must be called before the source struct pointed to by
 .Fa rnd_source
@@ -89,9 +89,11 @@ for physical disks,
 .Dv RND_TYPE_TAPE
 for a tape drive,
 .Dv RND_TYPE_TTY
-for a tty, and
+for a tty,
 .Dv RND_TYPE_RNG
-for a random number generator.
+for a random number generator, and
+.Dv RND_TYPE_ENV
+for an environment sensor.
 .Dv RND_TYPE_UNKNOWN
 is not to be used as a type.
 It is used internally to the rnd system.
@@ -108,9 +110,9 @@ Note that devices of type
 default to
 .Dv RND_FLAG_NO_ESTIMATE .
 .Pp
-.It Fn rnd_detach_source "rndsource_element_t *rnd_source"
+.It Fn rnd_detach_source "krndsource_t *rnd_source"
 This function disconnects the device from entropy collection.
-.It Fn rnd_add_uint32 "rndsource_element_t *rnd_source" "uint32_t datum"
+.It Fn rnd_add_uint32 "krndsource_t *rnd_source" "uint32_t datum"
 This function adds the value of
 .Va datum
 to the entropy pool.
@@ -143,7 +145,7 @@ of randomness, passing
 for
 .Va rnd_source
 is permitted, and the device does not need to be attached.
-.It Fn rnd_add_data "rndsource_element_t *rnd_source" "void *data" "uint32_t len" "uint32_t entropy"
+.It Fn rnd_add_data "krndsource_t *rnd_source" "void *data" "uint32_t len" "uint32_t entropy"
 adds (hopefully) random
 .Fa data
 to the entropy pool.

Reply via email to