Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 More updates, since the structure name has ch...
details: https://anonhg.NetBSD.org/src/rev/4d400f7273f2
branches: trunk
changeset: 780099:4d400f7273f2
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Jul 12 00:07:36 2012 +0000
description:
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.
diffstat:
share/man/man9/rnd.9 | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diffs (71 lines):
diff -r 0b1845a00e0c -r 4d400f7273f2 share/man/man9/rnd.9
--- a/share/man/man9/rnd.9 Wed Jul 11 22:43:19 2012 +0000
+++ b/share/man/man9/rnd.9 Thu Jul 12 00:07:36 2012 +0000
@@ -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 @@
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 @@
.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 @@
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 @@
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.
Home |
Main Index |
Thread Index |
Old Index