Module Name:    src
Committed By:   christos
Date:           Sun Nov 25 15:29:56 UTC 2012

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

Log Message:
add the context struct


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/sys/rnd.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/rnd.h
diff -u src/sys/sys/rnd.h:1.33 src/sys/sys/rnd.h:1.34
--- src/sys/sys/rnd.h:1.33	Wed Sep  5 14:57:33 2012
+++ src/sys/sys/rnd.h	Sun Nov 25 10:29:55 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: rnd.h,v 1.33 2012/09/05 18:57:33 tls Exp $	*/
+/*	$NetBSD: rnd.h,v 1.34 2012/11/25 15:29:55 christos Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -239,4 +239,16 @@ typedef struct {
 #define	RNDADDDATA	_IOW('R',  105, rnddata_t) /* add data to the pool */
 #define	RNDGETPOOLSTAT	_IOR('R',  106, rndpoolstat_t) /* get statistics */
 
+#ifdef _KERNEL
+/*
+ * A context.  cprng plus a smidge.
+ */
+typedef struct {
+	struct _cprng_strong	*cprng;
+	int		hard;
+	int		bytesonkey;
+	kmutex_t	interlock;
+} rp_ctx_t;
+#endif
+
 #endif /* !_SYS_RND_H_ */

Reply via email to