Module Name: src Committed By: christos Date: Sun Nov 25 15:29:25 UTC 2012
Modified Files: src/sys/dev: rndpseudo.c Log Message: move context struct to a header for the benefit of fstat. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/dev/rndpseudo.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/rndpseudo.c diff -u src/sys/dev/rndpseudo.c:1.10 src/sys/dev/rndpseudo.c:1.11 --- src/sys/dev/rndpseudo.c:1.10 Sat May 19 12:00:41 2012 +++ src/sys/dev/rndpseudo.c Sun Nov 25 10:29:24 2012 @@ -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 @@ static pool_cache_t rp_cpc; 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. *