patch-1.3.39 linux/include/linux/random.h
Next file: linux/include/linux/sched.h
Previous file: linux/include/linux/module.h
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Wed Nov 8 07:06:25 1995
- Orig file:
v1.3.38/linux/include/linux/random.h
- Orig date:
Mon Oct 16 18:38:24 1995
diff -u --recursive --new-file v1.3.38/linux/include/linux/random.h linux/include/linux/random.h
@@ -12,11 +12,13 @@
#define RNDGETENTCNT 0x01080000
#define RNDADDTOENTCNT 0x01080001
#define RNDGETPOOL 0x01080002
+#define RNDADDENTROPY 0x01080003
+#define RNDZAPENTCNT 0x01080004
-struct rand_pool_state {
+struct rand_pool_info {
int entropy_count;
- int pool_size;
- __u32 pool[0];
+ int buf_size;
+ __u32 buf[0];
};
/* Exported functions */
@@ -33,14 +35,8 @@
void add_blkdev_randomness(int major);
void get_random_bytes(void *buf, int nbytes);
-int read_random(struct inode * inode, struct file * file,
- char * buf, int nbytes);
-int read_random_unlimited(struct inode * inode, struct file * file,
- char * buf, int nbytes);
-int write_random(struct inode * inode, struct file * file,
- const char * buffer, int count);
-int random_ioctl(struct inode * inode, struct file * file,
- unsigned int cmd, unsigned long arg);
+
+struct file_operations random_fops, urandom_fops;
#endif /* __KERNEL___ */
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