Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108635774
D22485.id64685.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22485.id64685.diff
View Options
Index: sys/dev/random/random_harvestq.c
===================================================================
--- sys/dev/random/random_harvestq.c
+++ sys/dev/random/random_harvestq.c
@@ -98,6 +98,14 @@
*/
__read_frequently u_int hc_source_mask;
+struct random_sources {
+ LIST_ENTRY(random_sources) rrs_entries;
+ struct random_source *rrs_source;
+};
+
+static LIST_HEAD(sources_head, random_sources) source_list =
+ LIST_HEAD_INITIALIZER(source_list);
+
SYSCTL_NODE(_kern_random, OID_AUTO, harvest, CTLFLAG_RW, 0,
"Entropy Device Parameters");
Index: sys/dev/random/random_infra.c
===================================================================
--- sys/dev/random/random_infra.c
+++ sys/dev/random/random_infra.c
@@ -101,8 +101,6 @@
MALLOC_DEFINE(M_ENTROPY, "entropy", "Entropy harvesting buffers and data structures");
-struct sources_head source_list = LIST_HEAD_INITIALIZER(source_list);
-
#if defined(RANDOM_LOADABLE)
struct random_algorithm *p_random_alg_context = NULL;
#else /* !defined(RANDOM_LOADABLE) */
Index: sys/dev/random/randomdev.h
===================================================================
--- sys/dev/random/randomdev.h
+++ sys/dev/random/randomdev.h
@@ -104,14 +104,6 @@
random_source_read_t *rs_read;
};
-struct random_sources {
- LIST_ENTRY(random_sources) rrs_entries;
- struct random_source *rrs_source;
-};
-
-LIST_HEAD(sources_head, random_sources);
-extern struct sources_head source_list;
-
void random_source_register(struct random_source *);
void random_source_deregister(struct random_source *);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 28, 12:38 AM (9 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16227969
Default Alt Text
D22485.id64685.diff (1 KB)
Attached To
Mode
D22485: random(4): De-export random_sources list
Attached
Detach File
Event Timeline
Log In to Comment