change sockaddr generation to pass around correct types.
[trinity.git] / ioctls / mce.c
blob7682ef2f0789876ac5e65647fccec38b4cd29e55
1 #include <linux/ioctl.h>
3 #include "utils.h"
4 #include "ioctls.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[] = {
17 "mcelog",
20 static const struct ioctl_group mce_grp = {
21 .devtype = DEV_MISC,
22 .devs = mce_devs,
23 .devs_cnt = ARRAY_SIZE(mce_devs),
24 .sanitise = pick_random_ioctl,
25 .ioctls = mce_ioctls,
26 .ioctls_cnt = ARRAY_SIZE(mce_ioctls),
29 REG_IOCTL_GROUP(mce_grp)