move away from syscall counts towards operation counts
[trinity.git] / ioctls / random.c
blob50d5c638f03400abfc6e3a49866c980ffbcd4ff7
1 #include <linux/random.h>
3 #include "utils.h"
4 #include "ioctls.h"
6 static const struct ioctl random_ioctls[] = {
7 IOCTL(RNDGETENTCNT),
8 IOCTL(RNDADDTOENTCNT),
9 IOCTL(RNDGETPOOL),
10 IOCTL(RNDADDENTROPY),
11 IOCTL(RNDZAPENTCNT),
12 IOCTL(RNDCLEARPOOL),
15 static const char *const random_devs[] = {
16 "mem",
19 static const struct ioctl_group random_grp = {
20 .devtype = DEV_CHAR,
21 .devs = random_devs,
22 .devs_cnt = ARRAY_SIZE(random_devs),
23 .sanitise = pick_random_ioctl,
24 .ioctls = random_ioctls,
25 .ioctls_cnt = ARRAY_SIZE(random_ioctls),
28 REG_IOCTL_GROUP(random_grp)