diff --git a/gen/src/main.rs b/gen/src/main.rs index 4d388f86..e8070241 100644 --- a/gen/src/main.rs +++ b/gen/src/main.rs @@ -10,7 +10,7 @@ use std::process::Command; use std::{env, fs}; #[allow(unused_doc_comments)] -const LINUX_VERSION: &str = "v6.12"; +const LINUX_VERSION: &str = "v6.13"; /// Some commonly used features. const DEFAULT_FEATURES: &str = "\"general\", \"errno\""; diff --git a/src/aarch64/btrfs.rs b/src/aarch64/btrfs.rs index b2bff075..69e5d437 100644 --- a/src/aarch64/btrfs.rs +++ b/src/aarch64/btrfs.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -709,6 +715,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1326,6 +1339,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1528,6 +1545,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/aarch64/elf_uapi.rs b/src/aarch64/elf_uapi.rs index 2873c3c2..f1826adf 100644 --- a/src/aarch64/elf_uapi.rs +++ b/src/aarch64/elf_uapi.rs @@ -491,6 +491,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -498,6 +499,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/aarch64/general.rs b/src/aarch64/general.rs index 85c6e023..a871106f 100644 --- a/src/aarch64/general.rs +++ b/src/aarch64/general.rs @@ -271,7 +271,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -803,6 +809,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1013,9 +1026,9 @@ pub sa_flags: crate::ctypes::c_ulong, pub sa_restorer: __sigrestore_t, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_MINSIGSTKSZ: u32 = 51; @@ -1229,6 +1242,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1405,6 +1419,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1704,6 +1722,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1716,6 +1736,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const PROT_BTI: u32 = 16; pub const PROT_MTE: u32 = 32; pub const PKEY_DISABLE_EXECUTE: u32 = 4; @@ -2574,6 +2596,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/aarch64/if_arp.rs b/src/aarch64/if_arp.rs index 36b3e3d6..0fc2d01e 100644 --- a/src/aarch64/if_arp.rs +++ b/src/aarch64/if_arp.rs @@ -1109,6 +1109,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; 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 pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; 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; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1790,7 +1794,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2118,6 +2123,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2125,7 +2137,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2623,7 +2637,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/aarch64/io_uring.rs b/src/aarch64/io_uring.rs index 842952f4..37c60fd9 100644 --- a/src/aarch64/io_uring.rs +++ b/src/aarch64/io_uring.rs @@ -159,7 +159,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -423,6 +429,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -483,7 +506,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -541,8 +567,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -735,6 +774,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -837,6 +880,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -873,6 +917,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -895,6 +942,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -914,7 +962,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1058,7 +1110,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1072,7 +1127,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1084,6 +1152,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1094,6 +1178,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/aarch64/net.rs b/src/aarch64/net.rs index f1edee3a..8dbe738d 100644 --- a/src/aarch64/net.rs +++ b/src/aarch64/net.rs @@ -1200,6 +1200,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/aarch64/netlink.rs b/src/aarch64/netlink.rs index b02523f7..f82019d1 100644 --- a/src/aarch64/netlink.rs +++ b/src/aarch64/netlink.rs @@ -824,6 +824,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1009,6 +1010,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1299,6 +1302,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1653,7 +1657,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1981,6 +1986,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1988,7 +2000,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2486,7 +2500,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/aarch64/prctl.rs b/src/aarch64/prctl.rs index 03490849..93b5ecde 100644 --- a/src/aarch64/prctl.rs +++ b/src/aarch64/prctl.rs @@ -194,6 +194,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -252,3 +254,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/aarch64/ptrace.rs b/src/aarch64/ptrace.rs index a032965f..ee3a1cc8 100644 --- a/src/aarch64/ptrace.rs +++ b/src/aarch64/ptrace.rs @@ -243,6 +243,13 @@ pub __reserved: __u16, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct user_gcs { +pub features_enabled: __u64, +pub features_locked: __u64, +pub gcspr_el0: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct seccomp_data { pub nr: crate::ctypes::c_int, pub arch: __u32, @@ -788,6 +795,7 @@ pub const HWCAP_SSBS: u32 = 268435456; pub const HWCAP_SB: u32 = 536870912; pub const HWCAP_PACA: u32 = 1073741824; pub const HWCAP_PACG: u32 = 2147483648; +pub const HWCAP_GCS: u64 = 4294967296; pub const HWCAP2_DCPODP: u32 = 1; pub const HWCAP2_SVE2: u32 = 2; pub const HWCAP2_SVEAES: u32 = 4; diff --git a/src/arm/btrfs.rs b/src/arm/btrfs.rs index bae9836f..5e5a3a91 100644 --- a/src/arm/btrfs.rs +++ b/src/arm/btrfs.rs @@ -155,7 +155,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -707,6 +713,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1324,6 +1337,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1526,6 +1543,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/arm/elf_uapi.rs b/src/arm/elf_uapi.rs index 291b86b1..8a15bb76 100644 --- a/src/arm/elf_uapi.rs +++ b/src/arm/elf_uapi.rs @@ -489,6 +489,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -496,6 +497,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/arm/general.rs b/src/arm/general.rs index f60f2455..86682b9c 100644 --- a/src/arm/general.rs +++ b/src/arm/general.rs @@ -269,7 +269,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -796,6 +802,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1042,9 +1055,9 @@ pub sa_flags: crate::ctypes::c_ulong, pub sa_restorer: __sigrestore_t, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_NULL: u32 = 0; @@ -1260,6 +1273,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1436,6 +1450,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1735,6 +1753,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1747,6 +1767,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2700,6 +2722,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const __NR_sync_file_range2: u32 = 341; pub const __ARM_NR_BASE: u32 = 983040; pub const __ARM_NR_breakpoint: u32 = 983041; diff --git a/src/arm/if_arp.rs b/src/arm/if_arp.rs index b3de2df6..04487977 100644 --- a/src/arm/if_arp.rs +++ b/src/arm/if_arp.rs @@ -1107,6 +1107,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1292,6 +1293,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1582,6 +1585,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1788,7 +1792,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2116,6 +2121,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2123,7 +2135,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2621,7 +2635,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/arm/io_uring.rs b/src/arm/io_uring.rs index 1da8cfb4..29a66c73 100644 --- a/src/arm/io_uring.rs +++ b/src/arm/io_uring.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -421,6 +427,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -481,7 +504,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -539,8 +565,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -733,6 +772,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -835,6 +878,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -871,6 +915,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -893,6 +940,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -912,7 +960,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1056,7 +1108,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1070,7 +1125,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1082,6 +1150,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1092,6 +1176,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/arm/net.rs b/src/arm/net.rs index 82048866..5bc2e1f9 100644 --- a/src/arm/net.rs +++ b/src/arm/net.rs @@ -1200,6 +1200,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SYS_SOCKET: u32 = 1; pub const SYS_BIND: u32 = 2; pub const SYS_CONNECT: u32 = 3; diff --git a/src/arm/netlink.rs b/src/arm/netlink.rs index d50632d6..aa0ca950 100644 --- a/src/arm/netlink.rs +++ b/src/arm/netlink.rs @@ -822,6 +822,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1007,6 +1008,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1297,6 +1300,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1651,7 +1655,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1979,6 +1984,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1986,7 +1998,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2484,7 +2498,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/arm/prctl.rs b/src/arm/prctl.rs index 6cb3e050..04a1a0bb 100644 --- a/src/arm/prctl.rs +++ b/src/arm/prctl.rs @@ -192,6 +192,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -250,3 +252,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/csky/btrfs.rs b/src/csky/btrfs.rs index 0a402bbf..47b5ea6f 100644 --- a/src/csky/btrfs.rs +++ b/src/csky/btrfs.rs @@ -155,7 +155,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -707,6 +713,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1324,6 +1337,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1526,6 +1543,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/csky/elf_uapi.rs b/src/csky/elf_uapi.rs index 08932345..feed3403 100644 --- a/src/csky/elf_uapi.rs +++ b/src/csky/elf_uapi.rs @@ -489,6 +489,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -496,6 +497,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/csky/general.rs b/src/csky/general.rs index 121d8706..6bfa080e 100644 --- a/src/csky/general.rs +++ b/src/csky/general.rs @@ -269,7 +269,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -801,6 +807,14 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1034,9 +1048,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_NULL: u32 = 0; pub const AT_IGNORE: u32 = 1; @@ -1251,6 +1265,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1427,6 +1442,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1726,6 +1745,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1738,6 +1759,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2609,6 +2632,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const __NR_sync_file_range2: u32 = 84; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; diff --git a/src/csky/if_arp.rs b/src/csky/if_arp.rs index 6db3a04e..00753260 100644 --- a/src/csky/if_arp.rs +++ b/src/csky/if_arp.rs @@ -1109,6 +1109,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; 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 pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; 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; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1790,7 +1794,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2118,6 +2123,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2125,7 +2137,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2623,7 +2637,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/csky/io_uring.rs b/src/csky/io_uring.rs index 9abb6125..a1dd63ac 100644 --- a/src/csky/io_uring.rs +++ b/src/csky/io_uring.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -421,6 +427,23 @@ pub resv: __u32, pub fds: __u64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] #[repr(align(8))] #[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { @@ -485,7 +508,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -543,8 +569,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -737,6 +776,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -839,6 +882,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -875,6 +919,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -897,6 +944,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -916,7 +964,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1060,7 +1112,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1074,7 +1129,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1086,6 +1154,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1096,6 +1180,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/csky/net.rs b/src/csky/net.rs index 9975da6a..470ef1aa 100644 --- a/src/csky/net.rs +++ b/src/csky/net.rs @@ -1202,6 +1202,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SYS_SOCKET: u32 = 1; pub const SYS_BIND: u32 = 2; pub const SYS_CONNECT: u32 = 3; diff --git a/src/csky/netlink.rs b/src/csky/netlink.rs index 54c2bd2c..da094191 100644 --- a/src/csky/netlink.rs +++ b/src/csky/netlink.rs @@ -822,6 +822,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1007,6 +1008,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1297,6 +1300,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1651,7 +1655,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1979,6 +1984,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1986,7 +1998,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2484,7 +2498,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/csky/prctl.rs b/src/csky/prctl.rs index bc2ae74d..ff42b482 100644 --- a/src/csky/prctl.rs +++ b/src/csky/prctl.rs @@ -192,6 +192,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -250,3 +252,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/loongarch64/btrfs.rs b/src/loongarch64/btrfs.rs index 5332ee54..eb8c2cda 100644 --- a/src/loongarch64/btrfs.rs +++ b/src/loongarch64/btrfs.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -709,6 +715,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1326,6 +1339,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1528,6 +1545,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/loongarch64/elf_uapi.rs b/src/loongarch64/elf_uapi.rs index 2e5517d6..d879ebbf 100644 --- a/src/loongarch64/elf_uapi.rs +++ b/src/loongarch64/elf_uapi.rs @@ -491,6 +491,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -498,6 +499,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/loongarch64/general.rs b/src/loongarch64/general.rs index 96188f5e..ff9ce268 100644 --- a/src/loongarch64/general.rs +++ b/src/loongarch64/general.rs @@ -271,7 +271,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -802,6 +808,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1011,9 +1024,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; @@ -1227,6 +1240,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1403,6 +1417,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1702,6 +1720,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1714,6 +1734,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2561,6 +2583,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/loongarch64/if_arp.rs b/src/loongarch64/if_arp.rs index 9dbf9b47..a41c4749 100644 --- a/src/loongarch64/if_arp.rs +++ b/src/loongarch64/if_arp.rs @@ -1109,6 +1109,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; 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 pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; 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; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1790,7 +1794,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2118,6 +2123,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2125,7 +2137,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2623,7 +2637,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/loongarch64/io_uring.rs b/src/loongarch64/io_uring.rs index 2518db22..9ae142e9 100644 --- a/src/loongarch64/io_uring.rs +++ b/src/loongarch64/io_uring.rs @@ -159,7 +159,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -423,6 +429,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -483,7 +506,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -541,8 +567,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -735,6 +774,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -837,6 +880,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -873,6 +917,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -895,6 +942,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -914,7 +962,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1058,7 +1110,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1072,7 +1127,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1084,6 +1152,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1094,6 +1178,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/loongarch64/net.rs b/src/loongarch64/net.rs index 5a96657b..138e1d60 100644 --- a/src/loongarch64/net.rs +++ b/src/loongarch64/net.rs @@ -1200,6 +1200,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/loongarch64/netlink.rs b/src/loongarch64/netlink.rs index 8624280f..67077f03 100644 --- a/src/loongarch64/netlink.rs +++ b/src/loongarch64/netlink.rs @@ -824,6 +824,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1009,6 +1010,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1299,6 +1302,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1653,7 +1657,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1981,6 +1986,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1988,7 +2000,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2486,7 +2500,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/loongarch64/prctl.rs b/src/loongarch64/prctl.rs index 11c5b54a..1726036f 100644 --- a/src/loongarch64/prctl.rs +++ b/src/loongarch64/prctl.rs @@ -194,6 +194,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -252,3 +254,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/mips/btrfs.rs b/src/mips/btrfs.rs index 00332911..eb47a4fa 100644 --- a/src/mips/btrfs.rs +++ b/src/mips/btrfs.rs @@ -155,7 +155,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -707,6 +713,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1334,6 +1347,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1536,6 +1553,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/mips/elf_uapi.rs b/src/mips/elf_uapi.rs index b3556d05..989c44fb 100644 --- a/src/mips/elf_uapi.rs +++ b/src/mips/elf_uapi.rs @@ -499,6 +499,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -506,6 +507,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/mips/general.rs b/src/mips/general.rs index 31c736b7..1bb5d58e 100644 --- a/src/mips/general.rs +++ b/src/mips/general.rs @@ -272,7 +272,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -832,6 +838,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1049,9 +1062,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; @@ -1278,6 +1291,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1454,6 +1468,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1762,6 +1780,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -2874,6 +2894,10 @@ pub const __NR_lsm_get_self_attr: u32 = 4459; pub const __NR_lsm_set_self_attr: u32 = 4460; pub const __NR_lsm_list_modules: u32 = 4461; pub const __NR_mseal: u32 = 4462; +pub const __NR_setxattrat: u32 = 4463; +pub const __NR_getxattrat: u32 = 4464; +pub const __NR_listxattrat: u32 = 4465; +pub const __NR_removexattrat: u32 = 4466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/mips/if_arp.rs b/src/mips/if_arp.rs index 411d12b1..a1e794c0 100644 --- a/src/mips/if_arp.rs +++ b/src/mips/if_arp.rs @@ -1117,6 +1117,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1302,6 +1303,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1592,6 +1595,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1798,7 +1802,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2126,6 +2131,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2133,7 +2145,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2631,7 +2645,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips/io_uring.rs b/src/mips/io_uring.rs index 1f49f030..97dc58b0 100644 --- a/src/mips/io_uring.rs +++ b/src/mips/io_uring.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -421,6 +427,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -481,7 +504,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -539,8 +565,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -743,6 +782,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -845,6 +888,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -881,6 +925,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -903,6 +950,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -922,7 +970,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1066,7 +1118,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1080,7 +1135,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1092,6 +1160,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1102,6 +1186,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/mips/net.rs b/src/mips/net.rs index d9352636..335c270e 100644 --- a/src/mips/net.rs +++ b/src/mips/net.rs @@ -1231,6 +1231,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SYS_SOCKET: u32 = 1; pub const SYS_BIND: u32 = 2; pub const SYS_CONNECT: u32 = 3; diff --git a/src/mips/netlink.rs b/src/mips/netlink.rs index f6838e7c..8f77b15f 100644 --- a/src/mips/netlink.rs +++ b/src/mips/netlink.rs @@ -832,6 +832,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1017,6 +1018,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1307,6 +1310,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1661,7 +1665,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1989,6 +1994,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1996,7 +2008,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2494,7 +2508,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips/prctl.rs b/src/mips/prctl.rs index 7196a028..6d0ad7d7 100644 --- a/src/mips/prctl.rs +++ b/src/mips/prctl.rs @@ -202,6 +202,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -260,3 +262,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/mips32r6/btrfs.rs b/src/mips32r6/btrfs.rs index 00332911..eb47a4fa 100644 --- a/src/mips32r6/btrfs.rs +++ b/src/mips32r6/btrfs.rs @@ -155,7 +155,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -707,6 +713,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1334,6 +1347,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1536,6 +1553,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/mips32r6/elf_uapi.rs b/src/mips32r6/elf_uapi.rs index b3556d05..989c44fb 100644 --- a/src/mips32r6/elf_uapi.rs +++ b/src/mips32r6/elf_uapi.rs @@ -499,6 +499,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -506,6 +507,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/mips32r6/general.rs b/src/mips32r6/general.rs index 31c736b7..1bb5d58e 100644 --- a/src/mips32r6/general.rs +++ b/src/mips32r6/general.rs @@ -272,7 +272,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -832,6 +838,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1049,9 +1062,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; @@ -1278,6 +1291,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1454,6 +1468,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1762,6 +1780,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -2874,6 +2894,10 @@ pub const __NR_lsm_get_self_attr: u32 = 4459; pub const __NR_lsm_set_self_attr: u32 = 4460; pub const __NR_lsm_list_modules: u32 = 4461; pub const __NR_mseal: u32 = 4462; +pub const __NR_setxattrat: u32 = 4463; +pub const __NR_getxattrat: u32 = 4464; +pub const __NR_listxattrat: u32 = 4465; +pub const __NR_removexattrat: u32 = 4466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/mips32r6/if_arp.rs b/src/mips32r6/if_arp.rs index 411d12b1..a1e794c0 100644 --- a/src/mips32r6/if_arp.rs +++ b/src/mips32r6/if_arp.rs @@ -1117,6 +1117,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1302,6 +1303,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1592,6 +1595,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1798,7 +1802,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2126,6 +2131,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2133,7 +2145,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2631,7 +2645,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips32r6/io_uring.rs b/src/mips32r6/io_uring.rs index 1f49f030..97dc58b0 100644 --- a/src/mips32r6/io_uring.rs +++ b/src/mips32r6/io_uring.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -421,6 +427,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -481,7 +504,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -539,8 +565,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -743,6 +782,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -845,6 +888,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -881,6 +925,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -903,6 +950,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -922,7 +970,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1066,7 +1118,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1080,7 +1135,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1092,6 +1160,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1102,6 +1186,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/mips32r6/net.rs b/src/mips32r6/net.rs index d9352636..335c270e 100644 --- a/src/mips32r6/net.rs +++ b/src/mips32r6/net.rs @@ -1231,6 +1231,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SYS_SOCKET: u32 = 1; pub const SYS_BIND: u32 = 2; pub const SYS_CONNECT: u32 = 3; diff --git a/src/mips32r6/netlink.rs b/src/mips32r6/netlink.rs index f6838e7c..8f77b15f 100644 --- a/src/mips32r6/netlink.rs +++ b/src/mips32r6/netlink.rs @@ -832,6 +832,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1017,6 +1018,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1307,6 +1310,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1661,7 +1665,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1989,6 +1994,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1996,7 +2008,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2494,7 +2508,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips32r6/prctl.rs b/src/mips32r6/prctl.rs index 7196a028..6d0ad7d7 100644 --- a/src/mips32r6/prctl.rs +++ b/src/mips32r6/prctl.rs @@ -202,6 +202,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -260,3 +262,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/mips64/btrfs.rs b/src/mips64/btrfs.rs index c464c2fc..7ce1163b 100644 --- a/src/mips64/btrfs.rs +++ b/src/mips64/btrfs.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -709,6 +715,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1336,6 +1349,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1538,6 +1555,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/mips64/elf_uapi.rs b/src/mips64/elf_uapi.rs index 3e0ae8d3..9225cdb8 100644 --- a/src/mips64/elf_uapi.rs +++ b/src/mips64/elf_uapi.rs @@ -501,6 +501,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -508,6 +509,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/mips64/general.rs b/src/mips64/general.rs index bef4c8bb..8e8529bc 100644 --- a/src/mips64/general.rs +++ b/src/mips64/general.rs @@ -272,7 +272,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -832,6 +838,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1041,9 +1054,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; @@ -1267,6 +1280,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1443,6 +1457,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1751,6 +1769,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -2793,6 +2813,10 @@ pub const __NR_lsm_get_self_attr: u32 = 5459; pub const __NR_lsm_set_self_attr: u32 = 5460; pub const __NR_lsm_list_modules: u32 = 5461; pub const __NR_mseal: u32 = 5462; +pub const __NR_setxattrat: u32 = 5463; +pub const __NR_getxattrat: u32 = 5464; +pub const __NR_listxattrat: u32 = 5465; +pub const __NR_removexattrat: u32 = 5466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/mips64/if_arp.rs b/src/mips64/if_arp.rs index c8c7be8a..f10aa474 100644 --- a/src/mips64/if_arp.rs +++ b/src/mips64/if_arp.rs @@ -1119,6 +1119,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1304,6 +1305,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1594,6 +1597,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1800,7 +1804,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2128,6 +2133,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2135,7 +2147,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2633,7 +2647,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips64/io_uring.rs b/src/mips64/io_uring.rs index 5bdcca75..622c3ff3 100644 --- a/src/mips64/io_uring.rs +++ b/src/mips64/io_uring.rs @@ -159,7 +159,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -423,6 +429,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -483,7 +506,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -541,8 +567,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -745,6 +784,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -847,6 +890,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -883,6 +927,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -905,6 +952,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -924,7 +972,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1068,7 +1120,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1082,7 +1137,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1094,6 +1162,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1104,6 +1188,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/mips64/net.rs b/src/mips64/net.rs index b2e61441..8fb13960 100644 --- a/src/mips64/net.rs +++ b/src/mips64/net.rs @@ -1231,6 +1231,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/mips64/netlink.rs b/src/mips64/netlink.rs index cab1f72c..c71cacfb 100644 --- a/src/mips64/netlink.rs +++ b/src/mips64/netlink.rs @@ -834,6 +834,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1019,6 +1020,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1309,6 +1312,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1663,7 +1667,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1991,6 +1996,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1998,7 +2010,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2496,7 +2510,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips64/prctl.rs b/src/mips64/prctl.rs index 4f450fb7..f07e65fe 100644 --- a/src/mips64/prctl.rs +++ b/src/mips64/prctl.rs @@ -204,6 +204,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -262,3 +264,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/mips64r6/btrfs.rs b/src/mips64r6/btrfs.rs index c464c2fc..7ce1163b 100644 --- a/src/mips64r6/btrfs.rs +++ b/src/mips64r6/btrfs.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -709,6 +715,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1336,6 +1349,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1538,6 +1555,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/mips64r6/elf_uapi.rs b/src/mips64r6/elf_uapi.rs index 3e0ae8d3..9225cdb8 100644 --- a/src/mips64r6/elf_uapi.rs +++ b/src/mips64r6/elf_uapi.rs @@ -501,6 +501,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -508,6 +509,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/mips64r6/general.rs b/src/mips64r6/general.rs index bef4c8bb..8e8529bc 100644 --- a/src/mips64r6/general.rs +++ b/src/mips64r6/general.rs @@ -272,7 +272,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -832,6 +838,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1041,9 +1054,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; @@ -1267,6 +1280,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1443,6 +1457,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1751,6 +1769,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -2793,6 +2813,10 @@ pub const __NR_lsm_get_self_attr: u32 = 5459; pub const __NR_lsm_set_self_attr: u32 = 5460; pub const __NR_lsm_list_modules: u32 = 5461; pub const __NR_mseal: u32 = 5462; +pub const __NR_setxattrat: u32 = 5463; +pub const __NR_getxattrat: u32 = 5464; +pub const __NR_listxattrat: u32 = 5465; +pub const __NR_removexattrat: u32 = 5466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/mips64r6/if_arp.rs b/src/mips64r6/if_arp.rs index c8c7be8a..f10aa474 100644 --- a/src/mips64r6/if_arp.rs +++ b/src/mips64r6/if_arp.rs @@ -1119,6 +1119,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1304,6 +1305,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1594,6 +1597,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1800,7 +1804,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2128,6 +2133,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2135,7 +2147,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2633,7 +2647,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips64r6/io_uring.rs b/src/mips64r6/io_uring.rs index 5bdcca75..622c3ff3 100644 --- a/src/mips64r6/io_uring.rs +++ b/src/mips64r6/io_uring.rs @@ -159,7 +159,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -423,6 +429,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -483,7 +506,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -541,8 +567,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -745,6 +784,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -847,6 +890,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -883,6 +927,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -905,6 +952,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -924,7 +972,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1068,7 +1120,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1082,7 +1137,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1094,6 +1162,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1104,6 +1188,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/mips64r6/net.rs b/src/mips64r6/net.rs index b2e61441..8fb13960 100644 --- a/src/mips64r6/net.rs +++ b/src/mips64r6/net.rs @@ -1231,6 +1231,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/mips64r6/netlink.rs b/src/mips64r6/netlink.rs index cab1f72c..c71cacfb 100644 --- a/src/mips64r6/netlink.rs +++ b/src/mips64r6/netlink.rs @@ -834,6 +834,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1019,6 +1020,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1309,6 +1312,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1663,7 +1667,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1991,6 +1996,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1998,7 +2010,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2496,7 +2510,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips64r6/prctl.rs b/src/mips64r6/prctl.rs index 4f450fb7..f07e65fe 100644 --- a/src/mips64r6/prctl.rs +++ b/src/mips64r6/prctl.rs @@ -204,6 +204,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -262,3 +264,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/powerpc/btrfs.rs b/src/powerpc/btrfs.rs index f8ac4908..85208010 100644 --- a/src/powerpc/btrfs.rs +++ b/src/powerpc/btrfs.rs @@ -161,7 +161,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -713,6 +719,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1330,6 +1343,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1532,6 +1549,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/powerpc/elf_uapi.rs b/src/powerpc/elf_uapi.rs index 08288977..3b6109b3 100644 --- a/src/powerpc/elf_uapi.rs +++ b/src/powerpc/elf_uapi.rs @@ -495,6 +495,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -502,6 +503,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/powerpc/general.rs b/src/powerpc/general.rs index f12668ef..93b9bf34 100644 --- a/src/powerpc/general.rs +++ b/src/powerpc/general.rs @@ -276,7 +276,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -841,6 +847,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1087,9 +1100,9 @@ pub sa_flags: crate::ctypes::c_ulong, pub sa_restorer: __sigrestore_t, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_DCACHEBSIZE: u32 = 19; pub const AT_ICACHEBSIZE: u32 = 20; @@ -1318,6 +1331,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1494,6 +1508,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1793,6 +1811,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -2801,6 +2821,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/powerpc/if_arp.rs b/src/powerpc/if_arp.rs index 11133538..53ecaa8e 100644 --- a/src/powerpc/if_arp.rs +++ b/src/powerpc/if_arp.rs @@ -1113,6 +1113,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1298,6 +1299,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1588,6 +1591,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1794,7 +1798,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2122,6 +2127,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2129,7 +2141,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2627,7 +2641,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/powerpc/io_uring.rs b/src/powerpc/io_uring.rs index fa49afc1..0bb7e0c5 100644 --- a/src/powerpc/io_uring.rs +++ b/src/powerpc/io_uring.rs @@ -163,7 +163,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -427,6 +433,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -487,7 +510,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -545,8 +571,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,6 +778,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -841,6 +884,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -877,6 +921,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -899,6 +946,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -918,7 +966,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1062,7 +1114,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1076,7 +1131,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1088,6 +1156,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1098,6 +1182,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/powerpc/net.rs b/src/powerpc/net.rs index 1daaf500..acb0fdb7 100644 --- a/src/powerpc/net.rs +++ b/src/powerpc/net.rs @@ -1206,6 +1206,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SYS_SOCKET: u32 = 1; pub const SYS_BIND: u32 = 2; pub const SYS_CONNECT: u32 = 3; diff --git a/src/powerpc/netlink.rs b/src/powerpc/netlink.rs index 138c7d7a..b1f5306a 100644 --- a/src/powerpc/netlink.rs +++ b/src/powerpc/netlink.rs @@ -828,6 +828,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1013,6 +1014,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1303,6 +1306,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1657,7 +1661,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1985,6 +1990,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1992,7 +2004,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2490,7 +2504,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/powerpc/prctl.rs b/src/powerpc/prctl.rs index 10a53998..25851c31 100644 --- a/src/powerpc/prctl.rs +++ b/src/powerpc/prctl.rs @@ -198,6 +198,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -256,3 +258,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/powerpc64/btrfs.rs b/src/powerpc64/btrfs.rs index fb0aafd7..e0597974 100644 --- a/src/powerpc64/btrfs.rs +++ b/src/powerpc64/btrfs.rs @@ -163,7 +163,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -715,6 +721,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1332,6 +1345,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1534,6 +1551,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/powerpc64/elf_uapi.rs b/src/powerpc64/elf_uapi.rs index c88e5cce..7101b121 100644 --- a/src/powerpc64/elf_uapi.rs +++ b/src/powerpc64/elf_uapi.rs @@ -497,6 +497,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -504,6 +505,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/powerpc64/general.rs b/src/powerpc64/general.rs index 458168ef..11598f5a 100644 --- a/src/powerpc64/general.rs +++ b/src/powerpc64/general.rs @@ -278,7 +278,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -837,6 +843,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1069,9 +1082,9 @@ pub sa_flags: crate::ctypes::c_ulong, pub sa_restorer: __sigrestore_t, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_DCACHEBSIZE: u32 = 19; pub const AT_ICACHEBSIZE: u32 = 20; @@ -1297,6 +1310,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1473,6 +1487,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1772,6 +1790,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -2750,6 +2770,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/powerpc64/if_arp.rs b/src/powerpc64/if_arp.rs index 52b1d37f..c7d0c639 100644 --- a/src/powerpc64/if_arp.rs +++ b/src/powerpc64/if_arp.rs @@ -1115,6 +1115,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1300,6 +1301,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1590,6 +1593,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1796,7 +1800,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2124,6 +2129,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2131,7 +2143,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2629,7 +2643,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/powerpc64/io_uring.rs b/src/powerpc64/io_uring.rs index 99088cda..d36a1e78 100644 --- a/src/powerpc64/io_uring.rs +++ b/src/powerpc64/io_uring.rs @@ -165,7 +165,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -429,6 +435,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -489,7 +512,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -547,8 +573,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -741,6 +780,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -843,6 +886,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -879,6 +923,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -901,6 +948,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -920,7 +968,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1064,7 +1116,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1078,7 +1133,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1090,6 +1158,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1100,6 +1184,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/powerpc64/net.rs b/src/powerpc64/net.rs index fe4692c5..c71a0868 100644 --- a/src/powerpc64/net.rs +++ b/src/powerpc64/net.rs @@ -1206,6 +1206,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/powerpc64/netlink.rs b/src/powerpc64/netlink.rs index 9c343730..f9281f21 100644 --- a/src/powerpc64/netlink.rs +++ b/src/powerpc64/netlink.rs @@ -830,6 +830,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1015,6 +1016,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1305,6 +1308,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1659,7 +1663,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1987,6 +1992,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1994,7 +2006,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2492,7 +2506,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/powerpc64/prctl.rs b/src/powerpc64/prctl.rs index f2bf1273..5f06b733 100644 --- a/src/powerpc64/prctl.rs +++ b/src/powerpc64/prctl.rs @@ -200,6 +200,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -258,3 +260,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/riscv32/btrfs.rs b/src/riscv32/btrfs.rs index 0a402bbf..47b5ea6f 100644 --- a/src/riscv32/btrfs.rs +++ b/src/riscv32/btrfs.rs @@ -155,7 +155,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -707,6 +713,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1324,6 +1337,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1526,6 +1543,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/riscv32/elf_uapi.rs b/src/riscv32/elf_uapi.rs index 08932345..feed3403 100644 --- a/src/riscv32/elf_uapi.rs +++ b/src/riscv32/elf_uapi.rs @@ -489,6 +489,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -496,6 +497,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/riscv32/general.rs b/src/riscv32/general.rs index e1189a7e..7d2454c2 100644 --- a/src/riscv32/general.rs +++ b/src/riscv32/general.rs @@ -269,7 +269,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -800,6 +806,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1033,9 +1046,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_L1I_CACHESIZE: u32 = 40; @@ -1260,6 +1273,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1436,6 +1450,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1735,6 +1753,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1747,6 +1767,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2589,6 +2611,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/riscv32/if_arp.rs b/src/riscv32/if_arp.rs index 2fceb3cd..84d56cf7 100644 --- a/src/riscv32/if_arp.rs +++ b/src/riscv32/if_arp.rs @@ -1107,6 +1107,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1292,6 +1293,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1582,6 +1585,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1788,7 +1792,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2116,6 +2121,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2123,7 +2135,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2621,7 +2635,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/riscv32/io_uring.rs b/src/riscv32/io_uring.rs index 5fd58aca..0b1be6bf 100644 --- a/src/riscv32/io_uring.rs +++ b/src/riscv32/io_uring.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -421,6 +427,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -481,7 +504,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -539,8 +565,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -733,6 +772,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -835,6 +878,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -871,6 +915,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -893,6 +940,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -912,7 +960,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1056,7 +1108,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1070,7 +1125,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1082,6 +1150,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1092,6 +1176,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/riscv32/net.rs b/src/riscv32/net.rs index a777903c..5a43292c 100644 --- a/src/riscv32/net.rs +++ b/src/riscv32/net.rs @@ -1200,6 +1200,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SYS_SOCKET: u32 = 1; pub const SYS_BIND: u32 = 2; pub const SYS_CONNECT: u32 = 3; diff --git a/src/riscv32/netlink.rs b/src/riscv32/netlink.rs index 54c2bd2c..da094191 100644 --- a/src/riscv32/netlink.rs +++ b/src/riscv32/netlink.rs @@ -822,6 +822,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1007,6 +1008,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1297,6 +1300,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1651,7 +1655,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1979,6 +1984,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1986,7 +1998,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2484,7 +2498,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/riscv32/prctl.rs b/src/riscv32/prctl.rs index bc2ae74d..ff42b482 100644 --- a/src/riscv32/prctl.rs +++ b/src/riscv32/prctl.rs @@ -192,6 +192,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -250,3 +252,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/riscv64/btrfs.rs b/src/riscv64/btrfs.rs index 5332ee54..eb8c2cda 100644 --- a/src/riscv64/btrfs.rs +++ b/src/riscv64/btrfs.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -709,6 +715,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1326,6 +1339,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1528,6 +1545,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/riscv64/elf_uapi.rs b/src/riscv64/elf_uapi.rs index 2e5517d6..d879ebbf 100644 --- a/src/riscv64/elf_uapi.rs +++ b/src/riscv64/elf_uapi.rs @@ -491,6 +491,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -498,6 +499,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/riscv64/general.rs b/src/riscv64/general.rs index 6da84582..4119fd60 100644 --- a/src/riscv64/general.rs +++ b/src/riscv64/general.rs @@ -271,7 +271,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -802,6 +808,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1011,9 +1024,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_L1I_CACHESIZE: u32 = 40; @@ -1235,6 +1248,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1411,6 +1425,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1710,6 +1728,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1722,6 +1742,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2574,6 +2596,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/riscv64/if_arp.rs b/src/riscv64/if_arp.rs index 9dbf9b47..a41c4749 100644 --- a/src/riscv64/if_arp.rs +++ b/src/riscv64/if_arp.rs @@ -1109,6 +1109,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; 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 pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; 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; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1790,7 +1794,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2118,6 +2123,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2125,7 +2137,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2623,7 +2637,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/riscv64/io_uring.rs b/src/riscv64/io_uring.rs index 2518db22..9ae142e9 100644 --- a/src/riscv64/io_uring.rs +++ b/src/riscv64/io_uring.rs @@ -159,7 +159,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -423,6 +429,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -483,7 +506,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -541,8 +567,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -735,6 +774,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -837,6 +880,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -873,6 +917,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -895,6 +942,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -914,7 +962,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1058,7 +1110,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1072,7 +1127,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1084,6 +1152,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1094,6 +1178,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/riscv64/net.rs b/src/riscv64/net.rs index 5a96657b..138e1d60 100644 --- a/src/riscv64/net.rs +++ b/src/riscv64/net.rs @@ -1200,6 +1200,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/riscv64/netlink.rs b/src/riscv64/netlink.rs index 8624280f..67077f03 100644 --- a/src/riscv64/netlink.rs +++ b/src/riscv64/netlink.rs @@ -824,6 +824,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1009,6 +1010,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1299,6 +1302,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1653,7 +1657,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1981,6 +1986,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1988,7 +2000,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2486,7 +2500,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/riscv64/prctl.rs b/src/riscv64/prctl.rs index 11c5b54a..1726036f 100644 --- a/src/riscv64/prctl.rs +++ b/src/riscv64/prctl.rs @@ -194,6 +194,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -252,3 +254,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/s390x/btrfs.rs b/src/s390x/btrfs.rs index fab87733..ef69b5ba 100644 --- a/src/s390x/btrfs.rs +++ b/src/s390x/btrfs.rs @@ -171,7 +171,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -723,6 +729,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1340,6 +1353,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1542,6 +1559,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/s390x/elf_uapi.rs b/src/s390x/elf_uapi.rs index 8b31501f..d674509c 100644 --- a/src/s390x/elf_uapi.rs +++ b/src/s390x/elf_uapi.rs @@ -505,6 +505,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -512,6 +513,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/s390x/general.rs b/src/s390x/general.rs index 0053a098..55e24c47 100644 --- a/src/s390x/general.rs +++ b/src/s390x/general.rs @@ -286,7 +286,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -818,6 +824,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1010,9 +1023,9 @@ pub sa_flags: crate::ctypes::c_ulong, pub sa_restorer: __sigrestore_t, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; @@ -1226,6 +1239,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1402,6 +1416,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1701,6 +1719,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1713,6 +1733,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2627,6 +2649,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/s390x/if_arp.rs b/src/s390x/if_arp.rs index 2deef98f..1125bbb0 100644 --- a/src/s390x/if_arp.rs +++ b/src/s390x/if_arp.rs @@ -1123,6 +1123,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1308,6 +1309,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1598,6 +1601,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1804,7 +1808,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2132,6 +2137,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2139,7 +2151,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2637,7 +2651,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/s390x/io_uring.rs b/src/s390x/io_uring.rs index 22dbcd6c..8d28490c 100644 --- a/src/s390x/io_uring.rs +++ b/src/s390x/io_uring.rs @@ -173,7 +173,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -437,6 +443,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -497,7 +520,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -555,8 +581,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -749,6 +788,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -851,6 +894,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -887,6 +931,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -909,6 +956,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -928,7 +976,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1072,7 +1124,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1086,7 +1141,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1098,6 +1166,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1108,6 +1192,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/s390x/net.rs b/src/s390x/net.rs index fce1ce0a..797d4671 100644 --- a/src/s390x/net.rs +++ b/src/s390x/net.rs @@ -1214,6 +1214,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/s390x/netlink.rs b/src/s390x/netlink.rs index a4c22dff..9d576e11 100644 --- a/src/s390x/netlink.rs +++ b/src/s390x/netlink.rs @@ -838,6 +838,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1023,6 +1024,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1313,6 +1316,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1667,7 +1671,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1995,6 +2000,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2002,7 +2014,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2500,7 +2514,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/s390x/prctl.rs b/src/s390x/prctl.rs index 63fd1f0c..3871ce7b 100644 --- a/src/s390x/prctl.rs +++ b/src/s390x/prctl.rs @@ -208,6 +208,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -266,6 +268,12 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; #[repr(C)] #[derive(Copy, Clone)] pub union __vector128__bindgen_ty_1 { diff --git a/src/sparc/btrfs.rs b/src/sparc/btrfs.rs index 89ab0e73..1855f048 100644 --- a/src/sparc/btrfs.rs +++ b/src/sparc/btrfs.rs @@ -155,7 +155,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -707,6 +713,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1325,6 +1338,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1527,6 +1544,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/sparc/elf_uapi.rs b/src/sparc/elf_uapi.rs index 635f0dd7..12b4b903 100644 --- a/src/sparc/elf_uapi.rs +++ b/src/sparc/elf_uapi.rs @@ -489,6 +489,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -496,6 +497,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/sparc/general.rs b/src/sparc/general.rs index f3d25c21..e71b60e2 100644 --- a/src/sparc/general.rs +++ b/src/sparc/general.rs @@ -271,7 +271,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -817,6 +823,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1047,9 +1060,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_ADI_BLKSZ: u32 = 48; @@ -1269,6 +1282,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 4194304; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1446,6 +1460,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1745,6 +1763,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -2759,6 +2779,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const KERN_FEATURE_MIXED_MODE_STACK: u32 = 1; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; diff --git a/src/sparc/if_arp.rs b/src/sparc/if_arp.rs index 36249f83..3e86c6ae 100644 --- a/src/sparc/if_arp.rs +++ b/src/sparc/if_arp.rs @@ -1323,6 +1323,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1508,6 +1509,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1798,6 +1801,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -2004,7 +2008,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2332,6 +2337,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2339,7 +2351,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2837,7 +2851,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/sparc/io_uring.rs b/src/sparc/io_uring.rs index a26070cf..a3eb80cc 100644 --- a/src/sparc/io_uring.rs +++ b/src/sparc/io_uring.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -421,6 +427,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -481,7 +504,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -539,8 +565,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -734,6 +773,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -836,6 +879,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -872,6 +916,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -894,6 +941,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -913,7 +961,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1057,7 +1109,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1071,7 +1126,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1083,6 +1151,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1093,6 +1177,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/sparc/net.rs b/src/sparc/net.rs index 889c5cc9..505fd4d0 100644 --- a/src/sparc/net.rs +++ b/src/sparc/net.rs @@ -1416,6 +1416,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 87; pub const SO_DEVMEM_DMABUF: u32 = 88; pub const SCM_DEVMEM_DMABUF: u32 = 88; pub const SO_DEVMEM_DONTNEED: u32 = 89; +pub const SCM_TS_OPT_ID: u32 = 90; pub const SYS_SOCKET: u32 = 1; pub const SYS_BIND: u32 = 2; pub const SYS_CONNECT: u32 = 3; diff --git a/src/sparc/netlink.rs b/src/sparc/netlink.rs index 5e9e7341..ee28b96a 100644 --- a/src/sparc/netlink.rs +++ b/src/sparc/netlink.rs @@ -822,6 +822,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1007,6 +1008,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1297,6 +1300,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1651,7 +1655,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1979,6 +1984,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1986,7 +1998,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2484,7 +2498,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/sparc/prctl.rs b/src/sparc/prctl.rs index 100ef89a..6b16e4df 100644 --- a/src/sparc/prctl.rs +++ b/src/sparc/prctl.rs @@ -192,6 +192,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -250,3 +252,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/sparc64/btrfs.rs b/src/sparc64/btrfs.rs index f50c5542..a41a2050 100644 --- a/src/sparc64/btrfs.rs +++ b/src/sparc64/btrfs.rs @@ -163,7 +163,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -715,6 +721,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1333,6 +1346,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1535,6 +1552,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/sparc64/elf_uapi.rs b/src/sparc64/elf_uapi.rs index ddd1351d..74d4cc31 100644 --- a/src/sparc64/elf_uapi.rs +++ b/src/sparc64/elf_uapi.rs @@ -497,6 +497,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -504,6 +505,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/sparc64/general.rs b/src/sparc64/general.rs index 40ff94d4..ac4867f7 100644 --- a/src/sparc64/general.rs +++ b/src/sparc64/general.rs @@ -279,7 +279,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -819,6 +825,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1044,9 +1057,9 @@ pub sa_handler_kernel: __kernel_sighandler_t, pub sa_flags: crate::ctypes::c_ulong, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_ADI_BLKSZ: u32 = 48; @@ -1263,6 +1276,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 4194304; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1440,6 +1454,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1739,6 +1757,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -2716,6 +2736,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const KERN_FEATURE_MIXED_MODE_STACK: u32 = 1; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; diff --git a/src/sparc64/if_arp.rs b/src/sparc64/if_arp.rs index d1079d42..41b33ee4 100644 --- a/src/sparc64/if_arp.rs +++ b/src/sparc64/if_arp.rs @@ -1331,6 +1331,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_MASK; @@ -1516,6 +1517,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1806,6 +1809,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_54 = _bindgen_ty_54::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -2012,7 +2016,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2340,6 +2345,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2347,7 +2359,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2845,7 +2859,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/sparc64/io_uring.rs b/src/sparc64/io_uring.rs index 58e6b235..dd3918bb 100644 --- a/src/sparc64/io_uring.rs +++ b/src/sparc64/io_uring.rs @@ -165,7 +165,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -423,6 +429,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -483,7 +506,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -541,8 +567,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -736,6 +775,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -838,6 +881,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -874,6 +918,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -896,6 +943,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -915,7 +963,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1059,7 +1111,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1073,7 +1128,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1085,6 +1153,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1095,6 +1179,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/sparc64/net.rs b/src/sparc64/net.rs index cd86ad66..7a3dfcac 100644 --- a/src/sparc64/net.rs +++ b/src/sparc64/net.rs @@ -1422,6 +1422,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 87; pub const SO_DEVMEM_DMABUF: u32 = 88; pub const SCM_DEVMEM_DMABUF: u32 = 88; pub const SO_DEVMEM_DONTNEED: u32 = 89; +pub const SCM_TS_OPT_ID: u32 = 90; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 33; pub const SO_TIMESTAMPING: u32 = 35; diff --git a/src/sparc64/netlink.rs b/src/sparc64/netlink.rs index ac432316..2681c0dd 100644 --- a/src/sparc64/netlink.rs +++ b/src/sparc64/netlink.rs @@ -830,6 +830,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1015,6 +1016,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1305,6 +1308,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1659,7 +1663,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1987,6 +1992,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1994,7 +2006,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2492,7 +2506,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/sparc64/prctl.rs b/src/sparc64/prctl.rs index 48b245da..c2d7a3b3 100644 --- a/src/sparc64/prctl.rs +++ b/src/sparc64/prctl.rs @@ -200,6 +200,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -258,3 +260,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/x32/btrfs.rs b/src/x32/btrfs.rs index 60919917..d90d2e66 100644 --- a/src/x32/btrfs.rs +++ b/src/x32/btrfs.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -709,6 +715,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1326,6 +1339,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1528,6 +1545,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/x32/elf_uapi.rs b/src/x32/elf_uapi.rs index 15c2e983..44ca4cf8 100644 --- a/src/x32/elf_uapi.rs +++ b/src/x32/elf_uapi.rs @@ -491,6 +491,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -498,6 +499,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/x32/general.rs b/src/x32/general.rs index 3e0cf55f..1cec0b77 100644 --- a/src/x32/general.rs +++ b/src/x32/general.rs @@ -272,7 +272,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -800,6 +806,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1023,9 +1036,9 @@ pub sa_flags: crate::ctypes::c_ulong, pub sa_restorer: __sigrestore_t, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 3; @@ -1242,6 +1255,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1418,6 +1432,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1673,7 +1691,6 @@ pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; pub const MAP_32BIT: u32 = 64; pub const MAP_ABOVE4G: u32 = 128; -pub const SHADOW_STACK_SET_TOKEN: u32 = 1; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1720,6 +1737,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1732,6 +1751,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2594,6 +2615,10 @@ pub const __NR_lsm_get_self_attr: u32 = 1073742283; pub const __NR_lsm_set_self_attr: u32 = 1073742284; pub const __NR_lsm_list_modules: u32 = 1073742285; pub const __NR_mseal: u32 = 1073742286; +pub const __NR_setxattrat: u32 = 1073742287; +pub const __NR_getxattrat: u32 = 1073742288; +pub const __NR_listxattrat: u32 = 1073742289; +pub const __NR_removexattrat: u32 = 1073742290; pub const __NR_rt_sigaction: u32 = 1073742336; pub const __NR_rt_sigreturn: u32 = 1073742337; pub const __NR_ioctl: u32 = 1073742338; diff --git a/src/x32/if_arp.rs b/src/x32/if_arp.rs index 18866c89..65015362 100644 --- a/src/x32/if_arp.rs +++ b/src/x32/if_arp.rs @@ -1109,6 +1109,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; 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 pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; 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; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1790,7 +1794,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2118,6 +2123,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2125,7 +2137,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2623,7 +2637,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x32/io_uring.rs b/src/x32/io_uring.rs index d67df39b..da1cb1d7 100644 --- a/src/x32/io_uring.rs +++ b/src/x32/io_uring.rs @@ -159,7 +159,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -423,6 +429,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -483,7 +506,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -541,8 +567,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -735,6 +774,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -837,6 +880,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -873,6 +917,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -895,6 +942,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -914,7 +962,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1058,7 +1110,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1072,7 +1127,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1084,6 +1152,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1094,6 +1178,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/x32/net.rs b/src/x32/net.rs index 42058968..53ebb725 100644 --- a/src/x32/net.rs +++ b/src/x32/net.rs @@ -1202,6 +1202,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/x32/netlink.rs b/src/x32/netlink.rs index 7ff26f1a..92d60e4e 100644 --- a/src/x32/netlink.rs +++ b/src/x32/netlink.rs @@ -824,6 +824,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1009,6 +1010,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1299,6 +1302,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1653,7 +1657,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1981,6 +1986,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1988,7 +2000,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2486,7 +2500,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x32/prctl.rs b/src/x32/prctl.rs index f607859a..bd0ed7c6 100644 --- a/src/x32/prctl.rs +++ b/src/x32/prctl.rs @@ -194,6 +194,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -252,3 +254,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/x86/btrfs.rs b/src/x86/btrfs.rs index bae9836f..5e5a3a91 100644 --- a/src/x86/btrfs.rs +++ b/src/x86/btrfs.rs @@ -155,7 +155,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -707,6 +713,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1324,6 +1337,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1526,6 +1543,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/x86/elf_uapi.rs b/src/x86/elf_uapi.rs index 291b86b1..8a15bb76 100644 --- a/src/x86/elf_uapi.rs +++ b/src/x86/elf_uapi.rs @@ -489,6 +489,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -496,6 +497,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/x86/general.rs b/src/x86/general.rs index fa793d66..f6dfeba4 100644 --- a/src/x86/general.rs +++ b/src/x86/general.rs @@ -269,7 +269,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -797,6 +803,14 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[repr(align(8))] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1043,9 +1057,9 @@ pub sa_flags: crate::ctypes::c_ulong, pub sa_restorer: __sigrestore_t, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO: u32 = 32; pub const AT_SYSINFO_EHDR: u32 = 33; @@ -1263,6 +1277,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1439,6 +1454,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1694,7 +1713,6 @@ pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; pub const MAP_32BIT: u32 = 64; pub const MAP_ABOVE4G: u32 = 128; -pub const SHADOW_STACK_SET_TOKEN: u32 = 1; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1741,6 +1759,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1753,6 +1773,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2739,6 +2761,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/x86/if_arp.rs b/src/x86/if_arp.rs index 78081189..f98100c1 100644 --- a/src/x86/if_arp.rs +++ b/src/x86/if_arp.rs @@ -1109,6 +1109,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; 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 pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; 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; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1790,7 +1794,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2118,6 +2123,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2125,7 +2137,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2623,7 +2637,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x86/io_uring.rs b/src/x86/io_uring.rs index 92a34ae2..31bc80f3 100644 --- a/src/x86/io_uring.rs +++ b/src/x86/io_uring.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -421,6 +427,23 @@ pub resv: __u32, pub fds: __u64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] #[repr(align(8))] #[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { @@ -485,7 +508,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -543,8 +569,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -737,6 +776,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -839,6 +882,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -875,6 +919,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -897,6 +944,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -916,7 +964,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1060,7 +1112,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1074,7 +1129,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1086,6 +1154,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1096,6 +1180,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/x86/net.rs b/src/x86/net.rs index 5dbfea2e..3e415504 100644 --- a/src/x86/net.rs +++ b/src/x86/net.rs @@ -1202,6 +1202,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SYS_SOCKET: u32 = 1; pub const SYS_BIND: u32 = 2; pub const SYS_CONNECT: u32 = 3; diff --git a/src/x86/netlink.rs b/src/x86/netlink.rs index d50632d6..aa0ca950 100644 --- a/src/x86/netlink.rs +++ b/src/x86/netlink.rs @@ -822,6 +822,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1007,6 +1008,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1297,6 +1300,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1651,7 +1655,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1979,6 +1984,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1986,7 +1998,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2484,7 +2498,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x86/prctl.rs b/src/x86/prctl.rs index 6cb3e050..04a1a0bb 100644 --- a/src/x86/prctl.rs +++ b/src/x86/prctl.rs @@ -192,6 +192,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -250,3 +252,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76; diff --git a/src/x86_64/btrfs.rs b/src/x86_64/btrfs.rs index 44a91519..3427e99d 100644 --- a/src/x86_64/btrfs.rs +++ b/src/x86_64/btrfs.rs @@ -157,7 +157,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -709,6 +715,13 @@ pub compression: __u32, pub encryption: __u32, pub reserved: [__u8; 64usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_subvol_wait { +pub subvolid: __u64, +pub mode: __u32, +pub count: __u32, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -1326,6 +1339,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1528,6 +1545,11 @@ pub const BTRFS_ENCODED_IO_COMPRESSION_LZO_64K: u32 = 7; pub const BTRFS_ENCODED_IO_COMPRESSION_TYPES: u32 = 8; pub const BTRFS_ENCODED_IO_ENCRYPTION_NONE: u32 = 0; pub const BTRFS_ENCODED_IO_ENCRYPTION_TYPES: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_ONE: u32 = 0; +pub const BTRFS_SUBVOL_SYNC_WAIT_FOR_QUEUED: u32 = 1; +pub const BTRFS_SUBVOL_SYNC_COUNT: u32 = 2; +pub const BTRFS_SUBVOL_SYNC_PEEK_FIRST: u32 = 3; +pub const BTRFS_SUBVOL_SYNC_PEEK_LAST: u32 = 4; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; diff --git a/src/x86_64/elf_uapi.rs b/src/x86_64/elf_uapi.rs index 1d005f9e..0d045c40 100644 --- a/src/x86_64/elf_uapi.rs +++ b/src/x86_64/elf_uapi.rs @@ -491,6 +491,7 @@ pub const NT_ARM_ZA: u32 = 1036; pub const NT_ARM_ZT: u32 = 1037; pub const NT_ARM_FPMR: u32 = 1038; pub const NT_ARM_POE: u32 = 1039; +pub const NT_ARM_GCS: u32 = 1040; pub const NT_ARC_V2: u32 = 1536; pub const NT_VMCOREDD: u32 = 1792; pub const NT_MIPS_DSP: u32 = 2048; @@ -498,6 +499,7 @@ pub const NT_MIPS_FP_MODE: u32 = 2049; pub const NT_MIPS_MSA: u32 = 2050; pub const NT_RISCV_CSR: u32 = 2304; pub const NT_RISCV_VECTOR: u32 = 2305; +pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NT_LOONGARCH_CSR: u32 = 2561; pub const NT_LOONGARCH_LSX: u32 = 2562; diff --git a/src/x86_64/general.rs b/src/x86_64/general.rs index fac26b17..51d1ae65 100644 --- a/src/x86_64/general.rs +++ b/src/x86_64/general.rs @@ -271,7 +271,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -798,6 +804,13 @@ pub struct dmabuf_token { pub token_start: __u32, pub token_count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct xattr_args { +pub value: __u64, +pub size: __u32, +pub flags: __u32, +} #[repr(C, packed)] #[derive(Copy, Clone)] pub struct uffd_msg { @@ -1021,9 +1034,9 @@ pub sa_flags: crate::ctypes::c_ulong, pub sa_restorer: __sigrestore_t, pub sa_mask: kernel_sigset_t, } -pub const LINUX_VERSION_CODE: u32 = 396288; +pub const LINUX_VERSION_CODE: u32 = 396544; pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 12; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 13; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 3; @@ -1237,6 +1250,7 @@ pub const AT_EACCESS: u32 = 512; pub const AT_REMOVEDIR: u32 = 512; pub const AT_HANDLE_FID: u32 = 512; pub const AT_HANDLE_MNT_ID_UNIQUE: u32 = 1; +pub const AT_HANDLE_CONNECTABLE: u32 = 2; pub const EPOLL_CLOEXEC: u32 = 524288; pub const EPOLL_CTL_ADD: u32 = 1; pub const EPOLL_CTL_DEL: u32 = 2; @@ -1413,6 +1427,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -1668,7 +1686,6 @@ pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; pub const MAP_32BIT: u32 = 64; pub const MAP_ABOVE4G: u32 = 128; -pub const SHADOW_STACK_SET_TOKEN: u32 = 1; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1715,6 +1732,8 @@ pub const MADV_POPULATE_READ: u32 = 22; pub const MADV_POPULATE_WRITE: u32 = 23; pub const MADV_DONTNEED_LOCKED: u32 = 24; pub const MADV_COLLAPSE: u32 = 25; +pub const MADV_GUARD_INSTALL: u32 = 102; +pub const MADV_GUARD_REMOVE: u32 = 103; pub const MAP_FILE: u32 = 0; pub const PKEY_DISABLE_ACCESS: u32 = 1; pub const PKEY_DISABLE_WRITE: u32 = 2; @@ -1727,6 +1746,8 @@ pub const MAP_NORESERVE: u32 = 16384; pub const MCL_CURRENT: u32 = 1; pub const MCL_FUTURE: u32 = 2; pub const MCL_ONFAULT: u32 = 4; +pub const SHADOW_STACK_SET_TOKEN: u32 = 1; +pub const SHADOW_STACK_SET_MARKER: u32 = 2; pub const HUGETLB_FLAG_ENCODE_SHIFT: u32 = 26; pub const HUGETLB_FLAG_ENCODE_MASK: u32 = 63; pub const HUGETLB_FLAG_ENCODE_16KB: u32 = 939524096; @@ -2636,6 +2657,10 @@ pub const __NR_lsm_get_self_attr: u32 = 459; pub const __NR_lsm_set_self_attr: u32 = 460; pub const __NR_lsm_list_modules: u32 = 461; pub const __NR_mseal: u32 = 462; +pub const __NR_setxattrat: u32 = 463; +pub const __NR_getxattrat: u32 = 464; +pub const __NR_listxattrat: u32 = 465; +pub const __NR_removexattrat: u32 = 466; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; diff --git a/src/x86_64/if_arp.rs b/src/x86_64/if_arp.rs index 0b5abb5d..8d84a232 100644 --- a/src/x86_64/if_arp.rs +++ b/src/x86_64/if_arp.rs @@ -1109,6 +1109,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_4 = _bindgen_ty_4::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_4 = _bindgen_ty_4::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_4 = _bindgen_ty_4::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_5 = _bindgen_ty_5::IFLA_PROTO_DOWN_REASON_UNSPEC; 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 pub const IFLA_NETKIT_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_20 = _bindgen_ty_20::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_21 = _bindgen_ty_21::VNIFILTER_ENTRY_STATS_UNSPEC; 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; pub const __IFLA_RMNET_MAX: _bindgen_ty_54 = _bindgen_ty_54::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_55 = _bindgen_ty_55::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_55 = _bindgen_ty_55::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_56 = _bindgen_ty_56::IFLA_DSA_CONDUIT; @@ -1790,7 +1794,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -2118,6 +2123,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_20 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -2125,7 +2137,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2623,7 +2637,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_55 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x86_64/io_uring.rs b/src/x86_64/io_uring.rs index 621d586a..7caa4601 100644 --- a/src/x86_64/io_uring.rs +++ b/src/x86_64/io_uring.rs @@ -159,7 +159,13 @@ pub propagate_from: __u64, pub mnt_root: __u32, pub mnt_point: __u32, pub mnt_ns_id: __u64, -pub __spare2: [__u64; 49usize], +pub fs_subtype: __u32, +pub sb_source: __u32, +pub opt_num: __u32, +pub opt_array: __u32, +pub opt_sec_num: __u32, +pub opt_sec_array: __u32, +pub __spare2: [__u64; 46usize], pub str_: __IncompleteArrayField, } #[repr(C)] @@ -423,6 +429,23 @@ pub fds: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_region_desc { +pub user_addr: __u64, +pub size: __u64, +pub flags: __u32, +pub id: __u32, +pub mmap_offset: __u64, +pub __resv: [__u64; 4usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_mem_region_reg { +pub region_uptr: __u64, +pub flags: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct io_uring_rsrc_register { pub nr: __u32, pub flags: __u32, @@ -483,7 +506,10 @@ pub __resv: [__u32; 3usize], pub struct io_uring_clone_buffers { pub src_fd: __u32, pub flags: __u32, -pub pad: [__u32; 6usize], +pub src_off: __u32, +pub dst_off: __u32, +pub nr: __u32, +pub pad: [__u32; 3usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -541,8 +567,21 @@ pub resv: [__u32; 8usize], pub struct io_uring_napi { pub busy_poll_to: __u32, pub prefer_busy_poll: __u8, -pub pad: [__u8; 3usize], -pub resv: __u64, +pub opcode: __u8, +pub pad: [__u8; 2usize], +pub op_param: __u32, +pub resv: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_reg_wait { +pub ts: __kernel_timespec, +pub min_wait_usec: __u32, +pub flags: __u32, +pub sigmask: __u64, +pub sigmask_sz: __u32, +pub pad: [__u32; 3usize], +pub pad2: [__u64; 2usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -735,6 +774,10 @@ pub const STATMOUNT_MNT_POINT: u32 = 16; pub const STATMOUNT_FS_TYPE: u32 = 32; pub const STATMOUNT_MNT_NS_ID: u32 = 64; pub const STATMOUNT_MNT_OPTS: u32 = 128; +pub const STATMOUNT_FS_SUBTYPE: u32 = 256; +pub const STATMOUNT_SB_SOURCE: u32 = 512; +pub const STATMOUNT_OPT_ARRAY: u32 = 1024; +pub const STATMOUNT_OPT_SEC_ARRAY: u32 = 2048; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; @@ -837,6 +880,7 @@ pub const IORING_SETUP_DEFER_TASKRUN: u32 = 8192; pub const IORING_SETUP_NO_MMAP: u32 = 16384; pub const IORING_SETUP_REGISTERED_FD_ONLY: u32 = 32768; pub const IORING_SETUP_NO_SQARRAY: u32 = 65536; +pub const IORING_SETUP_HYBRID_IOPOLL: u32 = 131072; pub const IORING_URING_CMD_FIXED: u32 = 1; pub const IORING_URING_CMD_MASK: u32 = 1; pub const IORING_FSYNC_DATASYNC: u32 = 1; @@ -873,6 +917,9 @@ pub const IORING_MSG_RING_CQE_SKIP: u32 = 1; pub const IORING_MSG_RING_FLAGS_PASS: u32 = 2; pub const IORING_FIXED_FD_NO_CLOEXEC: u32 = 1; pub const IORING_NOP_INJECT_RESULT: u32 = 1; +pub const IORING_NOP_FILE: u32 = 2; +pub const IORING_NOP_FIXED_FILE: u32 = 4; +pub const IORING_NOP_FIXED_BUFFER: u32 = 8; pub const IORING_CQE_F_BUFFER: u32 = 1; pub const IORING_CQE_F_MORE: u32 = 2; pub const IORING_CQE_F_SOCK_NONEMPTY: u32 = 4; @@ -895,6 +942,7 @@ pub const IORING_ENTER_SQ_WAIT: u32 = 4; pub const IORING_ENTER_EXT_ARG: u32 = 8; pub const IORING_ENTER_REGISTERED_RING: u32 = 16; pub const IORING_ENTER_ABS_TIMER: u32 = 32; +pub const IORING_ENTER_EXT_ARG_REG: u32 = 64; pub const IORING_FEAT_SINGLE_MMAP: u32 = 1; pub const IORING_FEAT_NODROP: u32 = 2; pub const IORING_FEAT_SUBMIT_STABLE: u32 = 4; @@ -914,7 +962,11 @@ pub const IORING_FEAT_MIN_TIMEOUT: u32 = 32768; pub const IORING_RSRC_REGISTER_SPARSE: u32 = 1; pub const IORING_REGISTER_FILES_SKIP: i32 = -2; pub const IO_URING_OP_SUPPORTED: u32 = 1; -pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_1 = _bindgen_ty_1::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_MEM_REGION_TYPE_USER: _bindgen_ty_1 = _bindgen_ty_1::IORING_MEM_REGION_TYPE_USER; +pub const IORING_MEM_REGION_REG_WAIT_ARG: _bindgen_ty_2 = _bindgen_ty_2::IORING_MEM_REGION_REG_WAIT_ARG; +pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; +pub const IORING_REGISTER_DST_REPLACE: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_DST_REPLACE; +pub const IORING_REG_WAIT_TS: _bindgen_ty_4 = _bindgen_ty_4::IORING_REG_WAIT_TS; #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] @@ -1058,7 +1110,10 @@ IORING_REGISTER_NAPI = 27, IORING_UNREGISTER_NAPI = 28, IORING_REGISTER_CLOCK = 29, IORING_REGISTER_CLONE_BUFFERS = 30, -IORING_REGISTER_LAST = 31, +IORING_REGISTER_SEND_MSG_RING = 31, +IORING_REGISTER_RESIZE_RINGS = 33, +IORING_REGISTER_MEM_REGION = 34, +IORING_REGISTER_LAST = 35, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1072,7 +1127,20 @@ IO_WQ_UNBOUND = 1, #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_1 { +IORING_MEM_REGION_TYPE_USER = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { +IORING_MEM_REGION_REG_WAIT_ARG = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_3 { IORING_REGISTER_SRC_REGISTERED = 1, +IORING_REGISTER_DST_REPLACE = 2, } #[repr(u32)] #[non_exhaustive] @@ -1084,6 +1152,22 @@ IOU_PBUF_RING_INC = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_op { +IO_URING_NAPI_REGISTER_OP = 0, +IO_URING_NAPI_STATIC_ADD_ID = 1, +IO_URING_NAPI_STATIC_DEL_ID = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_napi_tracking_strategy { +IO_URING_NAPI_TRACKING_DYNAMIC = 0, +IO_URING_NAPI_TRACKING_STATIC = 1, +IO_URING_NAPI_TRACKING_INACTIVE = 255, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_register_restriction_op { IORING_RESTRICTION_REGISTER_OP = 0, IORING_RESTRICTION_SQE_OP = 1, @@ -1094,6 +1178,12 @@ IORING_RESTRICTION_LAST = 4, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_4 { +IORING_REG_WAIT_TS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_socket_op { SOCKET_URING_OP_SIOCINQ = 0, SOCKET_URING_OP_SIOCOUTQ = 1, diff --git a/src/x86_64/net.rs b/src/x86_64/net.rs index e2979f16..724dba66 100644 --- a/src/x86_64/net.rs +++ b/src/x86_64/net.rs @@ -1200,6 +1200,7 @@ pub const SCM_DEVMEM_LINEAR: u32 = 78; pub const SO_DEVMEM_DMABUF: u32 = 79; pub const SCM_DEVMEM_DMABUF: u32 = 79; pub const SO_DEVMEM_DONTNEED: u32 = 80; +pub const SCM_TS_OPT_ID: u32 = 81; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; diff --git a/src/x86_64/netlink.rs b/src/x86_64/netlink.rs index a0e6cf65..589a6313 100644 --- a/src/x86_64/netlink.rs +++ b/src/x86_64/netlink.rs @@ -824,6 +824,7 @@ pub const IFLA_DEVLINK_PORT: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DEVLINK_PORT; pub const IFLA_GSO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GSO_IPV4_MAX_SIZE; pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_MAX_SIZE; pub const IFLA_DPLL_PIN: _bindgen_ty_2 = _bindgen_ty_2::IFLA_DPLL_PIN; +pub const IFLA_MAX_PACING_OFFLOAD_HORIZON: _bindgen_ty_2 = _bindgen_ty_2::IFLA_MAX_PACING_OFFLOAD_HORIZON; pub const __IFLA_MAX: _bindgen_ty_2 = _bindgen_ty_2::__IFLA_MAX; pub const IFLA_PROTO_DOWN_REASON_UNSPEC: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_UNSPEC; pub const IFLA_PROTO_DOWN_REASON_MASK: _bindgen_ty_3 = _bindgen_ty_3::IFLA_PROTO_DOWN_REASON_MASK; @@ -1009,6 +1010,8 @@ pub const IFLA_NETKIT_PRIMARY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PRIM pub const IFLA_NETKIT_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_POLICY; pub const IFLA_NETKIT_PEER_POLICY: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_POLICY; pub const IFLA_NETKIT_MODE: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_MODE; +pub const IFLA_NETKIT_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_SCRUB; +pub const IFLA_NETKIT_PEER_SCRUB: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PEER_SCRUB; pub const __IFLA_NETKIT_MAX: _bindgen_ty_18 = _bindgen_ty_18::__IFLA_NETKIT_MAX; pub const VNIFILTER_ENTRY_STATS_UNSPEC: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_UNSPEC; pub const VNIFILTER_ENTRY_STATS_RX_BYTES: _bindgen_ty_19 = _bindgen_ty_19::VNIFILTER_ENTRY_STATS_RX_BYTES; @@ -1299,6 +1302,7 @@ pub const IFLA_RMNET_FLAGS: _bindgen_ty_52 = _bindgen_ty_52::IFLA_RMNET_FLAGS; pub const __IFLA_RMNET_MAX: _bindgen_ty_52 = _bindgen_ty_52::__IFLA_RMNET_MAX; pub const IFLA_MCTP_UNSPEC: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_UNSPEC; pub const IFLA_MCTP_NET: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_NET; +pub const IFLA_MCTP_PHYS_BINDING: _bindgen_ty_53 = _bindgen_ty_53::IFLA_MCTP_PHYS_BINDING; pub const __IFLA_MCTP_MAX: _bindgen_ty_53 = _bindgen_ty_53::__IFLA_MCTP_MAX; pub const IFLA_DSA_UNSPEC: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_UNSPEC; pub const IFLA_DSA_CONDUIT: _bindgen_ty_54 = _bindgen_ty_54::IFLA_DSA_CONDUIT; @@ -1653,7 +1657,8 @@ IFLA_DEVLINK_PORT = 62, IFLA_GSO_IPV4_MAX_SIZE = 63, IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, -__IFLA_MAX = 66, +IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, +__IFLA_MAX = 67, } #[repr(u32)] #[non_exhaustive] @@ -1981,6 +1986,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_scrub { +NETKIT_SCRUB_NONE = 0, +NETKIT_SCRUB_DEFAULT = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_18 { IFLA_NETKIT_UNSPEC = 0, IFLA_NETKIT_PEER_INFO = 1, @@ -1988,7 +2000,9 @@ IFLA_NETKIT_PRIMARY = 2, IFLA_NETKIT_POLICY = 3, IFLA_NETKIT_PEER_POLICY = 4, IFLA_NETKIT_MODE = 5, -__IFLA_NETKIT_MAX = 6, +IFLA_NETKIT_SCRUB = 6, +IFLA_NETKIT_PEER_SCRUB = 7, +__IFLA_NETKIT_MAX = 8, } #[repr(u32)] #[non_exhaustive] @@ -2486,7 +2500,8 @@ __IFLA_RMNET_MAX = 3, pub enum _bindgen_ty_53 { IFLA_MCTP_UNSPEC = 0, IFLA_MCTP_NET = 1, -__IFLA_MCTP_MAX = 2, +IFLA_MCTP_PHYS_BINDING = 2, +__IFLA_MCTP_MAX = 3, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x86_64/prctl.rs b/src/x86_64/prctl.rs index f8ead299..39200b84 100644 --- a/src/x86_64/prctl.rs +++ b/src/x86_64/prctl.rs @@ -194,6 +194,8 @@ pub const PR_MTE_TCF_MASK: u32 = 6; pub const PR_MTE_TAG_SHIFT: u32 = 3; pub const PR_MTE_TAG_MASK: u32 = 524280; pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_PMLEN_SHIFT: u32 = 24; +pub const PR_PMLEN_MASK: u32 = 2130706432; pub const PR_SET_IO_FLUSHER: u32 = 57; pub const PR_GET_IO_FLUSHER: u32 = 58; pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; @@ -252,3 +254,9 @@ pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; +pub const PR_GET_SHADOW_STACK_STATUS: u32 = 74; +pub const PR_SET_SHADOW_STACK_STATUS: u32 = 75; +pub const PR_SHADOW_STACK_ENABLE: u32 = 1; +pub const PR_SHADOW_STACK_WRITE: u32 = 2; +pub const PR_SHADOW_STACK_PUSH: u32 = 4; +pub const PR_LOCK_SHADOW_STACK_STATUS: u32 = 76;