Source-Changes-HG archive

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

[src/trunk]: src/sys/dev move context struct to a header for the benefit of f...



details:   https://anonhg.NetBSD.org/src/rev/044d1f91526c
branches:  trunk
changeset: 782888:044d1f91526c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 25 15:29:24 2012 +0000

description:
move context struct to a header for the benefit of fstat.

diffstat:

 sys/dev/rndpseudo.c |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (35 lines):

diff -r ec75dba0ee28 -r 044d1f91526c sys/dev/rndpseudo.c
--- a/sys/dev/rndpseudo.c       Sun Nov 25 09:06:43 2012 +0000
+++ b/sys/dev/rndpseudo.c       Sun Nov 25 15:29:24 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rndpseudo.c,v 1.10 2012/05/19 16:00:41 tls Exp $       */
+/*     $NetBSD: rndpseudo.c,v 1.11 2012/11/25 15:29:24 christos Exp $  */
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.10 2012/05/19 16:00:41 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rndpseudo.c,v 1.11 2012/11/25 15:29:24 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -102,16 +102,6 @@
 cprng_strong_t **rp_cpurngs;
 
 /*
- * A context.  cprng plus a smidge.
- */
-typedef struct {
-       cprng_strong_t  *cprng;
-       int             hard;
-       int             bytesonkey;
-       kmutex_t        interlock;
-} rp_ctx_t;
-
-/*
  * Our random pool.  This is defined here rather than using the general
  * purpose one defined in rndpool.c.
  *



Home | Main Index | Thread Index | Old Index