patch-1.3.98 linux/include/linux/random.h

Next file: linux/include/linux/scsi.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.97/linux/include/linux/random.h linux/include/linux/random.h
@@ -9,11 +9,26 @@
 
 /* ioctl()'s for the random number generator */
 
+/* Get the entropy count. */
 #define RNDGETENTCNT	0x01080000
+
+/* Add to (or subtract from) the entropy count.  (Superuser only.) */
 #define RNDADDTOENTCNT	0x01080001
+
+/* Get the contents of the entropy pool.  (Superuser only.) */
 #define RNDGETPOOL	0x01080002
+
+/* 
+ * Write bytes into the entropy pool and add to the entropy count.
+ * (Superuser only.)
+ */
 #define RNDADDENTROPY	0x01080003
+
+/* Clear entropy count to 0.  (Superuser only.) */
 #define RNDZAPENTCNT	0x01080004
+
+/* Clear the entropy pool and associated counters.  (Superuser only.) */
+#define RNDCLEARPOOL	0x01080006
 
 struct rand_pool_info {
 	int	entropy_count;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this