Skip to content

Commit 7bda0bd

Browse files
authored
Update to Linux 6.13. (#146)
1 parent 7ffc240 commit 7bda0bd

File tree

146 files changed

+3505
-292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+3505
-292
lines changed

gen/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::process::Command;
1010
use std::{env, fs};
1111

1212
#[allow(unused_doc_comments)]
13-
const LINUX_VERSION: &str = "v6.12";
13+
const LINUX_VERSION: &str = "v6.13";
1414

1515
/// Some commonly used features.
1616
const DEFAULT_FEATURES: &str = "\"general\", \"errno\"";

src/aarch64/btrfs.rs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,13 @@ pub propagate_from: __u64,
157157
pub mnt_root: __u32,
158158
pub mnt_point: __u32,
159159
pub mnt_ns_id: __u64,
160-
pub __spare2: [__u64; 49usize],
160+
pub fs_subtype: __u32,
161+
pub sb_source: __u32,
162+
pub opt_num: __u32,
163+
pub opt_array: __u32,
164+
pub opt_sec_num: __u32,
165+
pub opt_sec_array: __u32,
166+
pub __spare2: [__u64; 46usize],
161167
pub str_: __IncompleteArrayField<crate::ctypes::c_char>,
162168
}
163169
#[repr(C)]
@@ -709,6 +715,13 @@ pub compression: __u32,
709715
pub encryption: __u32,
710716
pub reserved: [__u8; 64usize],
711717
}
718+
#[repr(C)]
719+
#[derive(Debug, Copy, Clone)]
720+
pub struct btrfs_ioctl_subvol_wait {
721+
pub subvolid: __u64,
722+
pub mode: __u32,
723+
pub count: __u32,
724+
}
712725
#[repr(C, packed)]
713726
#[derive(Debug, Copy, Clone)]
714727
pub struct btrfs_disk_key {
@@ -1326,6 +1339,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16;
13261339
pub const STATMOUNT_FS_TYPE: u32 = 32;
13271340
pub const STATMOUNT_MNT_NS_ID: u32 = 64;
13281341
pub const STATMOUNT_MNT_OPTS: u32 = 128;
1342+
pub const STATMOUNT_FS_SUBTYPE: u32 = 256;
1343+
pub const STATMOUNT_SB_SOURCE: u32 = 512;
1344+
pub const STATMOUNT_OPT_ARRAY: u32 = 1024;
1345+
pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048;
13291346
pub const LSMT_ROOT: i32 = -1;
13301347
pub const LISTMOUNT_REVERSE: u32 = 1;
13311348
pub const INR_OPEN_CUR: u32 = 1024;
@@ -1528,6 +1545,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7;
15281545
pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8;
15291546
pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0;
15301547
pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1;
1548+
pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0;
1549+
pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1;
1550+
pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2;
1551+
pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3;
1552+
pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4;
15311553
pub const BTRFS_MAGIC: u64 = 5575266562640200287;
15321554
pub const BTRFS_MAX_LEVEL: u32 = 8;
15331555
pub const BTRFS_NAME_LEN: u32 = 255;

src/aarch64/elf_uapi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,13 +491,15 @@ pub const NT_ARM_ZA: u32 = 1036;
491491
pub const NT_ARM_ZT: u32 = 1037;
492492
pub const NT_ARM_FPMR: u32 = 1038;
493493
pub const NT_ARM_POE: u32 = 1039;
494+
pub const NT_ARM_GCS: u32 = 1040;
494495
pub const NT_ARC_V2: u32 = 1536;
495496
pub const NT_VMCOREDD: u32 = 1792;
496497
pub const NT_MIPS_DSP: u32 = 2048;
497498
pub const NT_MIPS_FP_MODE: u32 = 2049;
498499
pub const NT_MIPS_MSA: u32 = 2050;
499500
pub const NT_RISCV_CSR: u32 = 2304;
500501
pub const NT_RISCV_VECTOR: u32 = 2305;
502+
pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306;
501503
pub const NT_LOONGARCH_CPUCFG: u32 = 2560;
502504
pub const NT_LOONGARCH_CSR: u32 = 2561;
503505
pub const NT_LOONGARCH_LSX: u32 = 2562;

src/aarch64/general.rs

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,13 @@ pub propagate_from: __u64,
271271
pub mnt_root: __u32,
272272
pub mnt_point: __u32,
273273
pub mnt_ns_id: __u64,
274-
pub __spare2: [__u64; 49usize],
274+
pub fs_subtype: __u32,
275+
pub sb_source: __u32,
276+
pub opt_num: __u32,
277+
pub opt_array: __u32,
278+
pub opt_sec_num: __u32,
279+
pub opt_sec_array: __u32,
280+
pub __spare2: [__u64; 46usize],
275281
pub str_: __IncompleteArrayField<crate::ctypes::c_char>,
276282
}
277283
#[repr(C)]
@@ -803,6 +809,13 @@ pub struct dmabuf_token {
803809
pub token_start: __u32,
804810
pub token_count: __u32,
805811
}
812+
#[repr(C)]
813+
#[derive(Debug, Copy, Clone)]
814+
pub struct xattr_args {
815+
pub value: __u64,
816+
pub size: __u32,
817+
pub flags: __u32,
818+
}
806819
#[repr(C, packed)]
807820
#[derive(Copy, Clone)]
808821
pub struct uffd_msg {
@@ -1013,9 +1026,9 @@ pub sa_flags: crate::ctypes::c_ulong,
10131026
pub sa_restorer: __sigrestore_t,
10141027
pub sa_mask: kernel_sigset_t,
10151028
}
1016-
pub const LINUX_VERSION_CODE: u32 = 396288;
1029+
pub const LINUX_VERSION_CODE: u32 = 396544;
10171030
pub const LINUX_VERSION_MAJOR: u32 = 6;
1018-
pub const LINUX_VERSION_PATCHLEVEL: u32 = 12;
1031+
pub const LINUX_VERSION_PATCHLEVEL: u32 = 13;
10191032
pub const LINUX_VERSION_SUBLEVEL: u32 = 0;
10201033
pub const AT_SYSINFO_EHDR: u32 = 33;
10211034
pub const AT_MINSIGSTKSZ: u32 = 51;
@@ -1229,6 +1242,7 @@ pub const AT_EACCESS: u32 = 512;
12291242
pub const AT_REMOVEDIR: u32 = 512;
12301243
pub const AT_HANDLE_FID: u32 = 512;
12311244
pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1;
1245+
pub const AT_HANDLE_CONNECTABLE: u32 = 2;
12321246
pub const EPOLL_CLOEXEC: u32 = 524288;
12331247
pub const EPOLL_CTL_ADD: u32 = 1;
12341248
pub const EPOLL_CTL_DEL: u32 = 2;
@@ -1405,6 +1419,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16;
14051419
pub const STATMOUNT_FS_TYPE: u32 = 32;
14061420
pub const STATMOUNT_MNT_NS_ID: u32 = 64;
14071421
pub const STATMOUNT_MNT_OPTS: u32 = 128;
1422+
pub const STATMOUNT_FS_SUBTYPE: u32 = 256;
1423+
pub const STATMOUNT_SB_SOURCE: u32 = 512;
1424+
pub const STATMOUNT_OPT_ARRAY: u32 = 1024;
1425+
pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048;
14081426
pub const LSMT_ROOT: i32 = -1;
14091427
pub const LISTMOUNT_REVERSE: u32 = 1;
14101428
pub const INR_OPEN_CUR: u32 = 1024;
@@ -1704,6 +1722,8 @@ pub const MADV_POPULATE_READ: u32 = 22;
17041722
pub const MADV_POPULATE_WRITE: u32 = 23;
17051723
pub const MADV_DONTNEED_LOCKED: u32 = 24;
17061724
pub const MADV_COLLAPSE: u32 = 25;
1725+
pub const MADV_GUARD_INSTALL: u32 = 102;
1726+
pub const MADV_GUARD_REMOVE: u32 = 103;
17071727
pub const MAP_FILE: u32 = 0;
17081728
pub const PKEY_DISABLE_ACCESS: u32 = 1;
17091729
pub const PKEY_DISABLE_WRITE: u32 = 2;
@@ -1716,6 +1736,8 @@ pub const MAP_NORESERVE: u32 = 16384;
17161736
pub const MCL_CURRENT: u32 = 1;
17171737
pub const MCL_FUTURE: u32 = 2;
17181738
pub const MCL_ONFAULT: u32 = 4;
1739+
pub const SHADOW_STACK_SET_TOKEN: u32 = 1;
1740+
pub const SHADOW_STACK_SET_MARKER: u32 = 2;
17191741
pub const PROT_BTI: u32 = 16;
17201742
pub const PROT_MTE: u32 = 32;
17211743
pub const PKEY_DISABLE_EXECUTE: u32 = 4;
@@ -2574,6 +2596,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459;
25742596
pub const __NR_lsm_set_self_attr: u32 = 460;
25752597
pub const __NR_lsm_list_modules: u32 = 461;
25762598
pub const __NR_mseal: u32 = 462;
2599+
pub const __NR_setxattrat: u32 = 463;
2600+
pub const __NR_getxattrat: u32 = 464;
2601+
pub const __NR_listxattrat: u32 = 465;
2602+
pub const __NR_removexattrat: u32 = 466;
25772603
pub const WNOHANG: u32 = 1;
25782604
pub const WUNTRACED: u32 = 2;
25792605
pub const WSTOPPED: u32 = 2;

