Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::process::Command;
use std::{env, fs};

#[allow(unused_doc_comments)]
const LINUX_VERSION: &str = "v6.16";
const LINUX_VERSION: &str = "v6.17";

/// Some commonly used features.
const DEFAULT_FEATURES: &str = "\"general\", \"errno\"";
Expand Down
45 changes: 43 additions & 2 deletions src/aarch64/btrfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,22 @@ pub name: [__u8; 128usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct logical_block_metadata_cap {
pub lbmd_flags: __u32,
pub lbmd_interval: __u16,
pub lbmd_size: __u8,
pub lbmd_opaque_size: __u8,
pub lbmd_opaque_offset: __u8,
pub lbmd_pi_size: __u8,
pub lbmd_pi_offset: __u8,
pub lbmd_guard_tag_type: __u8,
pub lbmd_app_tag_size: __u8,
pub lbmd_ref_tag_size: __u8,
pub lbmd_storage_tag_size: __u8,
pub pad: __u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct file_dedupe_range_info {
pub dest_fd: __s64,
pub dest_offset: __u64,
Expand Down Expand Up @@ -253,6 +269,15 @@ pub fsx_pad: [crate::ctypes::c_uchar; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct file_attr {
pub fa_xflags: __u64,
pub fa_extsize: __u32,
pub fa_nextents: __u32,
pub fa_projid: __u32,
pub fa_cowextsize: __u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct page_region {
pub start: __u64,
pub end: __u64,
Expand Down Expand Up @@ -716,7 +741,7 @@ pub dirid: __u64,
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct btrfs_ioctl_encoded_io_args {
pub iov: *const iovec,
pub iov: *mut iovec,
pub iovcnt: crate::ctypes::c_ulong,
pub offset: __s64,
pub flags: __u64,
Expand Down Expand Up @@ -1378,9 +1403,18 @@ pub const SEEK_MAX: u32 = 4;
pub const RENAME_NOREPLACE: u32 = 1;
pub const RENAME_EXCHANGE: u32 = 2;
pub const RENAME_WHITEOUT: u32 = 4;
pub const LBMD_PI_CAP_INTEGRITY: u32 = 1;
pub const LBMD_PI_CAP_REFTAG: u32 = 2;
pub const LBMD_PI_CSUM_NONE: u32 = 0;
pub const LBMD_PI_CSUM_IP: u32 = 1;
pub const LBMD_PI_CSUM_CRC16_T10DIF: u32 = 2;
pub const LBMD_PI_CSUM_CRC64_NVME: u32 = 4;
pub const LBMD_SIZE_VER0: u32 = 16;
pub const FILE_DEDUPE_RANGE_SAME: u32 = 0;
pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1;
pub const NR_FILE: u32 = 8192;
pub const FILE_ATTR_SIZE_VER0: u32 = 24;
pub const FILE_ATTR_SIZE_LATEST: u32 = 24;
pub const FS_XFLAG_REALTIME: u32 = 1;
pub const FS_XFLAG_PREALLOC: u32 = 2;
pub const FS_XFLAG_IMMUTABLE: u32 = 8;
Expand Down Expand Up @@ -1541,7 +1575,8 @@ pub const BTRFS_INO_LOOKUP_USER_PATH_MAX: u32 = 3824;
pub const BTRFS_DEFRAG_RANGE_COMPRESS: u32 = 1;
pub const BTRFS_DEFRAG_RANGE_START_IO: u32 = 2;
pub const BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL: u32 = 4;
pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 7;
pub const BTRFS_DEFRAG_RANGE_NOCOMPRESS: u32 = 8;
pub const BTRFS_DEFRAG_RANGE_FLAGS_SUPP: u32 = 15;
pub const BTRFS_SAME_DATA_DIFFERS: u32 = 1;
pub const BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET: u32 = 1;
pub const BTRFS_DEV_STATS_RESET: u32 = 1;
Expand Down Expand Up @@ -1752,6 +1787,12 @@ FSCONFIG_CMD_CREATE_EXCL = 8,
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum procfs_ino {
PROCFS_ROOT_INO = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum procmap_query_flags {
PROCMAP_QUERY_VMA_READABLE = 1,
PROCMAP_QUERY_VMA_WRITABLE = 2,
Expand Down
54 changes: 52 additions & 2 deletions src/aarch64/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,22 @@ pub name: [__u8; 128usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct logical_block_metadata_cap {
pub lbmd_flags: __u32,
pub lbmd_interval: __u16,
pub lbmd_size: __u8,
pub lbmd_opaque_size: __u8,
pub lbmd_opaque_offset: __u8,
pub lbmd_pi_size: __u8,
pub lbmd_pi_offset: __u8,
pub lbmd_guard_tag_type: __u8,
pub lbmd_app_tag_size: __u8,
pub lbmd_ref_tag_size: __u8,
pub lbmd_storage_tag_size: __u8,
pub pad: __u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct file_dedupe_range_info {
pub dest_fd: __s64,
pub dest_offset: __u64,
Expand Down Expand Up @@ -367,6 +383,15 @@ pub fsx_pad: [crate::ctypes::c_uchar; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct file_attr {
pub fa_xflags: __u64,
pub fa_extsize: __u32,
pub fa_nextents: __u32,
pub fa_projid: __u32,
pub fa_cowextsize: __u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct page_region {
pub start: __u64,
pub end: __u64,
Expand Down Expand Up @@ -1034,9 +1059,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 = 397312;
pub const LINUX_VERSION_CODE: u32 = 397568;
pub const LINUX_VERSION_MAJOR: u32 = 6;
pub const LINUX_VERSION_PATCHLEVEL: u32 = 16;
pub const LINUX_VERSION_PATCHLEVEL: u32 = 17;
pub const LINUX_VERSION_SUBLEVEL: u32 = 0;
pub const __BITS_PER_LONG_LONG: u32 = 64;
pub const __FD_SETSIZE: u32 = 1024;
Expand Down Expand Up @@ -1204,6 +1229,10 @@ pub const DN_RENAME: u32 = 16;
pub const DN_ATTRIB: u32 = 32;
pub const DN_MULTISHOT: u32 = 2147483648;
pub const AT_FDCWD: i32 = -100;
pub const PIDFD_SELF_THREAD: i32 = -10000;
pub const PIDFD_SELF_THREAD_GROUP: i32 = -10001;
pub const FD_PIDFS_ROOT: i32 = -10002;
pub const FD_INVALID: i32 = -10009;
pub const AT_SYMLINK_NOFOLLOW: u32 = 256;
pub const AT_SYMLINK_FOLLOW: u32 = 1024;
pub const AT_NO_AUTOMOUNT: u32 = 2048;
Expand Down Expand Up @@ -1241,6 +1270,7 @@ pub const FALLOC_FL_COLLAPSE_RANGE: u32 = 8;
pub const FALLOC_FL_ZERO_RANGE: u32 = 16;
pub const FALLOC_FL_INSERT_RANGE: u32 = 32;
pub const FALLOC_FL_UNSHARE_RANGE: u32 = 64;
pub const FALLOC_FL_WRITE_ZEROES: u32 = 128;
pub const NR_OPEN: u32 = 1024;
pub const NGROUPS_MAX: u32 = 65536;
pub const ARG_MAX: u32 = 131072;
Expand Down Expand Up @@ -1425,9 +1455,18 @@ pub const SEEK_MAX: u32 = 4;
pub const RENAME_NOREPLACE: u32 = 1;
pub const RENAME_EXCHANGE: u32 = 2;
pub const RENAME_WHITEOUT: u32 = 4;
pub const LBMD_PI_CAP_INTEGRITY: u32 = 1;
pub const LBMD_PI_CAP_REFTAG: u32 = 2;
pub const LBMD_PI_CSUM_NONE: u32 = 0;
pub const LBMD_PI_CSUM_IP: u32 = 1;
pub const LBMD_PI_CSUM_CRC16_T10DIF: u32 = 2;
pub const LBMD_PI_CSUM_CRC64_NVME: u32 = 4;
pub const LBMD_SIZE_VER0: u32 = 16;
pub const FILE_DEDUPE_RANGE_SAME: u32 = 0;
pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1;
pub const NR_FILE: u32 = 8192;
pub const FILE_ATTR_SIZE_VER0: u32 = 24;
pub const FILE_ATTR_SIZE_LATEST: u32 = 24;
pub const FS_XFLAG_REALTIME: u32 = 1;
pub const FS_XFLAG_PREALLOC: u32 = 2;
pub const FS_XFLAG_IMMUTABLE: u32 = 8;
Expand Down Expand Up @@ -2265,6 +2304,9 @@ pub const CLOCK_BOOTTIME_ALARM: u32 = 9;
pub const CLOCK_SGI_CYCLE: u32 = 10;
pub const CLOCK_TAI: u32 = 11;
pub const MAX_CLOCKS: u32 = 16;
pub const CLOCK_AUX: u32 = 16;
pub const MAX_AUX_CLOCKS: u32 = 8;
pub const CLOCK_AUX_LAST: u32 = 23;
pub const CLOCKS_MASK: u32 = 1;
pub const CLOCKS_MONO: u32 = 1;
pub const TIMER_ABSTIME: u32 = 1;
Expand Down Expand Up @@ -2593,6 +2635,8 @@ pub const __NR_getxattrat: u32 = 464;
pub const __NR_listxattrat: u32 = 465;
pub const __NR_removexattrat: u32 = 466;
pub const __NR_open_tree_attr: u32 = 467;
pub const __NR_file_getattr: u32 = 468;
pub const __NR_file_setattr: u32 = 469;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WSTOPPED: u32 = 2;
Expand Down Expand Up @@ -2783,6 +2827,12 @@ FSCONFIG_CMD_CREATE_EXCL = 8,
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum procfs_ino {
PROCFS_ROOT_INO = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum procmap_query_flags {
PROCMAP_QUERY_VMA_READABLE = 1,
PROCMAP_QUERY_VMA_WRITABLE = 2,
Expand Down
8 changes: 6 additions & 2 deletions src/aarch64/if_arp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,7 @@ pub const IFLA_VXLAN_VNIFILTER: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_VNIF
pub const IFLA_VXLAN_LOCALBYPASS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LOCALBYPASS;
pub const IFLA_VXLAN_LABEL_POLICY: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_LABEL_POLICY;
pub const IFLA_VXLAN_RESERVED_BITS: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_RESERVED_BITS;
pub const IFLA_VXLAN_MC_ROUTE: _bindgen_ty_24 = _bindgen_ty_24::IFLA_VXLAN_MC_ROUTE;
pub const __IFLA_VXLAN_MAX: _bindgen_ty_24 = _bindgen_ty_24::__IFLA_VXLAN_MAX;
pub const IFLA_GENEVE_UNSPEC: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_UNSPEC;
pub const IFLA_GENEVE_ID: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ID;
Expand Down Expand Up @@ -1432,6 +1433,7 @@ pub const IFLA_BOND_AD_LACP_ACTIVE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_A
pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSED_MAX;
pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_NS_IP6_TARGET;
pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_COUPLED_CONTROL;
pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_BROADCAST_NEIGH;
pub const __IFLA_BOND_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_MAX;
pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_UNSPEC;
pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_30 = _bindgen_ty_30::IFLA_BOND_AD_INFO_AGGREGATOR;
Expand Down Expand Up @@ -2232,7 +2234,8 @@ IFLA_VXLAN_VNIFILTER = 30,
IFLA_VXLAN_LOCALBYPASS = 31,
IFLA_VXLAN_LABEL_POLICY = 32,
IFLA_VXLAN_RESERVED_BITS = 33,
__IFLA_VXLAN_MAX = 34,
IFLA_VXLAN_MC_ROUTE = 34,
__IFLA_VXLAN_MAX = 35,
}
#[repr(u32)]
#[non_exhaustive]
Expand Down Expand Up @@ -2360,7 +2363,8 @@ IFLA_BOND_AD_LACP_ACTIVE = 29,
IFLA_BOND_MISSED_MAX = 30,
IFLA_BOND_NS_IP6_TARGET = 31,
IFLA_BOND_COUPLED_CONTROL = 32,
__IFLA_BOND_MAX = 33,
IFLA_BOND_BROADCAST_NEIGH = 33,
__IFLA_BOND_MAX = 34,
}
#[repr(u32)]
#[non_exhaustive]
Expand Down
53 changes: 52 additions & 1 deletion src/aarch64/io_uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,22 @@ pub name: [__u8; 128usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct logical_block_metadata_cap {
pub lbmd_flags: __u32,
pub lbmd_interval: __u16,
pub lbmd_size: __u8,
pub lbmd_opaque_size: __u8,
pub lbmd_opaque_offset: __u8,
pub lbmd_pi_size: __u8,
pub lbmd_pi_offset: __u8,
pub lbmd_guard_tag_type: __u8,
pub lbmd_app_tag_size: __u8,
pub lbmd_ref_tag_size: __u8,
pub lbmd_storage_tag_size: __u8,
pub pad: __u8,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct file_dedupe_range_info {
pub dest_fd: __s64,
pub dest_offset: __u64,
Expand Down Expand Up @@ -255,6 +271,15 @@ pub fsx_pad: [crate::ctypes::c_uchar; 8usize],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct file_attr {
pub fa_xflags: __u64,
pub fa_extsize: __u32,
pub fa_nextents: __u32,
pub fa_projid: __u32,
pub fa_cowextsize: __u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct page_region {
pub start: __u64,
pub end: __u64,
Expand Down Expand Up @@ -648,6 +673,12 @@ pub flags: __u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct io_timespec {
pub tv_sec: __u64,
pub tv_nsec: __u64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct io_uring_zcrx_rqe {
pub off: __u64,
pub len: __u32,
Expand Down Expand Up @@ -876,9 +907,18 @@ pub const SEEK_MAX: u32 = 4;
pub const RENAME_NOREPLACE: u32 = 1;
pub const RENAME_EXCHANGE: u32 = 2;
pub const RENAME_WHITEOUT: u32 = 4;
pub const LBMD_PI_CAP_INTEGRITY: u32 = 1;
pub const LBMD_PI_CAP_REFTAG: u32 = 2;
pub const LBMD_PI_CSUM_NONE: u32 = 0;
pub const LBMD_PI_CSUM_IP: u32 = 1;
pub const LBMD_PI_CSUM_CRC16_T10DIF: u32 = 2;
pub const LBMD_PI_CSUM_CRC64_NVME: u32 = 4;
pub const LBMD_SIZE_VER0: u32 = 16;
pub const FILE_DEDUPE_RANGE_SAME: u32 = 0;
pub const FILE_DEDUPE_RANGE_DIFFERS: u32 = 1;
pub const NR_FILE: u32 = 8192;
pub const FILE_ATTR_SIZE_VER0: u32 = 24;
pub const FILE_ATTR_SIZE_LATEST: u32 = 24;
pub const FS_XFLAG_REALTIME: u32 = 1;
pub const FS_XFLAG_PREALLOC: u32 = 2;
pub const FS_XFLAG_IMMUTABLE: u32 = 8;
Expand Down Expand Up @@ -994,6 +1034,7 @@ pub const IORING_RECV_MULTISHOT: u32 = 2;
pub const IORING_RECVSEND_FIXED_BUF: u32 = 4;
pub const IORING_SEND_ZC_REPORT_USAGE: u32 = 8;
pub const IORING_RECVSEND_BUNDLE: u32 = 16;
pub const IORING_SEND_VECTORIZED: u32 = 32;
pub const IORING_NOTIF_USAGE_ZC_COPIED: u32 = 2147483648;
pub const IORING_ACCEPT_MULTISHOT: u32 = 1;
pub const IORING_ACCEPT_DONTWAIT: u32 = 2;
Expand All @@ -1005,6 +1046,7 @@ 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_NOP_TW: u32 = 16;
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;
Expand Down Expand Up @@ -1050,6 +1092,8 @@ pub const IORING_FEAT_NO_IOWAIT: u32 = 131072;
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_TIMESTAMP_HW_SHIFT: u32 = 16;
pub const IORING_TIMESTAMP_TYPE_SHIFT: u32 = 17;
pub const IORING_ZCRX_AREA_SHIFT: u32 = 48;
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;
Expand All @@ -1073,6 +1117,12 @@ FSCONFIG_CMD_CREATE_EXCL = 8,
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum procfs_ino {
PROCFS_ROOT_INO = 1,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum procmap_query_flags {
PROCMAP_QUERY_VMA_READABLE = 1,
PROCMAP_QUERY_VMA_WRITABLE = 2,
Expand Down Expand Up @@ -1284,6 +1334,7 @@ SOCKET_URING_OP_SIOCINQ = 0,
SOCKET_URING_OP_SIOCOUTQ = 1,
SOCKET_URING_OP_GETSOCKOPT = 2,
SOCKET_URING_OP_SETSOCKOPT = 3,
SOCKET_URING_OP_TX_TIMESTAMP = 4,
}
#[repr(u32)]
#[non_exhaustive]
Expand Down Expand Up @@ -1322,7 +1373,7 @@ pub __bindgen_anon_1: io_uring_sqe__bindgen_ty_2__bindgen_ty_1,
#[repr(C)]
#[derive(Copy, Clone)]
pub union io_uring_sqe__bindgen_ty_3 {
pub rw_flags: __kernel_rwf_t,
pub rw_flags: __u32,
pub fsync_flags: __u32,
pub poll_events: __u16,
pub poll32_events: __u32,
Expand Down
Loading
Loading