Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys add the context struct



details:   https://anonhg.NetBSD.org/src/rev/79f15729e1ac
branches:  trunk
changeset: 782890:79f15729e1ac
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 25 15:29:55 2012 +0000

description:
add the context struct

diffstat:

 sys/sys/rnd.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r a642a7664220 -r 79f15729e1ac sys/sys/rnd.h
--- a/sys/sys/rnd.h     Sun Nov 25 15:29:45 2012 +0000
+++ b/sys/sys/rnd.h     Sun Nov 25 15:29:55 2012 +0000
@@ -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 @@
 #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_ */



Home | Main Index | Thread Index | Old Index