1 #include <linux/ioctl.h>
6 #define MCE_GET_RECORD_LEN _IOR('M', 1, int)
7 #define MCE_GET_LOG_LEN _IOR('M', 2, int)
8 #define MCE_GETCLEAR_FLAGS _IOR('M', 3, int)
10 static const struct ioctl mce_ioctls
[] = {
11 IOCTL(MCE_GET_RECORD_LEN
),
12 IOCTL(MCE_GET_LOG_LEN
),
13 IOCTL(MCE_GETCLEAR_FLAGS
),
16 static const char *const mce_devs
[] = {
20 static const struct ioctl_group mce_grp
= {
23 .devs_cnt
= ARRAY_SIZE(mce_devs
),
24 .sanitise
= pick_random_ioctl
,
26 .ioctls_cnt
= ARRAY_SIZE(mce_ioctls
),
29 REG_IOCTL_GROUP(mce_grp
)