1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#include <linux/ioctl.h>
#include <linux/rfkill.h>
#include "ioctls.h"
#include "utils.h"
static const struct ioctl rfkill_ioctls[] = {
IOCTL(RFKILL_IOCTL_NOINPUT),
};
static const char *const rfkill_devs[] = {
"rfkill",
};
static const struct ioctl_group rfkill_grp = {
.devtype = DEV_MISC,
.devs = rfkill_devs,
.devs_cnt = ARRAY_SIZE(rfkill_devs),
.sanitise = pick_random_ioctl,
.ioctls = rfkill_ioctls,
.ioctls_cnt = ARRAY_SIZE(rfkill_ioctls),
};
REG_IOCTL_GROUP(rfkill_grp)
|