Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys sys/rndsource.h: Update comment to reflect new use o...
details: https://anonhg.NetBSD.org/src/rev/af2f1934963c
branches: trunk
changeset: 377539:af2f1934963c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Jul 16 10:36:02 2023 +0000
description:
sys/rndsource.h: Update comment to reflect new use of delta members.
No functional change intended.
XXX pullup-10
diffstat:
sys/sys/rndsource.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r ff222ae0ca90 -r af2f1934963c sys/sys/rndsource.h
--- a/sys/sys/rndsource.h Sun Jul 16 10:20:07 2023 +0000
+++ b/sys/sys/rndsource.h Sun Jul 16 10:36:02 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rndsource.h,v 1.7 2020/04/30 03:28:19 riastradh Exp $ */
+/* $NetBSD: rndsource.h,v 1.8 2023/07/16 10:36:02 riastradh Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@ struct percpu;
/*
* struct rnd_delta_estimator
*
- * Unused. Preserved for ABI compatibility.
+ * State for the time-delta entropy estimation model.
*/
typedef struct rnd_delta_estimator {
uint64_t x;
@@ -68,8 +68,8 @@ typedef struct rnd_delta_estimator {
struct krndsource {
LIST_ENTRY(krndsource) list; /* the linked list */
char name[16]; /* device name */
- rnd_delta_t time_delta; /* unused */
- rnd_delta_t value_delta; /* unused */
+ rnd_delta_t time_delta; /* time samples added while cold */
+ rnd_delta_t value_delta; /* value samples added whiel cold */
uint32_t total; /* number of bits added while cold */
uint32_t type; /* type, RND_TYPE_* */
uint32_t flags; /* flags, RND_FLAG_* */
Home |
Main Index |
Thread Index |
Old Index