aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorChi Pham <chidaph@gmail.com>2018-07-02 14:58:05 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-02 17:55:41 +0200
commit317fc8ea3ebfd8c8ad97394d0a648098eda26ef1 (patch)
tree58a5be7be9bb196442e03db65eb7e518741b5ac0 /sys/linux
parent58924941cce8ea5d7be1d29a313e14e1c506c5db (diff)
sys/linux: add rtc description
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/gen/386.go184
-rw-r--r--sys/linux/gen/amd64.go184
-rw-r--r--sys/linux/gen/arm.go184
-rw-r--r--sys/linux/gen/arm64.go184
-rw-r--r--sys/linux/gen/ppc64le.go184
-rwxr-xr-xsys/linux/rtc.txt61
-rw-r--r--sys/linux/rtc_386.const25
-rw-r--r--sys/linux/rtc_amd64.const25
-rw-r--r--sys/linux/rtc_arm.const25
-rw-r--r--sys/linux/rtc_arm64.const25
-rw-r--r--sys/linux/rtc_ppc64le.const25
11 files changed, 1101 insertions, 5 deletions
diff --git a/sys/linux/gen/386.go b/sys/linux/gen/386.go
index 0822c50e7..21dc3d9e4 100644
--- a/sys/linux/gen/386.go
+++ b/sys/linux/gen/386.go
@@ -54,6 +54,7 @@ var resources_386 = []*ResourceDesc{
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, 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_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_context", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_context"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_create", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_create"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -13407,6 +13408,58 @@ var structDescs_386 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "abort_ip", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 12}}, IsPad: true},
}, AlignAttr: 32}},
+ {Key: StructKey{Name: "rtc_pll_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 28}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 4}}},
+ }}},
+ {Key: StructKey{Name: "rtc_pll_info", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 28, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 4, ArgDir: 1}}},
+ }}},
+ {Key: StructKey{Name: "rtc_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_time", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time"}, FldName: "time"},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"},
+ }}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 112}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -24033,6 +24086,107 @@ var syscalls_386 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20996},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 54, Name: "ioctl$RTC_AIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28674},
+ }},
+ {NR: 54, Name: "ioctl$RTC_AIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28673},
+ }},
+ {NR: 54, Name: "ioctl$RTC_ALM_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149871624},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_ALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1076129799},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_EPOCH_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147774477},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_EPOCH_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074032654},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_IRQP_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147774475},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_IRQP_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074032652},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 8192},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28678},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28677},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PLL_GET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149347345},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PLL_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075605522},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_RD_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149871625},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_SET_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1076129802},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_UIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28676},
+ }},
+ {NR: 54, Name: "ioctl$RTC_UIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28675},
+ }},
+ {NR: 54, Name: "ioctl$RTC_VL_CLR", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28692},
+ }},
+ {NR: 54, Name: "ioctl$RTC_VL_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147774483},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28688},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28687},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WKALM_RD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2150133776},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WKALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1076391951},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm"}}},
+ }},
{NR: 54, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3},
@@ -30397,6 +30551,11 @@ var syscalls_386 = []*Syscall{
&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "id", TypeSize: 4}}, ValuesPerProc: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ndb", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {Name: "syz_open_dev$rtc", CallName: "syz_open_dev", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/rtc#\x00"}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$sg", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 9}, Kind: 2, Values: []string{"/dev/sg#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}},
@@ -33960,6 +34119,29 @@ var consts_386 = []ConstValue{
{Name: "RTA_SRC", Value: 2},
{Name: "RTA_TTL_PROPAGATE", Value: 26},
{Name: "RTA_UID", Value: 25},
+ {Name: "RTC_AIE_OFF", Value: 28674},
+ {Name: "RTC_AIE_ON", Value: 28673},
+ {Name: "RTC_ALM_READ", Value: 2149871624},
+ {Name: "RTC_ALM_SET", Value: 1076129799},
+ {Name: "RTC_EPOCH_READ", Value: 2147774477},
+ {Name: "RTC_EPOCH_SET", Value: 1074032654},
+ {Name: "RTC_IRQP_READ", Value: 2147774475},
+ {Name: "RTC_IRQP_SET", Value: 1074032652},
+ {Name: "RTC_MAX_FREQ", Value: 8192},
+ {Name: "RTC_PIE_OFF", Value: 28678},
+ {Name: "RTC_PIE_ON", Value: 28677},
+ {Name: "RTC_PLL_GET", Value: 2149347345},
+ {Name: "RTC_PLL_SET", Value: 1075605522},
+ {Name: "RTC_RD_TIME", Value: 2149871625},
+ {Name: "RTC_SET_TIME", Value: 1076129802},
+ {Name: "RTC_UIE_OFF", Value: 28676},
+ {Name: "RTC_UIE_ON", Value: 28675},
+ {Name: "RTC_VL_CLR", Value: 28692},
+ {Name: "RTC_VL_READ", Value: 2147774483},
+ {Name: "RTC_WIE_OFF", Value: 28688},
+ {Name: "RTC_WIE_ON", Value: 28687},
+ {Name: "RTC_WKALM_RD", Value: 2150133776},
+ {Name: "RTC_WKALM_SET", Value: 1076391951},
{Name: "RTF_ADDRCONF", Value: 262144},
{Name: "RTF_ALLONLINK", Value: 131072},
{Name: "RTF_ANYCAST", Value: 1048576},
@@ -36913,4 +37095,4 @@ var consts_386 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_386 = "b4050c8ea56e0fa6d944c424b5e03399e929745e"
+const revision_386 = "7c3b92654cfa280739a2cab1908dd7fbafba5a74"
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go
index 4a78d547d..d6a5d52c3 100644
--- a/sys/linux/gen/amd64.go
+++ b/sys/linux/gen/amd64.go
@@ -54,6 +54,7 @@ var resources_amd64 = []*ResourceDesc{
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, 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_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_context", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_context"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_create", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_create"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -13626,6 +13627,58 @@ var structDescs_amd64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "post_commit_offset", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "abort_ip", TypeSize: 8}}},
}, AlignAttr: 32}},
+ {Key: StructKey{Name: "rtc_pll_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 32}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "rtc_pll_info", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 32, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 8, ArgDir: 1}}},
+ }}},
+ {Key: StructKey{Name: "rtc_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_time", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time"}, FldName: "time"},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"},
+ }}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 120}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -24476,6 +24529,107 @@ var syscalls_amd64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 20996},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 16, Name: "ioctl$RTC_AIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28674},
+ }},
+ {NR: 16, Name: "ioctl$RTC_AIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28673},
+ }},
+ {NR: 16, Name: "ioctl$RTC_ALM_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149871624},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_ALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076129799},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_EPOCH_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148036621},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_EPOCH_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074294798},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_IRQP_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148036619},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_IRQP_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074294796},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeBegin: 1, RangeEnd: 8192},
+ }},
+ {NR: 16, Name: "ioctl$RTC_PIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28678},
+ }},
+ {NR: 16, Name: "ioctl$RTC_PIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28677},
+ }},
+ {NR: 16, Name: "ioctl$RTC_PLL_GET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149609489},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info", Dir: 1}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_PLL_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075867666},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info"}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_RD_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149871625},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_SET_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076129802},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_UIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28676},
+ }},
+ {NR: 16, Name: "ioctl$RTC_UIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28675},
+ }},
+ {NR: 16, Name: "ioctl$RTC_VL_CLR", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28692},
+ }},
+ {NR: 16, Name: "ioctl$RTC_VL_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147774483},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_WIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28688},
+ }},
+ {NR: 16, Name: "ioctl$RTC_WIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28687},
+ }},
+ {NR: 16, Name: "ioctl$RTC_WKALM_RD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2150133776},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm", Dir: 1}}},
+ }},
+ {NR: 16, Name: "ioctl$RTC_WKALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076391951},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm"}}},
+ }},
{NR: 16, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3},
@@ -31059,6 +31213,11 @@ var syscalls_amd64 = []*Syscall{
&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "id", TypeSize: 8}}, ValuesPerProc: 1},
&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},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ndb", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {Name: "syz_open_dev$rtc", CallName: "syz_open_dev", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/rtc#\x00"}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
+ &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},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$sg", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 9}, Kind: 2, Values: []string{"/dev/sg#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
@@ -34622,6 +34781,29 @@ var consts_amd64 = []ConstValue{
{Name: "RTA_SRC", Value: 2},
{Name: "RTA_TTL_PROPAGATE", Value: 26},
{Name: "RTA_UID", Value: 25},
+ {Name: "RTC_AIE_OFF", Value: 28674},
+ {Name: "RTC_AIE_ON", Value: 28673},
+ {Name: "RTC_ALM_READ", Value: 2149871624},
+ {Name: "RTC_ALM_SET", Value: 1076129799},
+ {Name: "RTC_EPOCH_READ", Value: 2148036621},
+ {Name: "RTC_EPOCH_SET", Value: 1074294798},
+ {Name: "RTC_IRQP_READ", Value: 2148036619},
+ {Name: "RTC_IRQP_SET", Value: 1074294796},
+ {Name: "RTC_MAX_FREQ", Value: 8192},
+ {Name: "RTC_PIE_OFF", Value: 28678},
+ {Name: "RTC_PIE_ON", Value: 28677},
+ {Name: "RTC_PLL_GET", Value: 2149609489},
+ {Name: "RTC_PLL_SET", Value: 1075867666},
+ {Name: "RTC_RD_TIME", Value: 2149871625},
+ {Name: "RTC_SET_TIME", Value: 1076129802},
+ {Name: "RTC_UIE_OFF", Value: 28676},
+ {Name: "RTC_UIE_ON", Value: 28675},
+ {Name: "RTC_VL_CLR", Value: 28692},
+ {Name: "RTC_VL_READ", Value: 2147774483},
+ {Name: "RTC_WIE_OFF", Value: 28688},
+ {Name: "RTC_WIE_ON", Value: 28687},
+ {Name: "RTC_WKALM_RD", Value: 2150133776},
+ {Name: "RTC_WKALM_SET", Value: 1076391951},
{Name: "RTF_ADDRCONF", Value: 262144},
{Name: "RTF_ALLONLINK", Value: 131072},
{Name: "RTF_ANYCAST", Value: 1048576},
@@ -37600,4 +37782,4 @@ var consts_amd64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_amd64 = "fc69ece5307d371a63232a03bac964a9ede3c7d2"
+const revision_amd64 = "9b691ef1ad3871279dddf35bbadcb13736803e01"
diff --git a/sys/linux/gen/arm.go b/sys/linux/gen/arm.go
index ace90ecc0..5bcc80fa4 100644
--- a/sys/linux/gen/arm.go
+++ b/sys/linux/gen/arm.go
@@ -54,6 +54,7 @@ var resources_arm = []*ResourceDesc{
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, 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_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_context", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_context"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_create", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_create"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -13250,6 +13251,58 @@ var structDescs_arm = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "abort_ip", TypeSize: 4}}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 12}}, IsPad: true},
}, AlignAttr: 32}},
+ {Key: StructKey{Name: "rtc_pll_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 28}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 4}}},
+ }}},
+ {Key: StructKey{Name: "rtc_pll_info", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 28, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 4, ArgDir: 1}}},
+ }}},
+ {Key: StructKey{Name: "rtc_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_time", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time"}, FldName: "time"},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"},
+ }}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 112}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -23793,6 +23846,107 @@ var syscalls_arm = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 20996},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 54, Name: "ioctl$RTC_AIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28674},
+ }},
+ {NR: 54, Name: "ioctl$RTC_AIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28673},
+ }},
+ {NR: 54, Name: "ioctl$RTC_ALM_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149871624},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_ALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1076129799},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_EPOCH_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147774477},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_EPOCH_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074032654},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_IRQP_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147774475},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_IRQP_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1074032652},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 8192},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28678},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28677},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PLL_GET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149347345},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PLL_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1075605522},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_RD_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2149871625},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_SET_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1076129802},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_UIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28676},
+ }},
+ {NR: 54, Name: "ioctl$RTC_UIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28675},
+ }},
+ {NR: 54, Name: "ioctl$RTC_VL_CLR", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28692},
+ }},
+ {NR: 54, Name: "ioctl$RTC_VL_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2147774483},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28688},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 28687},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WKALM_RD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 2150133776},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WKALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 1076391951},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 4}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm"}}},
+ }},
{NR: 54, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 4}}, Val: 3},
@@ -30312,6 +30466,11 @@ var syscalls_arm = []*Syscall{
&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "id", TypeSize: 4}}, ValuesPerProc: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ndb", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {Name: "syz_open_dev$rtc", CallName: "syz_open_dev", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/rtc#\x00"}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$sg", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 4}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 9}, Kind: 2, Values: []string{"/dev/sg#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 4}}},
@@ -33820,6 +33979,29 @@ var consts_arm = []ConstValue{
{Name: "RTA_SRC", Value: 2},
{Name: "RTA_TTL_PROPAGATE", Value: 26},
{Name: "RTA_UID", Value: 25},
+ {Name: "RTC_AIE_OFF", Value: 28674},
+ {Name: "RTC_AIE_ON", Value: 28673},
+ {Name: "RTC_ALM_READ", Value: 2149871624},
+ {Name: "RTC_ALM_SET", Value: 1076129799},
+ {Name: "RTC_EPOCH_READ", Value: 2147774477},
+ {Name: "RTC_EPOCH_SET", Value: 1074032654},
+ {Name: "RTC_IRQP_READ", Value: 2147774475},
+ {Name: "RTC_IRQP_SET", Value: 1074032652},
+ {Name: "RTC_MAX_FREQ", Value: 8192},
+ {Name: "RTC_PIE_OFF", Value: 28678},
+ {Name: "RTC_PIE_ON", Value: 28677},
+ {Name: "RTC_PLL_GET", Value: 2149347345},
+ {Name: "RTC_PLL_SET", Value: 1075605522},
+ {Name: "RTC_RD_TIME", Value: 2149871625},
+ {Name: "RTC_SET_TIME", Value: 1076129802},
+ {Name: "RTC_UIE_OFF", Value: 28676},
+ {Name: "RTC_UIE_ON", Value: 28675},
+ {Name: "RTC_VL_CLR", Value: 28692},
+ {Name: "RTC_VL_READ", Value: 2147774483},
+ {Name: "RTC_WIE_OFF", Value: 28688},
+ {Name: "RTC_WIE_ON", Value: 28687},
+ {Name: "RTC_WKALM_RD", Value: 2150133776},
+ {Name: "RTC_WKALM_SET", Value: 1076391951},
{Name: "RTF_ADDRCONF", Value: 262144},
{Name: "RTF_ALLONLINK", Value: 131072},
{Name: "RTF_ANYCAST", Value: 1048576},
@@ -36771,4 +36953,4 @@ var consts_arm = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm = "dd5ad897499c0d9a2e3cbc471197a813b506d043"
+const revision_arm = "2d48f7b04fa6aa40cf950630cc96b02d6a248012"
diff --git a/sys/linux/gen/arm64.go b/sys/linux/gen/arm64.go
index 53d2d3142..12d42df79 100644
--- a/sys/linux/gen/arm64.go
+++ b/sys/linux/gen/arm64.go
@@ -54,6 +54,7 @@ var resources_arm64 = []*ResourceDesc{
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, 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_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_context", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_context"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_create", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_create"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -13417,6 +13418,58 @@ var structDescs_arm64 = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "futex_offset", TypeSize: 8, ArgDir: 1}}},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "list_op_pending", TypeSize: 8, IsOptional: true}, Type: &StructType{Key: StructKey{Name: "robust_list"}}},
}}},
+ {Key: StructKey{Name: "rtc_pll_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 32}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "rtc_pll_info", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 32, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 8, ArgDir: 1}}},
+ }}},
+ {Key: StructKey{Name: "rtc_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_time", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time"}, FldName: "time"},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"},
+ }}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 120}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -24074,6 +24127,107 @@ var syscalls_arm64 = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 20996},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 29, Name: "ioctl$RTC_AIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28674},
+ }},
+ {NR: 29, Name: "ioctl$RTC_AIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28673},
+ }},
+ {NR: 29, Name: "ioctl$RTC_ALM_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149871624},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_ALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076129799},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_EPOCH_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148036621},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_EPOCH_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074294798},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_IRQP_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148036619},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_IRQP_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074294796},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeBegin: 1, RangeEnd: 8192},
+ }},
+ {NR: 29, Name: "ioctl$RTC_PIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28678},
+ }},
+ {NR: 29, Name: "ioctl$RTC_PIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28677},
+ }},
+ {NR: 29, Name: "ioctl$RTC_PLL_GET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149609489},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info", Dir: 1}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_PLL_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075867666},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info"}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_RD_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149871625},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_SET_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076129802},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_UIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28676},
+ }},
+ {NR: 29, Name: "ioctl$RTC_UIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28675},
+ }},
+ {NR: 29, Name: "ioctl$RTC_VL_CLR", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28692},
+ }},
+ {NR: 29, Name: "ioctl$RTC_VL_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2147774483},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_WIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28688},
+ }},
+ {NR: 29, Name: "ioctl$RTC_WIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 28687},
+ }},
+ {NR: 29, Name: "ioctl$RTC_WKALM_RD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2150133776},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm", Dir: 1}}},
+ }},
+ {NR: 29, Name: "ioctl$RTC_WKALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076391951},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm"}}},
+ }},
{NR: 29, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3},
@@ -30530,6 +30684,11 @@ var syscalls_arm64 = []*Syscall{
&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "id", TypeSize: 8}}, ValuesPerProc: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ndb", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {Name: "syz_open_dev$rtc", CallName: "syz_open_dev", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/rtc#\x00"}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 65536, 16384, 128, 131072, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$sg", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 9}, Kind: 2, Values: []string{"/dev/sg#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
@@ -34029,6 +34188,29 @@ var consts_arm64 = []ConstValue{
{Name: "RTA_SRC", Value: 2},
{Name: "RTA_TTL_PROPAGATE", Value: 26},
{Name: "RTA_UID", Value: 25},
+ {Name: "RTC_AIE_OFF", Value: 28674},
+ {Name: "RTC_AIE_ON", Value: 28673},
+ {Name: "RTC_ALM_READ", Value: 2149871624},
+ {Name: "RTC_ALM_SET", Value: 1076129799},
+ {Name: "RTC_EPOCH_READ", Value: 2148036621},
+ {Name: "RTC_EPOCH_SET", Value: 1074294798},
+ {Name: "RTC_IRQP_READ", Value: 2148036619},
+ {Name: "RTC_IRQP_SET", Value: 1074294796},
+ {Name: "RTC_MAX_FREQ", Value: 8192},
+ {Name: "RTC_PIE_OFF", Value: 28678},
+ {Name: "RTC_PIE_ON", Value: 28677},
+ {Name: "RTC_PLL_GET", Value: 2149609489},
+ {Name: "RTC_PLL_SET", Value: 1075867666},
+ {Name: "RTC_RD_TIME", Value: 2149871625},
+ {Name: "RTC_SET_TIME", Value: 1076129802},
+ {Name: "RTC_UIE_OFF", Value: 28676},
+ {Name: "RTC_UIE_ON", Value: 28675},
+ {Name: "RTC_VL_CLR", Value: 28692},
+ {Name: "RTC_VL_READ", Value: 2147774483},
+ {Name: "RTC_WIE_OFF", Value: 28688},
+ {Name: "RTC_WIE_ON", Value: 28687},
+ {Name: "RTC_WKALM_RD", Value: 2150133776},
+ {Name: "RTC_WKALM_SET", Value: 1076391951},
{Name: "RTF_ADDRCONF", Value: 262144},
{Name: "RTF_ALLONLINK", Value: 131072},
{Name: "RTF_ANYCAST", Value: 1048576},
@@ -36965,4 +37147,4 @@ var consts_arm64 = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_arm64 = "45ca78852b7500e7612287085dee2292ff1d6a8e"
+const revision_arm64 = "e0996c58f44d1178a9173f9c61fc9868155e4f7f"
diff --git a/sys/linux/gen/ppc64le.go b/sys/linux/gen/ppc64le.go
index 022eaf03b..9ac062fe1 100644
--- a/sys/linux/gen/ppc64le.go
+++ b/sys/linux/gen/ppc64le.go
@@ -53,6 +53,7 @@ var resources_ppc64le = []*ResourceDesc{
{Name: "fd_perf", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_perf"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_random", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_random"}, 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_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_context", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_context"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
{Name: "fd_selinux_create", Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}, Kind: []string{"fd", "fd_selinux_create"}, Values: []uint64{18446744073709551615, 18446744073709551516}},
@@ -13383,6 +13384,58 @@ var structDescs_ppc64le = []*KeyedStruct{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "post_commit_offset", TypeSize: 8}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "abort_ip", TypeSize: 8}}},
}, AlignAttr: 32}},
+ {Key: StructKey{Name: "rtc_pll_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 32}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 8}}},
+ }}},
+ {Key: StructKey{Name: "rtc_pll_info", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_pll_info", TypeSize: 32, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_ctrl", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_value", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_max", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_min", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_posmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "pll_negmult", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "pll_clock", TypeSize: 8, ArgDir: 1}}},
+ }}},
+ {Key: StructKey{Name: "rtc_time"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_time", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_time", TypeSize: 36, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_sec", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 60},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_min", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 59},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_hour", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 23},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeBegin: 1, RangeEnd: 31},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_mon", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 11},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_year", TypeSize: 4, ArgDir: 1}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_wday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 6},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "tm_yday", TypeSize: 4, ArgDir: 1}}, Kind: 2, RangeEnd: 365},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "rtc_isdst", FldName: "tm_isdst", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 18446744073709551615}},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time"}, FldName: "time"},
+ }}},
+ {Key: StructKey{Name: "rtc_wkalrm", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtc_wkalrm", TypeSize: 40, ArgDir: 1}, Fields: []Type{
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "enabled", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int8", FldName: "pending", TypeSize: 1, ArgDir: 1}}, Kind: 2, RangeEnd: 1},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 2}}, IsPad: true},
+ &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}, FldName: "time"},
+ }}},
{Key: StructKey{Name: "rtentry_in"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "rtentry_in", TypeSize: 120}, Fields: []Type{
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int64", FldName: "rt_pad1", TypeSize: 8}}},
&StructType{Key: StructKey{Name: "sockaddr_in"}, FldName: "rt_dst"},
@@ -23182,6 +23235,107 @@ var syscalls_ppc64le = []*Syscall{
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536891908},
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4}}}},
}},
+ {NR: 54, Name: "ioctl$RTC_AIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899586},
+ }},
+ {NR: 54, Name: "ioctl$RTC_AIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899585},
+ }},
+ {NR: 54, Name: "ioctl$RTC_ALM_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076129800},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_ALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149871623},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_EPOCH_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074294797},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_EPOCH_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148036622},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_IRQP_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074294795},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_IRQP_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2148036620},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "arg", TypeSize: 8}}, Kind: 2, RangeBegin: 1, RangeEnd: 8192},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899590},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899589},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PLL_GET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1075867665},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_PLL_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149609490},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_pll_info"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_RD_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076129801},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_SET_TIME", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2149871626},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_time"}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_UIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899588},
+ }},
+ {NR: 54, Name: "ioctl$RTC_UIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899587},
+ }},
+ {NR: 54, Name: "ioctl$RTC_VL_CLR", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899604},
+ }},
+ {NR: 54, Name: "ioctl$RTC_VL_READ", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1074032659},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", TypeSize: 4, ArgDir: 1}}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WIE_OFF", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899600},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WIE_ON", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 536899599},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WKALM_RD", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 1076391952},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm", Dir: 1}}},
+ }},
+ {NR: 54, Name: "ioctl$RTC_WKALM_SET", CallName: "ioctl", Args: []Type{
+ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "fd", TypeSize: 4}},
+ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2150133775},
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "rtc_wkalrm"}}},
+ }},
{NR: 54, Name: "ioctl$SCSI_IOCTL_BENCHMARK_COMMAND", CallName: "ioctl", Args: []Type{
&ResourceType{TypeCommon: TypeCommon{TypeName: "fd_sg", FldName: "fd", TypeSize: 4}},
&ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 3},
@@ -28976,6 +29130,11 @@ var syscalls_ppc64le = []*Syscall{
&ProcType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "proc", FldName: "id", TypeSize: 8}}, ValuesPerProc: 1},
&FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 131072, 16384, 128, 65536, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
}, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_ndb", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
+ {Name: "syz_open_dev$rtc", CallName: "syz_open_dev", Args: []Type{
+ &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 10}, Kind: 2, Values: []string{"/dev/rtc#\x00"}}},
+ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
+ &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 131072, 16384, 128, 65536, 262144, 256, 32768, 2048, 2097152, 1052672, 512, 4194304}, BitMask: true},
+ }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_rtc", FldName: "ret", TypeSize: 4, ArgDir: 1}}},
{Name: "syz_open_dev$sg", CallName: "syz_open_dev", Args: []Type{
&PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "dev", TypeSize: 8}, Type: &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 9}, Kind: 2, Values: []string{"/dev/sg#\x00"}}},
&IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "id", TypeSize: 8}}},
@@ -32402,6 +32561,29 @@ var consts_ppc64le = []ConstValue{
{Name: "RTA_SRC", Value: 2},
{Name: "RTA_TTL_PROPAGATE", Value: 26},
{Name: "RTA_UID", Value: 25},
+ {Name: "RTC_AIE_OFF", Value: 536899586},
+ {Name: "RTC_AIE_ON", Value: 536899585},
+ {Name: "RTC_ALM_READ", Value: 1076129800},
+ {Name: "RTC_ALM_SET", Value: 2149871623},
+ {Name: "RTC_EPOCH_READ", Value: 1074294797},
+ {Name: "RTC_EPOCH_SET", Value: 2148036622},
+ {Name: "RTC_IRQP_READ", Value: 1074294795},
+ {Name: "RTC_IRQP_SET", Value: 2148036620},
+ {Name: "RTC_MAX_FREQ", Value: 8192},
+ {Name: "RTC_PIE_OFF", Value: 536899590},
+ {Name: "RTC_PIE_ON", Value: 536899589},
+ {Name: "RTC_PLL_GET", Value: 1075867665},
+ {Name: "RTC_PLL_SET", Value: 2149609490},
+ {Name: "RTC_RD_TIME", Value: 1076129801},
+ {Name: "RTC_SET_TIME", Value: 2149871626},
+ {Name: "RTC_UIE_OFF", Value: 536899588},
+ {Name: "RTC_UIE_ON", Value: 536899587},
+ {Name: "RTC_VL_CLR", Value: 536899604},
+ {Name: "RTC_VL_READ", Value: 1074032659},
+ {Name: "RTC_WIE_OFF", Value: 536899600},
+ {Name: "RTC_WIE_ON", Value: 536899599},
+ {Name: "RTC_WKALM_RD", Value: 1076391952},
+ {Name: "RTC_WKALM_SET", Value: 2150133775},
{Name: "RTF_ADDRCONF", Value: 262144},
{Name: "RTF_ALLONLINK", Value: 131072},
{Name: "RTF_ANYCAST", Value: 1048576},
@@ -34396,4 +34578,4 @@ var consts_ppc64le = []ConstValue{
{Name: "bpf_insn_load_imm_dw", Value: 24},
}
-const revision_ppc64le = "fb8f49f6dceef512594c9f30fdc24bb287e02e4f"
+const revision_ppc64le = "e810a038c6e7e93c823407bb0a01ba0d48281b55"
diff --git a/sys/linux/rtc.txt b/sys/linux/rtc.txt
new file mode 100755
index 000000000..bc9c9d777
--- /dev/null
+++ b/sys/linux/rtc.txt
@@ -0,0 +1,61 @@
+# Copyright 2018 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 <linux/rtc.h>
+
+resource fd_rtc[fd]
+
+syz_open_dev$rtc(dev ptr[in, string["/dev/rtc#"]], id intptr, flags flags[open_flags]) fd_rtc
+
+ioctl$RTC_AIE_OFF(fd fd_rtc, cmd const[RTC_AIE_OFF])
+ioctl$RTC_AIE_ON(fd fd_rtc, cmd const[RTC_AIE_ON])
+ioctl$RTC_PIE_OFF(fd fd_rtc, cmd const[RTC_PIE_OFF])
+ioctl$RTC_PIE_ON(fd fd_rtc, cmd const[RTC_PIE_ON])
+ioctl$RTC_UIE_OFF(fd fd_rtc, cmd const[RTC_UIE_OFF])
+ioctl$RTC_UIE_ON(fd fd_rtc, cmd const[RTC_UIE_ON])
+ioctl$RTC_WIE_ON(fd fd_rtc, cmd const[RTC_WIE_ON])
+ioctl$RTC_WIE_OFF(fd fd_rtc, cmd const[RTC_WIE_OFF])
+ioctl$RTC_ALM_READ(fd fd_rtc, cmd const[RTC_ALM_READ], arg ptr[out, rtc_time])
+ioctl$RTC_ALM_SET(fd fd_rtc, cmd const[RTC_ALM_SET], arg ptr[in, rtc_time])
+ioctl$RTC_RD_TIME(fd fd_rtc, cmd const[RTC_RD_TIME], arg ptr[out, rtc_time])
+ioctl$RTC_SET_TIME(fd fd_rtc, cmd const[RTC_SET_TIME], arg ptr[in, rtc_time])
+ioctl$RTC_IRQP_READ(fd fd_rtc, cmd const[RTC_IRQP_READ], arg ptr[out, intptr])
+ioctl$RTC_IRQP_SET(fd fd_rtc, cmd const[RTC_IRQP_SET], arg intptr[1:RTC_MAX_FREQ])
+ioctl$RTC_EPOCH_READ(fd fd_rtc, cmd const[RTC_EPOCH_READ], arg ptr[out, intptr])
+ioctl$RTC_EPOCH_SET(fd fd_rtc, cmd const[RTC_EPOCH_SET], arg intptr)
+ioctl$RTC_WKALM_RD(fd fd_rtc, cmd const[RTC_WKALM_RD], arg ptr[out, rtc_wkalrm])
+ioctl$RTC_WKALM_SET(fd fd_rtc, cmd const[RTC_WKALM_SET], arg ptr[in, rtc_wkalrm])
+ioctl$RTC_PLL_GET(fd fd_rtc, cmd const[RTC_PLL_GET], arg ptr[out, rtc_pll_info])
+ioctl$RTC_PLL_SET(fd fd_rtc, cmd const[RTC_PLL_SET], arg ptr[in, rtc_pll_info])
+ioctl$RTC_VL_READ(fd fd_rtc, cmd const[RTC_VL_READ], arg ptr[out, int32])
+ioctl$RTC_VL_CLR(fd fd_rtc, cmd const[RTC_VL_CLR])
+
+rtc_time {
+ tm_sec int32[0:60]
+ tm_min int32[0:59]
+ tm_hour int32[0:23]
+ tm_mday int32[1:31]
+ tm_mon int32[0:11]
+ tm_year int32
+ tm_wday int32[0:6]
+ tm_yday int32[0:365]
+ tm_isdst flags[rtc_isdst, int32]
+}
+
+rtc_wkalrm {
+ enabled bool8
+ pending bool8
+ time rtc_time
+}
+
+rtc_pll_info {
+ pll_ctrl int32
+ pll_value int32
+ pll_max int32
+ pll_min int32
+ pll_posmult int32
+ pll_negmult int32
+ pll_clock intptr
+}
+
+rtc_isdst = 0, 1, 0xffffffffffffffff
diff --git a/sys/linux/rtc_386.const b/sys/linux/rtc_386.const
new file mode 100644
index 000000000..1e6636264
--- /dev/null
+++ b/sys/linux/rtc_386.const
@@ -0,0 +1,25 @@
+# AUTOGENERATED FILE
+RTC_AIE_OFF = 28674
+RTC_AIE_ON = 28673
+RTC_ALM_READ = 2149871624
+RTC_ALM_SET = 1076129799
+RTC_EPOCH_READ = 2147774477
+RTC_EPOCH_SET = 1074032654
+RTC_IRQP_READ = 2147774475
+RTC_IRQP_SET = 1074032652
+RTC_MAX_FREQ = 8192
+RTC_PIE_OFF = 28678
+RTC_PIE_ON = 28677
+RTC_PLL_GET = 2149347345
+RTC_PLL_SET = 1075605522
+RTC_RD_TIME = 2149871625
+RTC_SET_TIME = 1076129802
+RTC_UIE_OFF = 28676
+RTC_UIE_ON = 28675
+RTC_VL_CLR = 28692
+RTC_VL_READ = 2147774483
+RTC_WIE_OFF = 28688
+RTC_WIE_ON = 28687
+RTC_WKALM_RD = 2150133776
+RTC_WKALM_SET = 1076391951
+__NR_ioctl = 54
diff --git a/sys/linux/rtc_amd64.const b/sys/linux/rtc_amd64.const
new file mode 100644
index 000000000..fd1e9b1bd
--- /dev/null
+++ b/sys/linux/rtc_amd64.const
@@ -0,0 +1,25 @@
+# AUTOGENERATED FILE
+RTC_AIE_OFF = 28674
+RTC_AIE_ON = 28673
+RTC_ALM_READ = 2149871624
+RTC_ALM_SET = 1076129799
+RTC_EPOCH_READ = 2148036621
+RTC_EPOCH_SET = 1074294798
+RTC_IRQP_READ = 2148036619
+RTC_IRQP_SET = 1074294796
+RTC_MAX_FREQ = 8192
+RTC_PIE_OFF = 28678
+RTC_PIE_ON = 28677
+RTC_PLL_GET = 2149609489
+RTC_PLL_SET = 1075867666
+RTC_RD_TIME = 2149871625
+RTC_SET_TIME = 1076129802
+RTC_UIE_OFF = 28676
+RTC_UIE_ON = 28675
+RTC_VL_CLR = 28692
+RTC_VL_READ = 2147774483
+RTC_WIE_OFF = 28688
+RTC_WIE_ON = 28687
+RTC_WKALM_RD = 2150133776
+RTC_WKALM_SET = 1076391951
+__NR_ioctl = 16
diff --git a/sys/linux/rtc_arm.const b/sys/linux/rtc_arm.const
new file mode 100644
index 000000000..1e6636264
--- /dev/null
+++ b/sys/linux/rtc_arm.const
@@ -0,0 +1,25 @@
+# AUTOGENERATED FILE
+RTC_AIE_OFF = 28674
+RTC_AIE_ON = 28673
+RTC_ALM_READ = 2149871624
+RTC_ALM_SET = 1076129799
+RTC_EPOCH_READ = 2147774477
+RTC_EPOCH_SET = 1074032654
+RTC_IRQP_READ = 2147774475
+RTC_IRQP_SET = 1074032652
+RTC_MAX_FREQ = 8192
+RTC_PIE_OFF = 28678
+RTC_PIE_ON = 28677
+RTC_PLL_GET = 2149347345
+RTC_PLL_SET = 1075605522
+RTC_RD_TIME = 2149871625
+RTC_SET_TIME = 1076129802
+RTC_UIE_OFF = 28676
+RTC_UIE_ON = 28675
+RTC_VL_CLR = 28692
+RTC_VL_READ = 2147774483
+RTC_WIE_OFF = 28688
+RTC_WIE_ON = 28687
+RTC_WKALM_RD = 2150133776
+RTC_WKALM_SET = 1076391951
+__NR_ioctl = 54
diff --git a/sys/linux/rtc_arm64.const b/sys/linux/rtc_arm64.const
new file mode 100644
index 000000000..584a5054b
--- /dev/null
+++ b/sys/linux/rtc_arm64.const
@@ -0,0 +1,25 @@
+# AUTOGENERATED FILE
+RTC_AIE_OFF = 28674
+RTC_AIE_ON = 28673
+RTC_ALM_READ = 2149871624
+RTC_ALM_SET = 1076129799
+RTC_EPOCH_READ = 2148036621
+RTC_EPOCH_SET = 1074294798
+RTC_IRQP_READ = 2148036619
+RTC_IRQP_SET = 1074294796
+RTC_MAX_FREQ = 8192
+RTC_PIE_OFF = 28678
+RTC_PIE_ON = 28677
+RTC_PLL_GET = 2149609489
+RTC_PLL_SET = 1075867666
+RTC_RD_TIME = 2149871625
+RTC_SET_TIME = 1076129802
+RTC_UIE_OFF = 28676
+RTC_UIE_ON = 28675
+RTC_VL_CLR = 28692
+RTC_VL_READ = 2147774483
+RTC_WIE_OFF = 28688
+RTC_WIE_ON = 28687
+RTC_WKALM_RD = 2150133776
+RTC_WKALM_SET = 1076391951
+__NR_ioctl = 29
diff --git a/sys/linux/rtc_ppc64le.const b/sys/linux/rtc_ppc64le.const
new file mode 100644
index 000000000..6978ef4de
--- /dev/null
+++ b/sys/linux/rtc_ppc64le.const
@@ -0,0 +1,25 @@
+# AUTOGENERATED FILE
+RTC_AIE_OFF = 536899586
+RTC_AIE_ON = 536899585
+RTC_ALM_READ = 1076129800
+RTC_ALM_SET = 2149871623
+RTC_EPOCH_READ = 1074294797
+RTC_EPOCH_SET = 2148036622
+RTC_IRQP_READ = 1074294795
+RTC_IRQP_SET = 2148036620
+RTC_MAX_FREQ = 8192
+RTC_PIE_OFF = 536899590
+RTC_PIE_ON = 536899589
+RTC_PLL_GET = 1075867665
+RTC_PLL_SET = 2149609490
+RTC_RD_TIME = 1076129801
+RTC_SET_TIME = 2149871626
+RTC_UIE_OFF = 536899588
+RTC_UIE_ON = 536899587
+RTC_VL_CLR = 536899604
+RTC_VL_READ = 1074032659
+RTC_WIE_OFF = 536899600
+RTC_WIE_ON = 536899599
+RTC_WKALM_RD = 1076391952
+RTC_WKALM_SET = 2150133775
+__NR_ioctl = 54