random.h
01:
02:
03:
04:
05:
06:
07: #ifndef _LINUX_RANDOM_H
08: #define _LINUX_RANDOM_H
09:
10: #include <linux/types.h>
11: #include <linux/ioctl.h>
12: #include <linux/irqnr.h>
13:
14:
15:
16:
17: #define RNDGETENTCNT _IOR( 'R', 0x00, int )
18:
19:
20: #define RNDADDTOENTCNT _IOW( 'R', 0x01, int )
21:
22:
23: #define RNDGETPOOL _IOR( 'R', 0x02, int [2] )
24:
25:
26:
27:
28:
29: #define RNDADDENTROPY _IOW( 'R', 0x03, int [2] )
30:
31:
32: #define RNDZAPENTCNT _IO( 'R', 0x04 )
33:
34:
35: #define RNDCLEARPOOL _IO( 'R', 0x06 )
36:
37: struct rand_pool_info {
38: int entropy_count;
39: int buf_size;
40: __u32 buf[0];
41: };
42:
43: struct rnd_state {
44: __u32 s1, s2, s3;
45: };
46:
47:
48:
49:
50: #endif
51:
© Andrew Scott 2006 -
2025,
All Rights Reserved