diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-12-18 12:00:12 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-12-18 12:00:12 +0100 |
| commit | 82b3c9dfee666d32017d729cf2868a447622daa5 (patch) | |
| tree | 4a98cba10b5ab3a9b54136a2883ac02d1c29b713 /sys/linux/gen/amd64.go | |
| parent | 64627284145947e311db986c78f7619e244eade2 (diff) | |
sys/linux: fix few bugs
Fix some descirptions disperancies with kernel and regenerate warnings on next-20191218.
Diffstat (limited to 'sys/linux/gen/amd64.go')
| -rw-r--r-- | sys/linux/gen/amd64.go | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index 79487ade5..8ea7a6464 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -23661,11 +23661,10 @@ var structDescs_amd64 = []*KeyedStruct{ }}}, {Key: StructKey{Name: "snd_ctl_elem_value"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "snd_ctl_elem_value", TypeSize: 1224}, Fields: []Type{ &StructType{Key: StructKey{Name: "snd_ctl_elem_id"}, FldName: "id"}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "indir", TypeSize: 4}}, Kind: 1, RangeEnd: 1}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "indirect", TypeSize: 4}, BitfieldLen: 1}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 4}}, IsPad: true}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "value", TypeSize: 1024}, Type: &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", TypeSize: 8}}}, Kind: 1, RangeBegin: 128, RangeEnd: 128}, - &StructType{Key: StructKey{Name: "timespec"}, FldName: "tstamp"}, - &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 112}}, IsPad: true}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reserved", TypeSize: 128}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 128, RangeEnd: 128}, }}}, {Key: StructKey{Name: "snd_ctl_tlv"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "snd_ctl_tlv", IsVarlen: true}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "numid", TypeSize: 4}}}, @@ -23783,29 +23782,29 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "pad", TypeSize: 48}}, IsPad: true}, }}}, {Key: StructKey{Name: "snd_rawmidi_info"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "snd_rawmidi_info", TypeSize: 268}, Fields: []Type{ - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "dev", TypeSize: 4}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "subdev", TypeSize: 4}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "stream", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "device", TypeSize: 4}}}, + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "subdevice", TypeSize: 4}}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sndrv_rawmidi_stream", FldName: "stream", TypeSize: 4}}, Vals: []uint64{0, 1}, BitMask: true}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "card", TypeSize: 4}}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4}}}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "id", TypeSize: 64}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", TypeSize: 80}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 80, RangeEnd: 80}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "subname", TypeSize: 32}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "count", TypeSize: 4}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "avail", TypeSize: 4}}}, - &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "pad", TypeSize: 64}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "subdevices_count", TypeSize: 4}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "subdevices_avail", TypeSize: 4}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reserved", TypeSize: 64}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, }}}, - {Key: StructKey{Name: "snd_rawmidi_info_raw", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "snd_rawmidi_info_raw", TypeSize: 268, ArgDir: 1}, Fields: []Type{ + {Key: StructKey{Name: "snd_rawmidi_info", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "snd_rawmidi_info", TypeSize: 268, ArgDir: 1}, Fields: []Type{ &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "device", TypeSize: 4, ArgDir: 1}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "subdevice", TypeSize: 4, ArgDir: 1}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "sndrv_rawmidi_stream", FldName: "stream", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1}, BitMask: true}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "card", TypeSize: 4, ArgDir: 1}}}, - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "snd_rawmidi_info_flags", FldName: "flags", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{1, 2, 4}, BitMask: true}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "id", TypeSize: 64, ArgDir: 1}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", TypeSize: 80, ArgDir: 1}, Kind: 1, RangeBegin: 80, RangeEnd: 80}, - &BufferType{TypeCommon: TypeCommon{TypeName: "array", FldName: "subname", TypeSize: 32, ArgDir: 1}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "subdevices_count", TypeSize: 4, ArgDir: 1}}}, - &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "subdevices_avail", TypeSize: 4, ArgDir: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "card", TypeSize: 4, ArgDir: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "flags", TypeSize: 4, ArgDir: 1}}}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "id", TypeSize: 64, ArgDir: 1}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "name", TypeSize: 80, ArgDir: 1}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}}, Kind: 1, RangeBegin: 80, RangeEnd: 80}, + &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "subname", TypeSize: 32, ArgDir: 1}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}}, Kind: 1, RangeBegin: 32, RangeEnd: 32}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "subdevices_count", TypeSize: 4, ArgDir: 1}}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "subdevices_avail", TypeSize: 4, ArgDir: 1}}}, &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "reserved", TypeSize: 64, ArgDir: 1}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 1, ArgDir: 1}}}, Kind: 1, RangeBegin: 64, RangeEnd: 64}, }}}, {Key: StructKey{Name: "snd_rawmidi_params", Dir: 2}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "snd_rawmidi_params", TypeSize: 48, ArgDir: 2}, Fields: []Type{ @@ -39460,7 +39459,7 @@ var syscalls_amd64 = []*Syscall{ {NR: 16, Name: "ioctl$SNDRV_RAWMIDI_IOCTL_INFO", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_midi", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "cmd", TypeSize: 8}}, Val: 2165069569}, - &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "snd_rawmidi_info_raw", Dir: 1}}}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "arg", TypeSize: 8}, Type: &StructType{Key: StructKey{Name: "snd_rawmidi_info", Dir: 1}}}, }}, {NR: 16, Name: "ioctl$SNDRV_RAWMIDI_IOCTL_PARAMS", CallName: "ioctl", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_midi", FldName: "fd", TypeSize: 4}}, @@ -54534,9 +54533,6 @@ var consts_amd64 = []ConstValue{ {Name: "SNDRV_PCM_SYNC_PTR_APPL", Value: 2}, {Name: "SNDRV_PCM_SYNC_PTR_AVAIL_MIN", Value: 4}, {Name: "SNDRV_PCM_SYNC_PTR_HWSYNC", Value: 1}, - {Name: "SNDRV_RAWMIDI_INFO_DUPLEX", Value: 4}, - {Name: "SNDRV_RAWMIDI_INFO_INPUT", Value: 2}, - {Name: "SNDRV_RAWMIDI_INFO_OUTPUT", Value: 1}, {Name: "SNDRV_RAWMIDI_IOCTL_DRAIN", Value: 1074026289}, {Name: "SNDRV_RAWMIDI_IOCTL_DROP", Value: 1074026288}, {Name: "SNDRV_RAWMIDI_IOCTL_INFO", Value: 2165069569}, @@ -54672,7 +54668,6 @@ var consts_amd64 = []ConstValue{ {Name: "SNDRV_TIMER_SCLASS_OSS_SEQUENCER", Value: 3}, {Name: "SNDRV_TIMER_SCLASS_SEQUENCER", Value: 2}, {Name: "SND_CTL_ELEM_INFO_SIZE", Value: 272}, - {Name: "SND_CTL_ELEM_VALUE_SIZE", Value: 1224}, {Name: "SND_MAX", Value: 7}, {Name: "SND_PCM_CHANNEL_INFO_SIZE", Value: 24}, {Name: "SND_PCM_INFO_SIZE", Value: 288}, @@ -57970,4 +57965,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "0ba3a655b530c6b547fb97179e874810bf8a3d52" +const revision_amd64 = "a07a29931e5835ca1607b51ef9da050ee8c3a322" |
