blob: d2bef975d396c1ab9162121ade7f741866e9cc29 [file] [log] [blame]
Dan Albert287553d2017-02-16 10:47:51 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_RANDOM_H
13#define _LINUX_RANDOM_H
14
15#include <linux/ioctl.h>
16
17#define RNDGETENTCNT _IOR( 'R', 0x00, int )
18
19#define RNDADDTOENTCNT _IOW( 'R', 0x01, int )
20
21#define RNDGETPOOL _IOR( 'R', 0x02, int [2] )
22
23#define RNDADDENTROPY _IOW( 'R', 0x03, int [2] )
24
25#define RNDZAPENTCNT _IO( 'R', 0x04 )
26
27#define RNDCLEARPOOL _IO( 'R', 0x06 )
28
29struct rand_pool_info {
30 int entropy_count;
31 int buf_size;
32 __u32 buf[0];
33};
34
35#endif