Provide infrastructure for harvesting SWI entropy.
This commit is contained in:
parent
e119960112
commit
4a7cdfd7b9
@ -136,6 +136,9 @@ SYSCTL_PROC(_kern_random_sys_harvest, OID_AUTO, point_to_point,
|
||||
SYSCTL_PROC(_kern_random_sys_harvest, OID_AUTO, interrupt,
|
||||
CTLTYPE_INT|CTLFLAG_RW, &harvest.interrupt, 0,
|
||||
random_check_boolean, "I", "Harvest IRQ entropy");
|
||||
SYSCTL_PROC(_kern_random_sys_harvest, OID_AUTO, swi,
|
||||
CTLTYPE_INT|CTLFLAG_RW, &harvest.swi, 0,
|
||||
random_check_boolean, "I", "Harvest SWI entropy");
|
||||
|
||||
/* ARGSUSED */
|
||||
static int
|
||||
|
@ -51,10 +51,11 @@ struct harvest_select {
|
||||
int ethernet;
|
||||
int point_to_point;
|
||||
int interrupt;
|
||||
int swi;
|
||||
};
|
||||
|
||||
extern struct harvest_select harvest;
|
||||
|
||||
#endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _SYS_RANDOM_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user