• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI_LINUX_RANDOM_H
7 #define _UAPI_LINUX_RANDOM_H
8 #include <linux/types.h>
9 #include <linux/ioctl.h>
10 #include <linux/irqnr.h>
11 #define RNDGETENTCNT	_IOR( 'R', 0x00, int )
12 #define RNDADDTOENTCNT	_IOW( 'R', 0x01, int )
13 #define RNDGETPOOL	_IOR( 'R', 0x02, int [2] )
14 #define RNDADDENTROPY	_IOW( 'R', 0x03, int [2] )
15 #define RNDZAPENTCNT	_IO( 'R', 0x04 )
16 #define RNDCLEARPOOL	_IO( 'R', 0x06 )
17 #define RNDRESEEDCRNG	_IO( 'R', 0x07 )
18 struct rand_pool_info {
19 	int	entropy_count;
20 	int	buf_size;
21 	__u32	buf[0];
22 };
23 #define GRND_NONBLOCK	0x0001
24 #define GRND_RANDOM	0x0002
25 #endif
26