src/aarch64/if_arp.rs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT;
11091109
pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE;
11101110
pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE;
11111111
pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN;
1112+
pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON;
11121113
pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX;
11131114
pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC;
11141115
pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK;
@@ -1294,6 +1295,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM
12941295
pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY;
12951296
pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY;
12961297
pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE;
1298+
pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB;
1299+
pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB;
12971300
pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX;
12981301
pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC;
12991302
pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES;
@@ -1584,6 +1587,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS;
15841587
pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX;
15851588
pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC;
15861589
pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET;
1590+
pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING;
15871591
pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX;
15881592
pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC;
15891593
pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT;
@@ -1790,7 +1794,8 @@ IFLA_DEVLINK_PORT = 62,
17901794
IFLA_GSO_IPV4_MAX_SIZE = 63,
17911795
IFLA_GRO_IPV4_MAX_SIZE = 64,
17921796
IFLA_DPLL_PIN = 65,
1793-
__IFLA_MAX = 66,
1797+
IFLA_MAX_PACING_OFFLOAD_HORIZON = 66,
1798+
__IFLA_MAX = 67,
17941799
}
17951800
#[repr(u32)]
17961801
#[non_exhaustive]
@@ -2118,14 +2123,23 @@ NETKIT_L3 = 1,
21182123
#[repr(u32)]
21192124
#[non_exhaustive]
21202125
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2126+
pub enum netkit_scrub {
2127+
NETKIT_SCRUB_NONE = 0,
2128+
NETKIT_SCRUB_DEFAULT = 1,
2129+
}
2130+
#[repr(u32)]
2131+
#[non_exhaustive]
2132+
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
21212133
pub enum _bindgen_ty_20 {
21222134
IFLA_NETKIT_UNSPEC = 0,
21232135
IFLA_NETKIT_PEER_INFO = 1,
21242136
IFLA_NETKIT_PRIMARY = 2,
21252137
IFLA_NETKIT_POLICY = 3,
21262138
IFLA_NETKIT_PEER_POLICY = 4,
21272139
IFLA_NETKIT_MODE = 5,
2128-
__IFLA_NETKIT_MAX = 6,
2140+
IFLA_NETKIT_SCRUB = 6,
2141+
IFLA_NETKIT_PEER_SCRUB = 7,
2142+
__IFLA_NETKIT_MAX = 8,
21292143
}
21302144
#[repr(u32)]
21312145
#[non_exhaustive]
@@ -2623,7 +2637,8 @@ __IFLA_RMNET_MAX = 3,
26232637
pub enum _bindgen_ty_55 {
26242638
IFLA_MCTP_UNSPEC = 0,
26252639
IFLA_MCTP_NET = 1,
2626-
__IFLA_MCTP_MAX = 2,
2640+
IFLA_MCTP_PHYS_BINDING = 2,
2641+
__IFLA_MCTP_MAX = 3,
26272642
}
26282643
#[repr(u32)]
26292644
#[non_exhaustive]

0 commit comments

Comments
 (0)