github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/dev_rfkill.txt (about)

     1  # Copyright 2019 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  include <uapi/linux/ioctl.h>
     5  include <uapi/linux/rfkill.h>
     6  
     7  resource fd_rfkill[fd]
     8  
     9  openat$rfkill(fd const[AT_FDCWD], file ptr[in, string["/dev/rfkill"]], flags flags[open_flags], mode const[0]) fd_rfkill
    10  
    11  write$rfkill(fd fd_rfkill, data ptr[in, rfkill_event], len bytesize[data])
    12  read$rfkill(fd fd_rfkill, data ptr[out, rfkill_event], len bytesize[data])
    13  ioctl$RFKILL_IOCTL_NOINPUT(fd fd_rfkill, cmd const[RFKILL_IOCTL_NOINPUT])
    14  ioctl$RFKILL_IOC_MAX_SIZE(fd fd_rfkill, cmd const[RFKILL_IOC_MAX_SIZE], arg ptr[in, int32])
    15  
    16  rfkill_event {
    17  	idx	int32
    18  	type	int8[0:NUM_RFKILL_TYPES]
    19  	op	int8[0:RFKILL_OP_CHANGE_ALL]
    20  	soft	int8[0:1]
    21  	hard	int8[0:1]
    22  } [packed]