Module Name:    src
Committed By:   riastradh
Date:           Sun Jul 16 10:36:02 UTC 2023

Modified Files:
        src/sys/sys: rndsource.h

Log Message:
sys/rndsource.h: Update comment to reflect new use of delta members.

No functional change intended.

XXX pullup-10


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/sys/rndsource.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/rndsource.h
diff -u src/sys/sys/rndsource.h:1.7 src/sys/sys/rndsource.h:1.8
--- src/sys/sys/rndsource.h:1.7	Thu Apr 30 03:28:19 2020
+++ src/sys/sys/rndsource.h	Sun Jul 16 10:36:02 2023
@@ -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_* */

Reply via email to