aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/gen/amd64.go
diff options
context:
space:
mode:
authorAlexander Popov <alex.popov@linux.com>2019-03-17 17:15:58 +0300
committerDmitry Vyukov <dvyukov@google.com>2019-03-18 08:51:27 +0100
commit0d081107beadbdcb65578a5f52d1bac0103cc963 (patch)
treedd7df7ed56be77cef0ad56e014972cd1dbdf0373 /sys/linux/gen/amd64.go
parent2ef67421494606a406dc91cc24e4b733de1f3abf (diff)
sys/linux: Add rfkill description for Linux
Diffstat (limited to 'sys/linux/gen/amd64.go')
-rw-r--r--sys/linux/gen/amd64.go36
1 files changed, 34 insertions, 2 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 268e6f3c2..3cb5e48b7 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -69,6 +69,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rawtp", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf_base", "fd_rawtp"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rdma_cm", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rdma_cm"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
+ {Name: "fd_rfkill", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rfkill"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_rtc", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_rtc"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_access", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_access"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_attr", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_attr"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -18637,6 +18638,20 @@ var structDescs_amd64 = []*KeyedStruct{
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "sks", TypeSize: 3, ArgDir: 2}, Kind: 1, RangeBegin: 3, RangeEnd: 3},
&BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "asb", TypeSize: 46, ArgDir: 2}, Kind: 1, RangeBegin: 46, RangeEnd: 46},
}}},
+ {Key: StructKey{Name: "rfkill_event"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rfkill_event", TypeSize: 8}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "idx", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "type", TypeSize: 1}}, Kind: 2, RangeEnd: 9},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "op", TypeSize: 1}}, Kind: 2, RangeEnd: 3},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "soft", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hard", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ }}},
+ {Key: StructKey{Name: "rfkill_event", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rfkill_event", TypeSize: 8, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "idx", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "type", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 9},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "op", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 3},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "soft", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "hard", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ }}},
{Key: StructKey{Name: "rlimit"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rlimit", TypeSize: 16}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "soft", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "hard", TypeSize: 8}}},
@@ -31973,6 +31988,10 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074311424},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "sockaddr_pppoe"}}},
}},
+ {NR: 16, Name: "ioctl$RFKILL_IOCTL_NOINPUT", CallName: "ioctl", MissingArgs: 1, Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 20993},
+ }},
{NR: 16, Name: "ioctl$RNDADDENTROPY", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_random", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074287107},
@@ -35493,7 +35512,7 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 12}, Kind: 2, Values: []string{"/dev/rfkill\x00"}}},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "mode", TypeSize: 8}}},
- }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{NR: 257, Name: "openat$rtc", CallName: "openat", Args: []Type{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "fd", TypeSize: 8}}, Val: 18446744073709551516},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "file", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/rtc0\x00"}}},
@@ -36269,6 +36288,11 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "val", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", TypeSize: 8, ArgDir: 1}}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "len", TypeSize: 8}}, Buf: "val"},
}},
+ {Name: "read$rfkill", CallName: "read", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rfkill_event", Dir: 1}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"},
+ }},
{Name: "read$trusty", CallName: "read", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_trusty", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "msg", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", ArgDir: 1, IsVarlen: true}}},
@@ -40915,6 +40939,11 @@ var syscalls_amd64 = []*Syscall{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}}},
&LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "size", TypeSize: 8}}, BitSize: 8, Buf: "data"},
}},
+ {NR: 1, Name: "write$rfkill", CallName: "write", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rfkill", FldName: "fd", TypeSize: 4}},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "data", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rfkill_event"}}},
+ &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "bytesize", FldName: "len", TypeSize: 8}}, BitSize: 8, Buf: "data"},
+ }},
{NR: 1, Name: "write$selinux_access", CallName: "write", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_selinux_access", FldName: "fd", TypeSize: 4}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "buf", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "selinux_access_req"}}},
@@ -44313,6 +44342,7 @@ var consts_amd64 = []ConstValue{
{Name: "NUD_PROBE", Value: 16},
{Name: "NUD_REACHABLE", Value: 2},
{Name: "NUD_STALE", Value: 4},
+ {Name: "NUM_RFKILL_TYPES", Value: 9},
{Name: "N_NULL", Value: 27},
{Name: "N_TTY"},
{Name: "OMAGIC", Value: 263},
@@ -44903,6 +44933,8 @@ var consts_amd64 = []ConstValue{
{Name: "RENAME_WHITEOUT", Value: 4},
{Name: "RFCOMM_CONNINFO", Value: 2},
{Name: "RFCOMM_LM", Value: 3},
+ {Name: "RFKILL_IOCTL_NOINPUT", Value: 20993},
+ {Name: "RFKILL_OP_CHANGE_ALL", Value: 3},
{Name: "RLIMIT_AS", Value: 9},
{Name: "RLIMIT_CORE", Value: 4},
{Name: "RLIMIT_CPU"},
@@ -48318,4 +48350,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "a17fc9ffd2d2e5fae6122fcc2f7b8307394fe83d"
+const revision_amd64 = "1b83c687dd66fb52ff98e92e84b0de9a91d3a769"