From 0d081107beadbdcb65578a5f52d1bac0103cc963 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 17 Mar 2019 17:15:58 +0300 Subject: sys/linux: Add rfkill description for Linux --- sys/linux/dev_rfkill.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sys/linux/dev_rfkill.txt (limited to 'sys/linux/dev_rfkill.txt') diff --git a/sys/linux/dev_rfkill.txt b/sys/linux/dev_rfkill.txt new file mode 100644 index 000000000..dab3df781 --- /dev/null +++ b/sys/linux/dev_rfkill.txt @@ -0,0 +1,21 @@ +# Copyright 2019 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +include +include + +resource fd_rfkill[fd] + +openat$rfkill(fd const[AT_FDCWD], file ptr[in, string["/dev/rfkill"]], flags flags[open_flags], mode const[0]) fd_rfkill + +write$rfkill(fd fd_rfkill, data ptr[in, rfkill_event], len bytesize[data]) +read$rfkill(fd fd_rfkill, data ptr[out, rfkill_event], len bytesize[data]) +ioctl$RFKILL_IOCTL_NOINPUT(fd fd_rfkill, cmd const[RFKILL_IOCTL_NOINPUT]) + +rfkill_event { + idx int32 + type int8[0:NUM_RFKILL_TYPES] + op int8[0:RFKILL_OP_CHANGE_ALL] + soft int8[0:1] + hard int8[0:1] +} [packed] -- cgit mrf-deployment