From b90bcf3eae000f851fc3879cbce2fd3ff102d2cc Mon Sep 17 00:00:00 2001 From: superwhiskers Date: Sun, 27 Sep 2026 01:15:47 -0400 Subject: [PATCH] update to linux 7.2, add `CLOSE_RANGE_*` constants, add `keyctl.h` module --- Cargo.toml | 1 + gen/Cargo.toml | 4 +- gen/ioctl/csky-ioctls.txt | 1502 -------------------------------- gen/ioctl/extract.awk | 59 ++ gen/ioctl/generate.sh | 113 +-- gen/ioctl/generated.txt | 84 +- gen/ioctl/list.c | 142 +-- gen/ioctl/loongarch-ioctls.txt | 1489 ------------------------------- gen/ioctl/riscv32-ioctls.txt | 1502 -------------------------------- gen/modules/general.h | 8 + gen/modules/ioctl.h | 1198 +++++-------------------- gen/modules/keyctl.h | 1 + gen/src/main.rs | 2 +- src/aarch64/auxvec.rs | 2 +- src/aarch64/bootparam.rs | 2 +- src/aarch64/btrfs.rs | 82 +- src/aarch64/elf_uapi.rs | 5 +- src/aarch64/errno.rs | 5 +- src/aarch64/general.rs | 590 +++++++++++-- src/aarch64/if_arp.rs | 62 +- src/aarch64/if_ether.rs | 8 +- src/aarch64/if_packet.rs | 3 +- src/aarch64/if_tun.rs | 8 +- src/aarch64/image.rs | 3 +- src/aarch64/io_uring.rs | 271 ++++-- src/aarch64/ioctl.rs | 86 +- src/aarch64/keyctl.rs | 166 ++++ src/aarch64/landlock.rs | 11 +- src/aarch64/loop_device.rs | 3 +- src/aarch64/mempolicy.rs | 6 +- src/aarch64/net.rs | 1066 ++++++++++++++++++----- src/aarch64/netlink.rs | 352 +++++++- src/aarch64/prctl.rs | 11 +- src/aarch64/ptrace.rs | 15 +- src/aarch64/system.rs | 3 +- src/aarch64/vm_sockets.rs | 3 +- src/aarch64/xdp.rs | 3 +- src/arm/auxvec.rs | 2 +- src/arm/bootparam.rs | 2 +- src/arm/btrfs.rs | 82 +- src/arm/elf_uapi.rs | 5 +- src/arm/errno.rs | 5 +- src/arm/general.rs | 590 +++++++++++-- src/arm/if_arp.rs | 62 +- src/arm/if_ether.rs | 8 +- src/arm/if_packet.rs | 3 +- src/arm/if_tun.rs | 8 +- src/arm/image.rs | 2 +- src/arm/io_uring.rs | 271 ++++-- src/arm/ioctl.rs | 86 +- src/arm/keyctl.rs | 164 ++++ src/arm/landlock.rs | 11 +- src/arm/loop_device.rs | 3 +- src/arm/mempolicy.rs | 6 +- src/arm/net.rs | 1066 ++++++++++++++++++----- src/arm/netlink.rs | 352 +++++++- src/arm/prctl.rs | 11 +- src/arm/ptrace.rs | 6 +- src/arm/system.rs | 3 +- src/arm/vm_sockets.rs | 3 +- src/arm/xdp.rs | 3 +- src/csky/auxvec.rs | 2 +- src/csky/bootparam.rs | 2 +- src/csky/btrfs.rs | 82 +- src/csky/elf_uapi.rs | 5 +- src/csky/errno.rs | 5 +- src/csky/general.rs | 590 +++++++++++-- src/csky/if_arp.rs | 62 +- src/csky/if_ether.rs | 8 +- src/csky/if_packet.rs | 3 +- src/csky/if_tun.rs | 8 +- src/csky/image.rs | 2 +- src/csky/io_uring.rs | 259 ++++-- src/csky/ioctl.rs | 87 +- src/csky/keyctl.rs | 164 ++++ src/csky/landlock.rs | 11 +- src/csky/loop_device.rs | 3 +- src/csky/mempolicy.rs | 6 +- src/csky/net.rs | 1066 ++++++++++++++++++----- src/csky/netlink.rs | 352 +++++++- src/csky/prctl.rs | 11 +- src/csky/ptrace.rs | 5 +- src/csky/system.rs | 3 +- src/csky/vm_sockets.rs | 3 +- src/csky/xdp.rs | 3 +- src/hexagon/auxvec.rs | 2 +- src/hexagon/bootparam.rs | 2 +- src/hexagon/btrfs.rs | 82 +- src/hexagon/elf_uapi.rs | 5 +- src/hexagon/errno.rs | 5 +- src/hexagon/general.rs | 602 +++++++++++-- src/hexagon/if_arp.rs | 62 +- src/hexagon/if_ether.rs | 8 +- src/hexagon/if_packet.rs | 3 +- src/hexagon/if_tun.rs | 8 +- src/hexagon/image.rs | 2 +- src/hexagon/io_uring.rs | 271 ++++-- src/hexagon/ioctl.rs | 2 +- src/hexagon/keyctl.rs | 164 ++++ src/hexagon/landlock.rs | 11 +- src/hexagon/loop_device.rs | 3 +- src/hexagon/mempolicy.rs | 6 +- src/hexagon/net.rs | 1066 ++++++++++++++++++----- src/hexagon/netlink.rs | 352 +++++++- src/hexagon/prctl.rs | 11 +- src/hexagon/ptrace.rs | 5 +- src/hexagon/system.rs | 3 +- src/hexagon/vm_sockets.rs | 3 +- src/hexagon/xdp.rs | 3 +- src/lib.rs | 80 ++ src/loongarch64/auxvec.rs | 2 +- src/loongarch64/bootparam.rs | 2 +- src/loongarch64/btrfs.rs | 82 +- src/loongarch64/elf_uapi.rs | 5 +- src/loongarch64/errno.rs | 5 +- src/loongarch64/general.rs | 591 +++++++++++-- src/loongarch64/if_arp.rs | 62 +- src/loongarch64/if_ether.rs | 8 +- src/loongarch64/if_packet.rs | 3 +- src/loongarch64/if_tun.rs | 8 +- src/loongarch64/image.rs | 2 +- src/loongarch64/io_uring.rs | 271 ++++-- src/loongarch64/ioctl.rs | 106 +-- src/loongarch64/keyctl.rs | 166 ++++ src/loongarch64/landlock.rs | 11 +- src/loongarch64/loop_device.rs | 3 +- src/loongarch64/mempolicy.rs | 6 +- src/loongarch64/net.rs | 1066 ++++++++++++++++++----- src/loongarch64/netlink.rs | 352 +++++++- src/loongarch64/prctl.rs | 11 +- src/loongarch64/ptrace.rs | 41 +- src/loongarch64/system.rs | 3 +- src/loongarch64/vm_sockets.rs | 3 +- src/loongarch64/xdp.rs | 3 +- src/m68k/auxvec.rs | 2 +- src/m68k/bootparam.rs | 2 +- src/m68k/btrfs.rs | 82 +- src/m68k/elf_uapi.rs | 5 +- src/m68k/errno.rs | 5 +- src/m68k/general.rs | 590 +++++++++++-- src/m68k/if_arp.rs | 62 +- src/m68k/if_ether.rs | 8 +- src/m68k/if_packet.rs | 3 +- src/m68k/if_tun.rs | 8 +- src/m68k/image.rs | 2 +- src/m68k/io_uring.rs | 271 ++++-- src/m68k/ioctl.rs | 86 +- src/m68k/keyctl.rs | 164 ++++ src/m68k/landlock.rs | 11 +- src/m68k/loop_device.rs | 3 +- src/m68k/mempolicy.rs | 6 +- src/m68k/net.rs | 1066 ++++++++++++++++++----- src/m68k/netlink.rs | 352 +++++++- src/m68k/prctl.rs | 11 +- src/m68k/ptrace.rs | 418 ++++++++- src/m68k/system.rs | 3 +- src/m68k/vm_sockets.rs | 3 +- src/m68k/xdp.rs | 3 +- src/mips/auxvec.rs | 2 +- src/mips/bootparam.rs | 2 +- src/mips/btrfs.rs | 82 +- src/mips/elf_uapi.rs | 5 +- src/mips/errno.rs | 5 +- src/mips/general.rs | 593 +++++++++++-- src/mips/if_arp.rs | 62 +- src/mips/if_ether.rs | 8 +- src/mips/if_packet.rs | 3 +- src/mips/if_tun.rs | 8 +- src/mips/image.rs | 2 +- src/mips/io_uring.rs | 271 ++++-- src/mips/ioctl.rs | 86 +- src/mips/keyctl.rs | 174 ++++ src/mips/landlock.rs | 11 +- src/mips/loop_device.rs | 3 +- src/mips/mempolicy.rs | 6 +- src/mips/net.rs | 1066 ++++++++++++++++++----- src/mips/netlink.rs | 352 +++++++- src/mips/prctl.rs | 11 +- src/mips/ptrace.rs | 5 +- src/mips/system.rs | 3 +- src/mips/vm_sockets.rs | 3 +- src/mips/xdp.rs | 3 +- src/mips32r6/auxvec.rs | 2 +- src/mips32r6/bootparam.rs | 2 +- src/mips32r6/btrfs.rs | 82 +- src/mips32r6/elf_uapi.rs | 5 +- src/mips32r6/errno.rs | 5 +- src/mips32r6/general.rs | 593 +++++++++++-- src/mips32r6/if_arp.rs | 62 +- src/mips32r6/if_ether.rs | 8 +- src/mips32r6/if_packet.rs | 3 +- src/mips32r6/if_tun.rs | 8 +- src/mips32r6/image.rs | 2 +- src/mips32r6/io_uring.rs | 271 ++++-- src/mips32r6/ioctl.rs | 86 +- src/mips32r6/keyctl.rs | 174 ++++ src/mips32r6/landlock.rs | 11 +- src/mips32r6/loop_device.rs | 3 +- src/mips32r6/mempolicy.rs | 6 +- src/mips32r6/net.rs | 1066 ++++++++++++++++++----- src/mips32r6/netlink.rs | 352 +++++++- src/mips32r6/prctl.rs | 11 +- src/mips32r6/ptrace.rs | 5 +- src/mips32r6/system.rs | 3 +- src/mips32r6/vm_sockets.rs | 3 +- src/mips32r6/xdp.rs | 3 +- src/mips64/auxvec.rs | 2 +- src/mips64/bootparam.rs | 2 +- src/mips64/btrfs.rs | 82 +- src/mips64/elf_uapi.rs | 5 +- src/mips64/errno.rs | 5 +- src/mips64/general.rs | 593 +++++++++++-- src/mips64/if_arp.rs | 62 +- src/mips64/if_ether.rs | 8 +- src/mips64/if_packet.rs | 3 +- src/mips64/if_tun.rs | 8 +- src/mips64/image.rs | 2 +- src/mips64/io_uring.rs | 271 ++++-- src/mips64/ioctl.rs | 86 +- src/mips64/keyctl.rs | 176 ++++ src/mips64/landlock.rs | 11 +- src/mips64/loop_device.rs | 3 +- src/mips64/mempolicy.rs | 6 +- src/mips64/net.rs | 1066 ++++++++++++++++++----- src/mips64/netlink.rs | 352 +++++++- src/mips64/prctl.rs | 11 +- src/mips64/ptrace.rs | 5 +- src/mips64/system.rs | 3 +- src/mips64/vm_sockets.rs | 3 +- src/mips64/xdp.rs | 3 +- src/mips64r6/auxvec.rs | 2 +- src/mips64r6/bootparam.rs | 2 +- src/mips64r6/btrfs.rs | 82 +- src/mips64r6/elf_uapi.rs | 5 +- src/mips64r6/errno.rs | 5 +- src/mips64r6/general.rs | 593 +++++++++++-- src/mips64r6/if_arp.rs | 62 +- src/mips64r6/if_ether.rs | 8 +- src/mips64r6/if_packet.rs | 3 +- src/mips64r6/if_tun.rs | 8 +- src/mips64r6/image.rs | 2 +- src/mips64r6/io_uring.rs | 271 ++++-- src/mips64r6/ioctl.rs | 86 +- src/mips64r6/keyctl.rs | 176 ++++ src/mips64r6/landlock.rs | 11 +- src/mips64r6/loop_device.rs | 3 +- src/mips64r6/mempolicy.rs | 6 +- src/mips64r6/net.rs | 1066 ++++++++++++++++++----- src/mips64r6/netlink.rs | 352 +++++++- src/mips64r6/prctl.rs | 11 +- src/mips64r6/ptrace.rs | 5 +- src/mips64r6/system.rs | 3 +- src/mips64r6/vm_sockets.rs | 3 +- src/mips64r6/xdp.rs | 3 +- src/powerpc/auxvec.rs | 2 +- src/powerpc/bootparam.rs | 2 +- src/powerpc/btrfs.rs | 82 +- src/powerpc/elf_uapi.rs | 5 +- src/powerpc/errno.rs | 5 +- src/powerpc/general.rs | 590 +++++++++++-- src/powerpc/if_arp.rs | 62 +- src/powerpc/if_ether.rs | 8 +- src/powerpc/if_packet.rs | 3 +- src/powerpc/if_tun.rs | 8 +- src/powerpc/image.rs | 2 +- src/powerpc/io_uring.rs | 271 ++++-- src/powerpc/ioctl.rs | 86 +- src/powerpc/keyctl.rs | 170 ++++ src/powerpc/landlock.rs | 11 +- src/powerpc/loop_device.rs | 3 +- src/powerpc/mempolicy.rs | 6 +- src/powerpc/net.rs | 1066 ++++++++++++++++++----- src/powerpc/netlink.rs | 352 +++++++- src/powerpc/prctl.rs | 11 +- src/powerpc/ptrace.rs | 5 +- src/powerpc/system.rs | 3 +- src/powerpc/vm_sockets.rs | 3 +- src/powerpc/xdp.rs | 3 +- src/powerpc64/auxvec.rs | 2 +- src/powerpc64/bootparam.rs | 2 +- src/powerpc64/btrfs.rs | 82 +- src/powerpc64/elf_uapi.rs | 5 +- src/powerpc64/errno.rs | 5 +- src/powerpc64/general.rs | 590 +++++++++++-- src/powerpc64/if_arp.rs | 62 +- src/powerpc64/if_ether.rs | 8 +- src/powerpc64/if_packet.rs | 3 +- src/powerpc64/if_tun.rs | 8 +- src/powerpc64/image.rs | 2 +- src/powerpc64/io_uring.rs | 271 ++++-- src/powerpc64/ioctl.rs | 86 +- src/powerpc64/keyctl.rs | 172 ++++ src/powerpc64/landlock.rs | 11 +- src/powerpc64/loop_device.rs | 3 +- src/powerpc64/mempolicy.rs | 6 +- src/powerpc64/net.rs | 1066 ++++++++++++++++++----- src/powerpc64/netlink.rs | 352 +++++++- src/powerpc64/prctl.rs | 11 +- src/powerpc64/ptrace.rs | 5 +- src/powerpc64/system.rs | 3 +- src/powerpc64/vm_sockets.rs | 3 +- src/powerpc64/xdp.rs | 3 +- src/riscv32/auxvec.rs | 2 +- src/riscv32/bootparam.rs | 2 +- src/riscv32/btrfs.rs | 82 +- src/riscv32/elf_uapi.rs | 5 +- src/riscv32/errno.rs | 5 +- src/riscv32/general.rs | 590 +++++++++++-- src/riscv32/if_arp.rs | 62 +- src/riscv32/if_ether.rs | 8 +- src/riscv32/if_packet.rs | 3 +- src/riscv32/if_tun.rs | 8 +- src/riscv32/image.rs | 2 +- src/riscv32/io_uring.rs | 271 ++++-- src/riscv32/ioctl.rs | 87 +- src/riscv32/keyctl.rs | 164 ++++ src/riscv32/landlock.rs | 11 +- src/riscv32/loop_device.rs | 3 +- src/riscv32/mempolicy.rs | 6 +- src/riscv32/net.rs | 1066 ++++++++++++++++++----- src/riscv32/netlink.rs | 352 +++++++- src/riscv32/prctl.rs | 11 +- src/riscv32/ptrace.rs | 27 +- src/riscv32/system.rs | 3 +- src/riscv32/vm_sockets.rs | 3 +- src/riscv32/xdp.rs | 3 +- src/riscv64/auxvec.rs | 2 +- src/riscv64/bootparam.rs | 2 +- src/riscv64/btrfs.rs | 82 +- src/riscv64/elf_uapi.rs | 5 +- src/riscv64/errno.rs | 5 +- src/riscv64/general.rs | 590 +++++++++++-- src/riscv64/if_arp.rs | 62 +- src/riscv64/if_ether.rs | 8 +- src/riscv64/if_packet.rs | 3 +- src/riscv64/if_tun.rs | 8 +- src/riscv64/image.rs | 2 +- src/riscv64/io_uring.rs | 271 ++++-- src/riscv64/ioctl.rs | 86 +- src/riscv64/keyctl.rs | 166 ++++ src/riscv64/landlock.rs | 11 +- src/riscv64/loop_device.rs | 3 +- src/riscv64/mempolicy.rs | 6 +- src/riscv64/net.rs | 1066 ++++++++++++++++++----- src/riscv64/netlink.rs | 352 +++++++- src/riscv64/prctl.rs | 11 +- src/riscv64/ptrace.rs | 27 +- src/riscv64/system.rs | 3 +- src/riscv64/vm_sockets.rs | 3 +- src/riscv64/xdp.rs | 3 +- src/s390x/auxvec.rs | 2 +- src/s390x/bootparam.rs | 2 +- src/s390x/btrfs.rs | 82 +- src/s390x/elf_uapi.rs | 5 +- src/s390x/errno.rs | 5 +- src/s390x/general.rs | 592 +++++++++++-- src/s390x/if_arp.rs | 62 +- src/s390x/if_ether.rs | 8 +- src/s390x/if_packet.rs | 3 +- src/s390x/if_tun.rs | 8 +- src/s390x/image.rs | 2 +- src/s390x/io_uring.rs | 271 ++++-- src/s390x/ioctl.rs | 86 +- src/s390x/keyctl.rs | 186 ++++ src/s390x/landlock.rs | 11 +- src/s390x/loop_device.rs | 3 +- src/s390x/mempolicy.rs | 6 +- src/s390x/net.rs | 1066 ++++++++++++++++++----- src/s390x/netlink.rs | 352 +++++++- src/s390x/prctl.rs | 11 +- src/s390x/ptrace.rs | 704 ++++++++++++--- src/s390x/system.rs | 3 +- src/s390x/vm_sockets.rs | 3 +- src/s390x/xdp.rs | 3 +- src/sparc/auxvec.rs | 2 +- src/sparc/bootparam.rs | 2 +- src/sparc/btrfs.rs | 82 +- src/sparc/elf_uapi.rs | 5 +- src/sparc/errno.rs | 5 +- src/sparc/general.rs | 591 +++++++++++-- src/sparc/if_arp.rs | 62 +- src/sparc/if_ether.rs | 8 +- src/sparc/if_packet.rs | 3 +- src/sparc/if_tun.rs | 8 +- src/sparc/image.rs | 2 +- src/sparc/io_uring.rs | 271 ++++-- src/sparc/ioctl.rs | 2 +- src/sparc/keyctl.rs | 164 ++++ src/sparc/landlock.rs | 11 +- src/sparc/loop_device.rs | 3 +- src/sparc/mempolicy.rs | 6 +- src/sparc/net.rs | 1066 ++++++++++++++++++----- src/sparc/netlink.rs | 352 +++++++- src/sparc/prctl.rs | 11 +- src/sparc/ptrace.rs | 5 +- src/sparc/system.rs | 3 +- src/sparc/vm_sockets.rs | 3 +- src/sparc/xdp.rs | 3 +- src/sparc64/auxvec.rs | 2 +- src/sparc64/bootparam.rs | 2 +- src/sparc64/btrfs.rs | 82 +- src/sparc64/elf_uapi.rs | 5 +- src/sparc64/errno.rs | 5 +- src/sparc64/general.rs | 591 +++++++++++-- src/sparc64/if_arp.rs | 62 +- src/sparc64/if_ether.rs | 8 +- src/sparc64/if_packet.rs | 3 +- src/sparc64/if_tun.rs | 8 +- src/sparc64/image.rs | 2 +- src/sparc64/io_uring.rs | 271 ++++-- src/sparc64/ioctl.rs | 2 +- src/sparc64/keyctl.rs | 172 ++++ src/sparc64/landlock.rs | 11 +- src/sparc64/loop_device.rs | 3 +- src/sparc64/mempolicy.rs | 6 +- src/sparc64/net.rs | 1066 ++++++++++++++++++----- src/sparc64/netlink.rs | 352 +++++++- src/sparc64/prctl.rs | 11 +- src/sparc64/ptrace.rs | 5 +- src/sparc64/system.rs | 3 +- src/sparc64/vm_sockets.rs | 3 +- src/sparc64/xdp.rs | 3 +- src/x32/auxvec.rs | 4 +- src/x32/bootparam.rs | 3 +- src/x32/btrfs.rs | 82 +- src/x32/elf_uapi.rs | 5 +- src/x32/errno.rs | 5 +- src/x32/general.rs | 607 +++++++++++-- src/x32/if_arp.rs | 62 +- src/x32/if_ether.rs | 8 +- src/x32/if_packet.rs | 3 +- src/x32/if_tun.rs | 8 +- src/x32/image.rs | 2 +- src/x32/io_uring.rs | 271 ++++-- src/x32/ioctl.rs | 86 +- src/x32/keyctl.rs | 166 ++++ src/x32/landlock.rs | 11 +- src/x32/loop_device.rs | 3 +- src/x32/mempolicy.rs | 6 +- src/x32/net.rs | 1066 ++++++++++++++++++----- src/x32/netlink.rs | 352 +++++++- src/x32/prctl.rs | 11 +- src/x32/ptrace.rs | 6 +- src/x32/system.rs | 3 +- src/x32/vm_sockets.rs | 3 +- src/x32/xdp.rs | 3 +- src/x86/auxvec.rs | 4 +- src/x86/bootparam.rs | 3 +- src/x86/btrfs.rs | 82 +- src/x86/elf_uapi.rs | 5 +- src/x86/errno.rs | 5 +- src/x86/general.rs | 590 +++++++++++-- src/x86/if_arp.rs | 62 +- src/x86/if_ether.rs | 8 +- src/x86/if_packet.rs | 3 +- src/x86/if_tun.rs | 8 +- src/x86/image.rs | 2 +- src/x86/io_uring.rs | 259 ++++-- src/x86/ioctl.rs | 86 +- src/x86/keyctl.rs | 164 ++++ src/x86/landlock.rs | 11 +- src/x86/loop_device.rs | 3 +- src/x86/mempolicy.rs | 6 +- src/x86/net.rs | 1066 ++++++++++++++++++----- src/x86/netlink.rs | 352 +++++++- src/x86/prctl.rs | 11 +- src/x86/ptrace.rs | 6 +- src/x86/system.rs | 3 +- src/x86/vm_sockets.rs | 3 +- src/x86/xdp.rs | 3 +- src/x86_64/auxvec.rs | 4 +- src/x86_64/bootparam.rs | 3 +- src/x86_64/btrfs.rs | 82 +- src/x86_64/elf_uapi.rs | 5 +- src/x86_64/errno.rs | 5 +- src/x86_64/general.rs | 605 +++++++++++-- src/x86_64/if_arp.rs | 62 +- src/x86_64/if_ether.rs | 8 +- src/x86_64/if_packet.rs | 3 +- src/x86_64/if_tun.rs | 8 +- src/x86_64/image.rs | 2 +- src/x86_64/io_uring.rs | 271 ++++-- src/x86_64/ioctl.rs | 86 +- src/x86_64/keyctl.rs | 166 ++++ src/x86_64/landlock.rs | 11 +- src/x86_64/loop_device.rs | 3 +- src/x86_64/mempolicy.rs | 6 +- src/x86_64/net.rs | 1066 ++++++++++++++++++----- src/x86_64/netlink.rs | 352 +++++++- src/x86_64/prctl.rs | 11 +- src/x86_64/ptrace.rs | 6 +- src/x86_64/system.rs | 3 +- src/x86_64/vm_sockets.rs | 3 +- src/x86_64/xdp.rs | 3 +- 494 files changed, 46894 insertions(+), 15472 deletions(-) delete mode 100644 gen/ioctl/csky-ioctls.txt create mode 100644 gen/ioctl/extract.awk delete mode 100644 gen/ioctl/loongarch-ioctls.txt delete mode 100644 gen/ioctl/riscv32-ioctls.txt create mode 100644 gen/modules/keyctl.h create mode 100644 src/aarch64/keyctl.rs create mode 100644 src/arm/keyctl.rs create mode 100644 src/csky/keyctl.rs create mode 100644 src/hexagon/keyctl.rs create mode 100644 src/loongarch64/keyctl.rs create mode 100644 src/m68k/keyctl.rs create mode 100644 src/mips/keyctl.rs create mode 100644 src/mips32r6/keyctl.rs create mode 100644 src/mips64/keyctl.rs create mode 100644 src/mips64r6/keyctl.rs create mode 100644 src/powerpc/keyctl.rs create mode 100644 src/powerpc64/keyctl.rs create mode 100644 src/riscv32/keyctl.rs create mode 100644 src/riscv64/keyctl.rs create mode 100644 src/s390x/keyctl.rs create mode 100644 src/sparc/keyctl.rs create mode 100644 src/sparc64/keyctl.rs create mode 100644 src/x32/keyctl.rs create mode 100644 src/x86/keyctl.rs create mode 100644 src/x86_64/keyctl.rs diff --git a/Cargo.toml b/Cargo.toml index 830fe688f..7cb6cea3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,6 +44,7 @@ if_tun = [] image = [] io_uring = [] ioctl = [] +keyctl = [] landlock = [] loop_device = [] mempolicy = [] diff --git a/gen/Cargo.toml b/gen/Cargo.toml index 93fc9ba83..b81dc55fb 100644 --- a/gen/Cargo.toml +++ b/gen/Cargo.toml @@ -5,5 +5,5 @@ edition = "2021" publish = false [dependencies] -bindgen = { version = "0.72.1", default-features = false } -tempfile = "3.16.0" +bindgen = { version = "0.73.2", default-features = false } +tempfile = "3.27.0" diff --git a/gen/ioctl/csky-ioctls.txt b/gen/ioctl/csky-ioctls.txt deleted file mode 100644 index 949dbf80a..000000000 --- a/gen/ioctl/csky-ioctls.txt +++ /dev/null @@ -1,1502 +0,0 @@ -#ifdef __csky__ -#define FIONREAD 0x541bul -#define FIONBIO 0x5421ul -#define FIOCLEX 0x5451ul -#define FIONCLEX 0x5450ul -#define FIOASYNC 0x5452ul -#define FIOQSIZE 0x5460ul -#define TCXONC 0x540aul -#define TCFLSH 0x540bul -#define TIOCSCTTY 0x540eul -#define TIOCSPGRP 0x5410ul -#define TIOCOUTQ 0x5411ul -#define TIOCSTI 0x5412ul -#define TIOCSWINSZ 0x5414ul -#define TIOCMGET 0x5415ul -#define TIOCMBIS 0x5416ul -#define TIOCMBIC 0x5417ul -#define TIOCMSET 0x5418ul -#define TIOCSSOFTCAR 0x541aul -#define TIOCLINUX 0x541cul -#define TIOCCONS 0x541dul -#define TIOCSSERIAL 0x541ful -#define TIOCPKT 0x5420ul -#define TIOCNOTTY 0x5422ul -#define TIOCSETD 0x5423ul -#define TIOCSBRK 0x5427ul -#define TIOCCBRK 0x5428ul -#define TIOCSRS485 0x542ful -#define TIOCSPTLCK 0x40045431ul -#define TIOCSIG 0x40045436ul -#define TIOCVHANGUP 0x5437ul -#define TIOCSERCONFIG 0x5453ul -#define TIOCSERGWILD 0x5454ul -#define TIOCSERSWILD 0x5455ul -#define TIOCSLCKTRMIOS 0x5457ul -#define TIOCSERGSTRUCT 0x5458ul -#define TIOCSERGETLSR 0x5459ul -#define TIOCSERGETMULTI 0x545aul -#define TIOCSERSETMULTI 0x545bul -#define TIOCMIWAIT 0x545cul -#define TCGETS 0x5401ul -#define TCGETA 0x5405ul -#define TCSBRK 0x5409ul -#define TCSBRKP 0x5425ul -#define TCSETA 0x5406ul -#define TCSETAF 0x5408ul -#define TCSETAW 0x5407ul -#define TIOCEXCL 0x540cul -#define TIOCNXCL 0x540dul -#define TIOCGDEV 0x80045432ul -#define TIOCGEXCL 0x80045440ul -#define TIOCGICOUNT 0x545dul -#define TIOCGLCKTRMIOS 0x5456ul -#define TIOCGPGRP 0x540ful -#define TIOCGPKT 0x80045438ul -#define TIOCGPTLCK 0x80045439ul -#define TIOCGPTN 0x80045430ul -#define TIOCGPTPEER 0x5441ul -#define TIOCGRS485 0x542eul -#define TIOCGSERIAL 0x541eul -#define TIOCGSID 0x5429ul -#define TIOCGSOFTCAR 0x5419ul -#define TIOCGWINSZ 0x5413ul -#define TCGETS2 0x802c542aul -#define TCGETX 0x5432ul -#define TCSETS 0x5402ul -#define TCSETS2 0x402c542bul -#define TCSETSF 0x5404ul -#define TCSETSF2 0x402c542dul -#define TCSETSW 0x5403ul -#define TCSETSW2 0x402c542cul -#define TCSETX 0x5433ul -#define TCSETXF 0x5434ul -#define TCSETXW 0x5435ul -#define TIOCGETD 0x5424ul -#define MTIOCGET 0x801c6d02ul -#define BLKSSZGET 0x1268ul -#define BLKPBSZGET 0x127bul -#define BLKROSET 0x125dul -#define BLKROGET 0x125eul -#define BLKRRPART 0x125ful -#define BLKGETSIZE 0x1260ul -#define BLKFLSBUF 0x1261ul -#define BLKRASET 0x1262ul -#define BLKRAGET 0x1263ul -#define BLKFRASET 0x1264ul -#define BLKFRAGET 0x1265ul -#define BLKSECTSET 0x1266ul -#define BLKSECTGET 0x1267ul -#define BLKPG 0x1269ul -#define BLKBSZGET 0x80041270ul -#define BLKBSZSET 0x40041271ul -#define BLKGETSIZE64 0x80041272ul -#define BLKTRACESETUP 0xc0401273ul -#define BLKTRACESTART 0x1274ul -#define BLKTRACESTOP 0x1275ul -#define BLKTRACETEARDOWN 0x1276ul -#define BLKDISCARD 0x1277ul -#define BLKIOMIN 0x1278ul -#define BLKIOOPT 0x1279ul -#define BLKALIGNOFF 0x127aul -#define BLKDISCARDZEROES 0x127cul -#define BLKSECDISCARD 0x127dul -#define BLKROTATIONAL 0x127eul -#define BLKZEROOUT 0x127ful -#define FIEMAP_MAX_OFFSET 0xfffffffful -#define FIEMAP_FLAG_SYNC 0x1ul -#define FIEMAP_FLAG_XATTR 0x2ul -#define FIEMAP_FLAG_CACHE 0x4ul -#define FIEMAP_FLAGS_COMPAT 0x3ul -#define FIEMAP_EXTENT_LAST 0x1ul -#define FIEMAP_EXTENT_UNKNOWN 0x2ul -#define FIEMAP_EXTENT_DELALLOC 0x4ul -#define FIEMAP_EXTENT_ENCODED 0x8ul -#define FIEMAP_EXTENT_DATA_ENCRYPTED 0x80ul -#define FIEMAP_EXTENT_NOT_ALIGNED 0x100ul -#define FIEMAP_EXTENT_DATA_INLINE 0x200ul -#define FIEMAP_EXTENT_DATA_TAIL 0x400ul -#define FIEMAP_EXTENT_UNWRITTEN 0x800ul -#define FIEMAP_EXTENT_MERGED 0x1000ul -#define FIEMAP_EXTENT_SHARED 0x2000ul -#define UFFDIO_REGISTER 0xc020aa00ul -#define UFFDIO_UNREGISTER 0x8010aa01ul -#define UFFDIO_WAKE 0x8010aa02ul -#define UFFDIO_COPY 0xc028aa03ul -#define UFFDIO_ZEROPAGE 0xc020aa04ul -#define UFFDIO_WRITEPROTECT 0xc018aa06ul -#define UFFDIO_API 0xc018aa3ful -#define NS_GET_USERNS 0xb701ul -#define NS_GET_PARENT 0xb702ul -#define NS_GET_NSTYPE 0xb703ul -#define KDGETLED 0x4b31ul -#define KDSETLED 0x4b32ul -#define KDGKBLED 0x4b64ul -#define KDSKBLED 0x4b65ul -#define KDGKBTYPE 0x4b33ul -#define KDADDIO 0x4b34ul -#define KDDELIO 0x4b35ul -#define KDENABIO 0x4b36ul -#define KDDISABIO 0x4b37ul -#define KDSETMODE 0x4b3aul -#define KDGETMODE 0x4b3bul -#define KDMKTONE 0x4b30ul -#define KIOCSOUND 0x4b2ful -#define GIO_CMAP 0x4b70ul -#define PIO_CMAP 0x4b71ul -#define GIO_FONT 0x4b60ul -#define GIO_FONTX 0x4b6bul -#define PIO_FONT 0x4b61ul -#define PIO_FONTX 0x4b6cul -#define PIO_FONTRESET 0x4b6dul -#define GIO_SCRNMAP 0x4b40ul -#define GIO_UNISCRNMAP 0x4b69ul -#define PIO_SCRNMAP 0x4b41ul -#define PIO_UNISCRNMAP 0x4b6aul -#define GIO_UNIMAP 0x4b66ul -#define PIO_UNIMAP 0x4b67ul -#define PIO_UNIMAPCLR 0x4b68ul -#define KDGKBMODE 0x4b44ul -#define KDSKBMODE 0x4b45ul -#define KDGKBMETA 0x4b62ul -#define KDSKBMETA 0x4b63ul -#define KDGKBENT 0x4b46ul -#define KDSKBENT 0x4b47ul -#define KDGKBSENT 0x4b48ul -#define KDSKBSENT 0x4b49ul -#define KDGKBDIACR 0x4b4aul -#define KDGETKEYCODE 0x4b4cul -#define KDSETKEYCODE 0x4b4dul -#define KDSIGACCEPT 0x4b4eul -#define VT_OPENQRY 0x5600ul -#define VT_GETMODE 0x5601ul -#define VT_SETMODE 0x5602ul -#define VT_GETSTATE 0x5603ul -#define VT_RELDISP 0x5605ul -#define VT_ACTIVATE 0x5606ul -#define VT_WAITACTIVE 0x5607ul -#define VT_DISALLOCATE 0x5608ul -#define VT_RESIZE 0x5609ul -#define VT_RESIZEX 0x560aul -#define FIOSETOWN 0x8901ul -#define SIOCSPGRP 0x8902ul -#define FIOGETOWN 0x8903ul -#define SIOCGPGRP 0x8904ul -#define SIOCATMARK 0x8905ul -#define SIOCGSTAMP 0x8906ul -#define TIOCINQ 0x541bul -#define SIOCADDRT 0x890bul -#define SIOCDELRT 0x890cul -#define SIOCGIFNAME 0x8910ul -#define SIOCSIFLINK 0x8911ul -#define SIOCGIFCONF 0x8912ul -#define SIOCGIFFLAGS 0x8913ul -#define SIOCSIFFLAGS 0x8914ul -#define SIOCGIFADDR 0x8915ul -#define SIOCSIFADDR 0x8916ul -#define SIOCGIFDSTADDR 0x8917ul -#define SIOCSIFDSTADDR 0x8918ul -#define SIOCGIFBRDADDR 0x8919ul -#define SIOCSIFBRDADDR 0x891aul -#define SIOCGIFNETMASK 0x891bul -#define SIOCSIFNETMASK 0x891cul -#define SIOCGIFMETRIC 0x891dul -#define SIOCSIFMETRIC 0x891eul -#define SIOCGIFMEM 0x891ful -#define SIOCSIFMEM 0x8920ul -#define SIOCGIFMTU 0x8921ul -#define SIOCSIFMTU 0x8922ul -#define SIOCSIFHWADDR 0x8924ul -#define SIOCGIFENCAP 0x8925ul -#define SIOCSIFENCAP 0x8926ul -#define SIOCGIFHWADDR 0x8927ul -#define SIOCGIFSLAVE 0x8929ul -#define SIOCSIFSLAVE 0x8930ul -#define SIOCADDMULTI 0x8931ul -#define SIOCDELMULTI 0x8932ul -#define SIOCDARP 0x8953ul -#define SIOCGARP 0x8954ul -#define SIOCSARP 0x8955ul -#define SIOCDRARP 0x8960ul -#define SIOCGRARP 0x8961ul -#define SIOCSRARP 0x8962ul -#define SIOCGIFMAP 0x8970ul -#define SIOCSIFMAP 0x8971ul -#define SIOCRTMSG 0x890dul -#define SIOCSIFNAME 0x8923ul -#define SIOCGIFINDEX 0x8933ul -#define SIOGIFINDEX 0x8933ul -#define SIOCSIFPFLAGS 0x8934ul -#define SIOCGIFPFLAGS 0x8935ul -#define SIOCDIFADDR 0x8936ul -#define SIOCSIFHWBROADCAST 0x8937ul -#define SIOCGIFCOUNT 0x8938ul -#define SIOCGIFBR 0x8940ul -#define SIOCSIFBR 0x8941ul -#define SIOCGIFTXQLEN 0x8942ul -#define SIOCSIFTXQLEN 0x8943ul -#define SIOCADDDLCI 0x8980ul -#define SIOCDELDLCI 0x8981ul -#define SIOCDEVPRIVATE 0x89f0ul -#define SIOCPROTOPRIVATE 0x89e0ul -#define FIBMAP 0x1ul -#define FIGETBSZ 0x2ul -#define FIFREEZE 0xc0045877ul -#define FITHAW 0xc0045878ul -#define FITRIM 0xc0185879ul -#define FICLONE 0x40049409ul -#define FICLONERANGE 0x4020940dul -#define FIDEDUPERANGE 0xc0189436ul -#define FS_IOC_GETFLAGS 0x80046601ul -#define FS_IOC_SETFLAGS 0x40046602ul -#define FS_IOC_GETVERSION 0x80047601ul -#define FS_IOC_SETVERSION 0x40047602ul -#define FS_IOC_FIEMAP 0xc020660bul -#define FS_IOC32_GETFLAGS 0x80046601ul -#define FS_IOC32_SETFLAGS 0x40046602ul -#define FS_IOC32_GETVERSION 0x80047601ul -#define FS_IOC32_SETVERSION 0x40047602ul -#define FS_IOC_FSGETXATTR 0x801c581ful -#define FS_IOC_FSSETXATTR 0x401c5820ul -#define FS_IOC_GETFSLABEL 0x81009431ul -#define FS_IOC_SETFSLABEL 0x41009432ul -#define EXT4_IOC_GETVERSION 0x80046603ul -#define EXT4_IOC_SETVERSION 0x40046604ul -#define EXT4_IOC_GETVERSION_OLD 0x80047601ul -#define EXT4_IOC_SETVERSION_OLD 0x40047602ul -#define EXT4_IOC_GETRSVSZ 0x80046605ul -#define EXT4_IOC_SETRSVSZ 0x40046606ul -#define EXT4_IOC_GROUP_EXTEND 0x40046607ul -#define EXT4_IOC_MIGRATE 0x6609ul -#define EXT4_IOC_ALLOC_DA_BLKS 0x660cul -#define EXT4_IOC_RESIZE_FS 0x40086610ul -#define EXT4_IOC_SWAP_BOOT 0x6611ul -#define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul -#define EXT4_IOC_CLEAR_ES_CACHE 0x6628ul -#define EXT4_IOC_GETSTATE 0x40046629ul -#define EXT4_IOC_GET_ES_CACHE 0xc020662aul -#define EXT4_IOC_CHECKPOINT 0x4004662bul -#define EXT4_IOC_SHUTDOWN 0x8004587dul -#define EXT4_IOC32_GETVERSION 0x80046603ul -#define EXT4_IOC32_SETVERSION 0x40046604ul -#define EXT4_IOC32_GETRSVSZ 0x80046605ul -#define EXT4_IOC32_SETRSVSZ 0x40046606ul -#define EXT4_IOC32_GROUP_EXTEND 0x40046607ul -#define EXT4_IOC32_GETVERSION_OLD 0x80047601ul -#define EXT4_IOC32_SETVERSION_OLD 0x40047602ul -#define VIDIOC_SUBDEV_QUERYSTD 0x8008563ful -#define AUTOFS_DEV_IOCTL_CLOSEMOUNT 0xc0189375ul -#define LIRC_SET_SEND_CARRIER 0x40046913ul -#define AUTOFS_IOC_PROTOSUBVER 0x80049367ul -#define PTP_SYS_OFFSET_PRECISE 0xc0403d08ul -#define FSI_SCOM_WRITE 0xc0207302ul -#define ATM_GETCIRANGE 0x400c618aul -#define DMA_BUF_SET_NAME_B 0x40086201ul -#define RIO_CM_EP_GET_LIST_SIZE 0xc0046301ul -#define TUNSETPERSIST 0x400454cbul -#define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul -#define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80206d01ul -#define ENI_SETMULT 0x400c6167ul -#define RIO_GET_EVENT_MASK 0x80046d0eul -#define LIRC_GET_MAX_TIMEOUT 0x80046909ul -#define USBDEVFS_CLAIMINTERFACE 0x8004550ful -#define CHIOMOVE 0x40146301ul -#define SONYPI_IOCGBATFLAGS 0x80017607ul -#define BTRFS_IOC_SYNC 0x9408ul -#define VIDIOC_TRY_FMT 0xc0cc5640ul -#define LIRC_SET_REC_MODE 0x40046912ul -#define VIDIOC_DQEVENT 0x80785659ul -#define RPMSG_DESTROY_EPT_IOCTL 0xb502ul -#define UVCIOC_CTRL_MAP 0xc0587520ul -#define VHOST_SET_BACKEND_FEATURES 0x4008af25ul -#define VHOST_VSOCK_SET_GUEST_CID 0x4008af60ul -#define UI_SET_KEYBIT 0x40045565ul -#define LIRC_SET_REC_TIMEOUT 0x40046918ul -#define FS_IOC_GET_ENCRYPTION_KEY_STATUS 0xc080661aul -#define BTRFS_IOC_TREE_SEARCH_V2 0xc0709411ul -#define VHOST_SET_VRING_BASE 0x4008af12ul -#define RIO_ENABLE_DOORBELL_RANGE 0x40086d09ul -#define VIDIOC_TRY_EXT_CTRLS 0xc0185649ul -#define LIRC_GET_REC_MODE 0x80046902ul -#define PPGETTIME 0x80087095ul -#define BTRFS_IOC_RM_DEV 0x5000940bul -#define ATM_SETBACKEND 0x400261f2ul -#define FSL_HV_IOCTL_PARTITION_START 0xc010af03ul -#define FBIO_WAITEVENT 0x4688ul -#define SWITCHTEC_IOCTL_PORT_TO_PFF 0xc00c5745ul -#define NVME_IOCTL_IO_CMD 0xc0484e43ul -#define IPMICTL_RECEIVE_MSG_TRUNC 0xc018690bul -#define FDTWADDLE 0x259ul -#define NVME_IOCTL_SUBMIT_IO 0x402c4e42ul -#define NILFS_IOCTL_SYNC 0x80086e8aul -#define VIDIOC_SUBDEV_S_DV_TIMINGS 0xc0845657ul -#define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul -#define DM_DEV_STATUS 0xc138fd07ul -#define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc00c6161ul -#define UI_SET_PROPBIT 0x4004556eul -#define TUNSETFILTEREBPF 0x800454e1ul -#define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul -#define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul -#define WDIOC_SETOPTIONS 0x80045704ul -#define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x400c618eul -#define FSL_HV_IOCTL_GETPROP 0xc028af07ul -#define FDGETPRM 0x801c0204ul -#define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x400c6160ul -#define PTP_SYS_OFFSET2 0x43403d0eul -#define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul -#define DMA_BUF_SET_NAME_A 0x40046201ul -#define PTP_PIN_GETFUNC 0xc0603d06ul -#define PTP_SYS_OFFSET_EXTENDED 0xc4c03d09ul -#define DFL_FPGA_PORT_UINT_SET_IRQ 0x4008b648ul -#define RTC_EPOCH_READ 0x8004700dul -#define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul -#define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x400c6190ul -#define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul -#define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul -#define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul -#define HIDIOCGCOLLECTIONINDEX 0x40184810ul -#define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul -#define GPIOHANDLE_GET_LINE_VALUES_IOCTL 0xc040b408ul -#define UI_DEV_SETUP 0x405c5503ul -#define ISST_IF_IO_CMD 0x4004fe02ul -#define RIO_MPORT_MAINT_READ_REMOTE 0x80186d07ul -#define VIDIOC_OMAP3ISP_HIST_CFG 0xc03056c4ul -#define BLKGETNRZONES 0x80041285ul -#define VIDIOC_G_MODULATOR 0xc0445636ul -#define VBG_IOCTL_WRITE_CORE_DUMP 0xc01c5613ul -#define USBDEVFS_SETINTERFACE 0x80085504ul -#define PPPIOCGCHAN 0x80047437ul -#define EVIOCGVERSION 0x80044501ul -#define VHOST_NET_SET_BACKEND 0x4008af30ul -#define USBDEVFS_REAPURBNDELAY 0x4004550dul -#define RNDZAPENTCNT 0x5204ul -#define VIDIOC_G_PARM 0xc0cc5615ul -#define TUNGETDEVNETNS 0x54e3ul -#define LIRC_SET_MEASURE_CARRIER_MODE 0x4004691dul -#define VHOST_SET_VRING_ERR 0x4008af22ul -#define VDUSE_VQ_SETUP 0x40208114ul -#define AUTOFS_IOC_SETTIMEOUT 0xc0049364ul -#define VIDIOC_S_FREQUENCY 0x402c5639ul -#define F2FS_IOC_SEC_TRIM_FILE 0x4018f514ul -#define FS_IOC_REMOVE_ENCRYPTION_KEY 0xc0406618ul -#define WDIOC_GETPRETIMEOUT 0x80045709ul -#define USBDEVFS_DROP_PRIVILEGES 0x4004551eul -#define BTRFS_IOC_SNAP_CREATE_V2 0x50009417ul -#define VHOST_VSOCK_SET_RUNNING 0x4004af61ul -#define STP_SET_OPTIONS 0x40082502ul -#define FBIO_RADEON_GET_MIRROR 0x80044003ul -#define IVTVFB_IOC_DMA_FRAME 0x400c56c0ul -#define IPMICTL_SEND_COMMAND 0x8014690dul -#define VIDIOC_G_ENC_INDEX 0x8818564cul -#define DFL_FPGA_FME_PORT_PR 0xb680ul -#define CHIOSVOLTAG 0x40306312ul -#define ATM_SETESIF 0x400c618dul -#define FW_CDEV_IOC_SEND_RESPONSE 0x40142304ul -#define PMU_IOC_GET_MODEL 0x80044203ul -#define JSIOCGBTNMAP 0x84006a34ul -#define USBDEVFS_HUB_PORTINFO 0x80805513ul -#define VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS 0xc018560bul -#define FDCLRPRM 0x241ul -#define BTRFS_IOC_SCRUB 0xc400941bul -#define USBDEVFS_DISCONNECT 0x5516ul -#define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful -#define VHOST_VDPA_GET_CONFIG 0x8008af73ul -#define PPPIOCGNPMODE 0xc008744cul -#define FDGETDRVPRM 0x80580211ul -#define TUNSETVNETLE 0x400454dcul -#define PHN_SETREG 0x40087006ul -#define PPPIOCDETACH 0x4004743cul -#define MMTIMER_GETRES 0x80046d01ul -#define VIDIOC_SUBDEV_ENUMSTD 0xc0405619ul -#define PPGETFLAGS 0x8004709aul -#define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul -#define VIDIOC_G_TUNER 0xc054561dul -#define DM_TABLE_STATUS 0xc138fd0cul -#define DM_DEV_ARM_POLL 0xc138fd10ul -#define NE_CREATE_VM 0x8008ae20ul -#define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul -#define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful -#define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul -#define FW_CDEV_IOC_SEND_REQUEST 0x40242301ul -#define SONYPI_IOCGBLUE 0x80017608ul -#define F2FS_IOC_DECOMPRESS_FILE 0xf517ul -#define I2OHTML 0xc01c6909ul -#define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x400c6133ul -#define I2OPARMSET 0xc0186903ul -#define TEE_IOC_CANCEL 0x8008a404ul -#define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul -#define DFL_FPGA_PORT_RESET 0xb640ul -#define PPPIOCGASYNCMAP 0x80047458ul -#define EVIOCGKEYCODE_V2 0x80284504ul -#define DM_DEV_SET_GEOMETRY 0xc138fd0ful -#define HIDIOCSUSAGE 0x4018480cul -#define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE 0x40182310ul -#define PTP_EXTTS_REQUEST 0x40103d02ul -#define SWITCHTEC_IOCTL_EVENT_CTL 0xc0285743ul -#define WDIOC_SETPRETIMEOUT 0xc0045708ul -#define VHOST_SCSI_CLEAR_ENDPOINT 0x40e8af41ul -#define JSIOCGAXES 0x80016a11ul -#define HIDIOCSFLAG 0x4004480ful -#define PTP_PEROUT_REQUEST2 0x40383d0cul -#define PPWDATA 0x40017086ul -#define PTP_CLOCK_GETCAPS 0x80503d01ul -#define FDGETMAXERRS 0x8014020eul -#define TUNSETQUEUE 0x400454d9ul -#define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul -#define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul -#define ND_IOCTL_ARS_CAP 0xc0204e01ul -#define NBD_SET_BLKSIZE 0xab01ul -#define NBD_SET_TIMEOUT 0xab09ul -#define VHOST_SCSI_GET_ABI_VERSION 0x4004af42ul -#define RIO_UNMAP_INBOUND 0x40086d12ul -#define ATM_QUERYLOOP 0x400c6154ul -#define DFL_FPGA_GET_API_VERSION 0xb600ul -#define USBDEVFS_WAIT_FOR_RESUME 0x5523ul -#define FBIO_CURSOR 0xc0484608ul -#define RNDCLEARPOOL 0x5206ul -#define VIDIOC_QUERYSTD 0x8008563ful -#define DMA_BUF_IOCTL_SYNC 0x40086200ul -#define SCIF_RECV 0xc0147307ul -#define PTP_PIN_GETFUNC2 0xc0603d0ful -#define FW_CDEV_IOC_ALLOCATE 0xc0202302ul -#define CEC_ADAP_G_CAPS 0xc04c6100ul -#define VIDIOC_G_FBUF 0x802c560aul -#define PTP_ENABLE_PPS2 0x40043d0dul -#define PCITEST_CLEAR_IRQ 0x5010ul -#define IPMICTL_SET_GETS_EVENTS_CMD 0x80046910ul -#define BTRFS_IOC_DEVICES_READY 0x90009427ul -#define JSIOCGAXMAP 0x80406a32ul -#define FW_CDEV_IOC_GET_CYCLE_TIMER 0x800c230cul -#define FW_CDEV_IOC_SET_ISO_CHANNELS 0x400c2317ul -#define RTC_WIE_OFF 0x7010ul -#define PPGETMODE 0x80047098ul -#define VIDIOC_DBG_G_REGISTER 0xc0385650ul -#define PTP_SYS_OFFSET 0x43403d05ul -#define BTRFS_IOC_SPACE_INFO 0xc0109414ul -#define VIDIOC_SUBDEV_ENUM_FRAME_SIZE 0xc040564aul -#define ND_IOCTL_VENDOR 0xc0084e09ul -#define SCIF_VREADFROM 0xc024730cul -#define BTRFS_IOC_TRANS_START 0x9406ul -#define INOTIFY_IOC_SETNEXTWD 0x40044900ul -#define SNAPSHOT_GET_IMAGE_SIZE 0x8008330eul -#define TUNDETACHFILTER 0x400854d6ul -#define ND_IOCTL_CLEAR_ERROR 0xc0204e04ul -#define IOC_PR_CLEAR 0x401070cdul -#define SCIF_READFROM 0xc024730aul -#define PPPIOCGDEBUG 0x80047441ul -#define BLKGETZONESZ 0x80041284ul -#define HIDIOCGUSAGES 0xd01c4813ul -#define SONYPI_IOCGTEMP 0x8001760cul -#define UI_SET_MSCBIT 0x40045568ul -#define APM_IOC_SUSPEND 0x4102ul -#define BTRFS_IOC_TREE_SEARCH 0xd0009411ul -#define RTC_PLL_GET 0x801c7011ul -#define RIO_CM_EP_GET_LIST 0xc0046302ul -#define USBDEVFS_DISCSIGNAL 0x8008550eul -#define LIRC_GET_MIN_TIMEOUT 0x80046908ul -#define SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY 0x81985742ul -#define DM_TARGET_MSG 0xc138fd0eul -#define SONYPI_IOCGBAT1REM 0x80027603ul -#define EVIOCSFF 0x402c4580ul -#define TUNSETGROUP 0x400454ceul -#define EVIOCGKEYCODE 0x80084504ul -#define KCOV_REMOTE_ENABLE 0x40186366ul -#define ND_IOCTL_GET_CONFIG_SIZE 0xc00c4e04ul -#define FDEJECT 0x25aul -#define TUNSETOFFLOAD 0x400454d0ul -#define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x400c6188ul -#define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul -#define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul -#define VHOST_VDPA_GET_STATUS 0x8001af71ul -#define CCISS_PASSTHRU 0xc054420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful -#define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul -#define UI_ABS_SETUP 0x401c5504ul -#define UI_DEV_DESTROY 0x5502ul -#define BTRFS_IOC_QUOTA_CTL 0xc0109428ul -#define RTC_AIE_ON 0x7001ul -#define AUTOFS_IOC_EXPIRE 0x810c9365ul -#define PPPIOCSDEBUG 0x40047440ul -#define GPIO_V2_LINE_SET_VALUES_IOCTL 0xc010b40ful -#define PPPIOCSMRU 0x40047452ul -#define CCISS_DEREGDISK 0x420cul -#define UI_DEV_CREATE 0x5501ul -#define FUSE_DEV_IOC_CLONE 0x8004e500ul -#define BTRFS_IOC_START_SYNC 0x80089418ul -#define NILFS_IOCTL_DELETE_CHECKPOINT 0x40086e81ul -#define SNAPSHOT_AVAIL_SWAP_SIZE 0x80083313ul -#define DM_TABLE_CLEAR 0xc138fd0aul -#define CCISS_GETINTINFO 0x80084202ul -#define PPPIOCSASYNCMAP 0x40047457ul -#define I2OEVTGET 0x8068690bul -#define NVME_IOCTL_RESET 0x4e44ul -#define PPYIELD 0x708dul -#define NVME_IOCTL_IO64_CMD 0xc0504e48ul -#define TUNSETCARRIER 0x400454e2ul -#define DM_DEV_WAIT 0xc138fd08ul -#define RTC_WIE_ON 0x700ful -#define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul -#define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40206d00ul -#define RTC_SET_TIME 0x4024700aul -#define VHOST_RESET_OWNER 0xaf02ul -#define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul -#define AUTOFS_DEV_IOCTL_OPENMOUNT 0xc0189374ul -#define UDF_GETEABLOCK 0x80046c41ul -#define VFIO_IOMMU_MAP_DMA 0x3b71ul -#define VIDIOC_SUBSCRIBE_EVENT 0x4020565aul -#define HIDIOCGFLAG 0x8004480eul -#define HIDIOCGUCODE 0xc018480dul -#define VIDIOC_OMAP3ISP_AF_CFG 0xc04c56c5ul -#define DM_REMOVE_ALL 0xc138fd01ul -#define ASPEED_LPC_CTRL_IOCTL_MAP 0x4010b201ul -#define CCISS_GETFIRMVER 0x80044208ul -#define ND_IOCTL_ARS_START 0xc0204e02ul -#define PPPIOCSMRRU 0x4004743bul -#define CEC_ADAP_S_LOG_ADDRS 0xc05c6104ul -#define RPROC_GET_SHUTDOWN_ON_RELEASE 0x8004b702ul -#define DMA_HEAP_IOCTL_ALLOC 0xc0184800ul -#define PPSETTIME 0x40087096ul -#define RTC_ALM_READ 0x80247008ul -#define VDUSE_SET_API_VERSION 0x40088101ul -#define RIO_MPORT_MAINT_WRITE_REMOTE 0x40186d08ul -#define VIDIOC_SUBDEV_S_CROP 0xc038563cul -#define USBDEVFS_CONNECT 0x5517ul -#define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul -#define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul -#define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x400c6187ul -#define NBD_SET_SIZE 0xab02ul -#define UDF_GETVOLIDENT 0x80046c42ul -#define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul -#define FSL_HV_IOCTL_SETPROP 0xc028af08ul -#define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul -#define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul -#define UDF_GETEASIZE 0x80046c40ul -#define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul -#define VHOST_SET_OWNER 0xaf01ul -#define RIO_ALLOC_DMA 0xc0186d13ul -#define RIO_CM_CHAN_ACCEPT 0xc0086307ul -#define I2OHRTGET 0xc00c6901ul -#define ATM_SETCIRANGE 0x400c618bul -#define HPET_IE_ON 0x6801ul -#define PERF_EVENT_IOC_ID 0x80042407ul -#define TUNSETSNDBUF 0x400454d4ul -#define PTP_PIN_SETFUNC 0x40603d07ul -#define PPPIOCDISCONN 0x7439ul -#define VIDIOC_QUERYCTRL 0xc0445624ul -#define PPEXCL 0x708ful -#define PCITEST_MSI 0x40045003ul -#define FDWERRORCLR 0x256ul -#define AUTOFS_IOC_FAIL 0x9361ul -#define USBDEVFS_IOCTL 0xc00c5512ul -#define VIDIOC_S_STD 0x40085618ul -#define F2FS_IOC_RESIZE_FS 0x4008f510ul -#define SONET_SETDIAG 0xc0046112ul -#define BTRFS_IOC_DEFRAG 0x50009402ul -#define CCISS_GETDRIVVER 0x80044209ul -#define IPMICTL_GET_TIMING_PARMS_CMD 0x80086917ul -#define HPET_IRQFREQ 0x40046806ul -#define ATM_GETESI 0x400c6185ul -#define CCISS_GETLUNINFO 0x800c4211ul -#define AUTOFS_DEV_IOCTL_ISMOUNTPOINT 0xc018937eul -#define TEE_IOC_SHM_ALLOC 0xc010a401ul -#define PERF_EVENT_IOC_SET_BPF 0x40042408ul -#define UDMABUF_CREATE_LIST 0x40087543ul -#define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x400c6161ul -#define BR2684_SETFILT 0x401c6190ul -#define RNDGETPOOL 0x80085202ul -#define PPS_GETPARAMS 0x800470a1ul -#define IOC_PR_RESERVE 0x401070c9ul -#define VIDIOC_TRY_DECODER_CMD 0xc0485661ul -#define RIO_CM_CHAN_CLOSE 0x40026304ul -#define VIDIOC_DV_TIMINGS_CAP 0xc0905664ul -#define IOCTL_MEI_CONNECT_CLIENT_VTAG 0xc0144804ul -#define PMU_IOC_GET_BACKLIGHT 0x80044201ul -#define USBDEVFS_GET_CAPABILITIES 0x8004551aul -#define SCIF_WRITETO 0xc024730bul -#define UDF_RELOCATE_BLOCKS 0xc0046c43ul -#define FSL_HV_IOCTL_PARTITION_RESTART 0xc008af01ul -#define CCISS_REGNEWD 0x420eul -#define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul -#define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul -#define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d45742ul -#define VFIO_EEH_PE_OP 0x3b79ul -#define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc01c2308ul -#define F2FS_IOC_RELEASE_COMPRESS_BLOCKS 0x8008f512ul -#define NBD_SET_SIZE_BLOCKS 0xab07ul -#define IPMI_BMC_IOCTL_SET_SMS_ATN 0xb100ul -#define ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG 0xc010b301ul -#define VIDIOC_S_AUDOUT 0x40345632ul -#define VIDIOC_S_FMT 0xc0cc5605ul -#define PPPIOCATTACH 0x4004743dul -#define VHOST_GET_VRING_BUSYLOOP_TIMEOUT 0x4008af24ul -#define FS_IOC_MEASURE_VERITY 0xc0046686ul -#define CCISS_BIG_PASSTHRU 0xc0584212ul -#define IPMICTL_SET_MY_LUN_CMD 0x80046913ul -#define PCITEST_LEGACY_IRQ 0x5002ul -#define USBDEVFS_SUBMITURB 0x802c550aul -#define AUTOFS_IOC_READY 0x9360ul -#define BTRFS_IOC_SEND 0x40449426ul -#define VIDIOC_G_EXT_CTRLS 0xc0185647ul -#define JSIOCSBTNMAP 0x44006a33ul -#define PPPIOCSFLAGS 0x40047459ul -#define NVRAM_INIT 0x7040ul -#define RFKILL_IOCTL_NOINPUT 0x5201ul -#define BTRFS_IOC_BALANCE 0x5000940cul -#define FS_IOC_GETFSMAP 0xc0c0583bul -#define IPMICTL_GET_MY_CHANNEL_LUN_CMD 0x8004691bul -#define STP_POLICY_ID_GET 0x80102501ul -#define PPSETFLAGS 0x4004709bul -#define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul -#define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul -#define PPPIOCGXASYNCMAP 0x80207450ul -#define VHOST_SET_VRING_CALL 0x4008af21ul -#define LIRC_GET_FEATURES 0x80046900ul -#define GSMIOC_DISABLE_NET 0x4703ul -#define AUTOFS_IOC_CATATONIC 0x9362ul -#define NBD_DO_IT 0xab03ul -#define LIRC_SET_REC_CARRIER_RANGE 0x4004691ful -#define IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD 0x80046919ul -#define EVIOCSCLOCKID 0x400445a0ul -#define USBDEVFS_FREE_STREAMS 0x8008551dul -#define FSI_SCOM_RESET 0x40047303ul -#define PMU_IOC_GRAB_BACKLIGHT 0x80044206ul -#define VIDIOC_SUBDEV_S_FMT 0xc0585605ul -#define FDDEFPRM 0x401c0243ul -#define TEE_IOC_INVOKE 0x8010a403ul -#define USBDEVFS_BULK 0xc0105502ul -#define SCIF_VWRITETO 0xc024730dul -#define SONYPI_IOCSBRT 0x40017600ul -#define BTRFS_IOC_FILE_EXTENT_SAME 0xc0189436ul -#define RTC_PIE_ON 0x7005ul -#define BTRFS_IOC_SCAN_DEV 0x50009404ul -#define PPPIOCXFERUNIT 0x744eul -#define WDIOC_GETTIMEOUT 0x80045707ul -#define BTRFS_IOC_SET_RECEIVED_SUBVOL 0xc0c09425ul -#define DFL_FPGA_PORT_ERR_SET_IRQ 0x4008b646ul -#define FBIO_WAITFORVSYNC 0x40044620ul -#define RTC_PIE_OFF 0x7006ul -#define EVIOCGRAB 0x40044590ul -#define PMU_IOC_SET_BACKLIGHT 0x40044202ul -#define EVIOCGREP 0x80084503ul -#define PERF_EVENT_IOC_MODIFY_ATTRIBUTES 0x4004240bul -#define UFFDIO_CONTINUE 0xc020aa07ul -#define VDUSE_GET_API_VERSION 0x80088100ul -#define RTC_RD_TIME 0x80247009ul -#define FDMSGOFF 0x246ul -#define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul -#define PCITEST_SET_IRQTYPE 0x40045008ul -#define VIDIOC_SUBDEV_S_EDID 0xc0245629ul -#define MATROXFB_SET_OUTPUT_MODE 0x40046efaul -#define RIO_DEV_ADD 0x40206d17ul -#define VIDIOC_ENUM_FREQ_BANDS 0xc0405665ul -#define FBIO_RADEON_SET_MIRROR 0x40044004ul -#define PCITEST_GET_IRQTYPE 0x5009ul -#define JSIOCGVERSION 0x80046a01ul -#define SONYPI_IOCSBLUE 0x40017609ul -#define SNAPSHOT_PREF_IMAGE_SIZE 0x3312ul -#define F2FS_IOC_GET_FEATURES 0x8004f50cul -#define SCIF_REG 0xc0287308ul -#define NILFS_IOCTL_CLEAN_SEGMENTS 0x40786e88ul -#define FW_CDEV_IOC_INITIATE_BUS_RESET 0x40042305ul -#define RIO_WAIT_FOR_ASYNC 0x40086d16ul -#define VHOST_SET_VRING_NUM 0x4008af10ul -#define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul -#define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul -#define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul -#define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul -#define PPPIOCGL2TPSTATS 0x80487436ul -#define PERF_EVENT_IOC_PERIOD 0x40082404ul -#define PTP_PIN_SETFUNC2 0x40603d10ul -#define CHIOEXCHANGE 0x401c6302ul -#define NILFS_IOCTL_GET_SUINFO 0x80186e84ul -#define CEC_DQEVENT 0xc0506107ul -#define UI_SET_SWBIT 0x4004556dul -#define VHOST_VDPA_SET_CONFIG 0x4008af74ul -#define TUNSETIFF 0x400454caul -#define CHIOPOSITION 0x400c6303ul -#define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful -#define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul -#define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul -#define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful -#define MATROXFB_GET_OUTPUT_CONNECTION 0x80046ef8ul -#define EVIOCSMASK 0x40104593ul -#define BTRFS_IOC_FORGET_DEV 0x50009405ul -#define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul -#define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul -#define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul -#define PPSETMODE 0x40047080ul -#define VFIO_DEVICE_SET_IRQS 0x3b6eul -#define VIDIOC_PREPARE_BUF 0xc044565dul -#define CEC_ADAP_G_CONNECTOR_INFO 0x8044610aul -#define IOC_OPAL_WRITE_SHADOW_MBR 0x412070eaul -#define VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL 0xc040564bul -#define UDMABUF_CREATE 0x40187542ul -#define SONET_CLRDIAG 0xc0046113ul -#define PHN_SET_REG 0x40047001ul -#define RNDADDTOENTCNT 0x40045201ul -#define VBG_IOCTL_CHECK_BALLOON 0xc0205611ul -#define VIDIOC_OMAP3ISP_STAT_REQ 0xc01856c6ul -#define PPS_FETCH 0xc00470a4ul -#define RTC_AIE_OFF 0x7002ul -#define VFIO_GROUP_SET_CONTAINER 0x3b68ul -#define FW_CDEV_IOC_RECEIVE_PHY_PACKETS 0x40082316ul -#define VFIO_IOMMU_SPAPR_TCE_REMOVE 0x3b78ul -#define VFIO_IOMMU_GET_INFO 0x3b70ul -#define DM_DEV_SUSPEND 0xc138fd06ul -#define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul -#define FW_CDEV_IOC_STOP_ISO 0x4004230bul -#define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul -#define PPPIOCSXASYNCMAP 0x4020744ful -#define CHIOGSTATUS 0x40086308ul -#define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul -#define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul -#define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul -#define VHOST_SET_MEM_TABLE 0x4008af03ul -#define MATROXFB_SET_OUTPUT_CONNECTION 0x40046ef8ul -#define DFL_FPGA_PORT_GET_REGION_INFO 0xb642ul -#define VHOST_GET_FEATURES 0x8008af00ul -#define LIRC_GET_REC_RESOLUTION 0x80046907ul -#define PACKET_CTRL_CMD 0xc0185801ul -#define LIRC_SET_TRANSMITTER_MASK 0x40046917ul -#define BTRFS_IOC_ADD_DEV 0x5000940aul -#define JSIOCGCORR 0x80246a22ul -#define VIDIOC_G_FMT 0xc0cc5604ul -#define RTC_EPOCH_SET 0x4004700eul -#define CAPI_GET_PROFILE 0xc0404309ul -#define ATM_GETLOOP 0x400c6152ul -#define SCIF_LISTEN 0x40047302ul -#define NBD_CLEAR_QUE 0xab05ul -#define F2FS_IOC_MOVE_RANGE 0xc01cf509ul -#define LIRC_GET_LENGTH 0x8004690ful -#define I8K_SET_FAN 0xc0046987ul -#define FDSETMAXERRS 0x4014024cul -#define VIDIOC_SUBDEV_QUERYCAP 0x80405600ul -#define SNAPSHOT_SET_SWAP_AREA 0x400c330dul -#define LIRC_GET_REC_TIMEOUT 0x80046924ul -#define EVIOCRMFF 0x40044581ul -#define GPIO_GET_LINEEVENT_IOCTL 0xc030b404ul -#define PPRDATA 0x80017085ul -#define RIO_MPORT_GET_PROPERTIES 0x80306d04ul -#define TUNSETVNETHDRSZ 0x400454d8ul -#define GPIO_GET_LINEINFO_IOCTL 0xc048b402ul -#define GSMIOC_GETCONF 0x804c4700ul -#define LIRC_GET_SEND_MODE 0x80046901ul -#define PPPIOCSACTIVE 0x40087446ul -#define SIOCGSTAMPNS_NEW 0x80108907ul -#define IPMICTL_RECEIVE_MSG 0xc018690cul -#define LIRC_SET_SEND_DUTY_CYCLE 0x40046915ul -#define UI_END_FF_ERASE 0x400c55cbul -#define SWITCHTEC_IOCTL_FLASH_PART_INFO 0xc0105741ul -#define FW_CDEV_IOC_SEND_PHY_PACKET 0xc0142315ul -#define NBD_SET_FLAGS 0xab0aul -#define VFIO_DEVICE_GET_REGION_INFO 0x3b6cul -#define REISERFS_IOC_UNPACK 0x4004cd01ul -#define FW_CDEV_IOC_REMOVE_DESCRIPTOR 0x40042307ul -#define RIO_SET_EVENT_MASK 0x40046d0dul -#define SNAPSHOT_ALLOC_SWAP_PAGE 0x80083314ul -#define VDUSE_VQ_INJECT_IRQ 0x40048117ul -#define I2OPASSTHRU 0x8008690cul -#define IOC_OPAL_SET_PW 0x422070e0ul -#define FSI_SCOM_READ 0xc0207301ul -#define VHOST_VDPA_GET_DEVICE_ID 0x8004af70ul -#define VIDIOC_QBUF 0xc044560ful -#define VIDIOC_S_TUNER 0x4054561eul -#define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul -#define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul -#define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul -#define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul -#define TEE_IOC_VERSION 0x800ca400ul -#define VIDIOC_LOG_STATUS 0x5646ul -#define IPMICTL_SEND_COMMAND_SETTIME 0x801c6915ul -#define VHOST_SET_LOG_FD 0x4004af07ul -#define SCIF_SEND 0xc0147306ul -#define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul -#define VIDIOC_DBG_S_REGISTER 0x4038564ful -#define NILFS_IOCTL_RESIZE 0x40086e8bul -#define PHN_GETREG 0xc0087005ul -#define I2OSWDL 0xc01c6905ul -#define VBG_IOCTL_VMMDEV_REQUEST_BIG 0x5603ul -#define JSIOCGBUTTONS 0x80016a12ul -#define VFIO_IOMMU_ENABLE 0x3b73ul -#define DM_DEV_RENAME 0xc138fd05ul -#define MEDIA_IOC_SETUP_LINK 0xc0347c03ul -#define VIDIOC_ENUMOUTPUT 0xc0485630ul -#define STP_POLICY_ID_SET 0xc0102500ul -#define VHOST_VDPA_SET_CONFIG_CALL 0x4004af77ul -#define VIDIOC_SUBDEV_G_CROP 0xc038563bul -#define VIDIOC_S_CROP 0x4014563cul -#define WDIOC_GETTEMP 0x80045703ul -#define IOC_OPAL_ADD_USR_TO_LR 0x411870e4ul -#define UI_SET_LEDBIT 0x40045569ul -#define NBD_SET_SOCK 0xab00ul -#define BTRFS_IOC_SNAP_DESTROY_V2 0x5000943ful -#define HIDIOCGCOLLECTIONINFO 0xc0104811ul -#define I2OSWUL 0xc01c6906ul -#define IOCTL_MEI_NOTIFY_GET 0x80044803ul -#define FDFMTTRK 0x400c0248ul -#define MMTIMER_GETBITS 0x6d04ul -#define VIDIOC_ENUMSTD 0xc0405619ul -#define VHOST_GET_VRING_BASE 0xc008af12ul -#define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul -#define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul -#define RTC_VL_READ 0x80047013ul -#define ND_IOCTL_ARS_STATUS 0xc0304e03ul -#define RIO_DEV_DEL 0x40206d18ul -#define VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES 0xc024560dul -#define VIDIOC_SUBDEV_DV_TIMINGS_CAP 0xc0905664ul -#define SONYPI_IOCSFAN 0x4001760bul -#define SPIOCSTYPE 0x40047101ul -#define IPMICTL_REGISTER_FOR_CMD 0x8002690eul -#define I8K_GET_FAN 0xc0046986ul -#define TUNGETVNETBE 0x800454dful -#define AUTOFS_DEV_IOCTL_FAIL 0xc0189377ul -#define UI_END_FF_UPLOAD 0x406055c9ul -#define TOSH_SMM 0xc0187490ul -#define SONYPI_IOCGBAT2REM 0x80027605ul -#define F2FS_IOC_GET_COMPRESS_BLOCKS 0x8008f511ul -#define PPPIOCSNPMODE 0x4008744bul -#define USBDEVFS_CONTROL 0xc0105500ul -#define HIDIOCGUSAGE 0xc018480bul -#define TUNSETTXFILTER 0x400454d1ul -#define TUNGETVNETLE 0x800454ddul -#define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul -#define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul -#define HIDIOCGFIELDINFO 0xc038480aul -#define VIDIOC_SUBDEV_G_STD 0x80085617ul -#define I2OVALIDATE 0x80046908ul -#define VIDIOC_TRY_ENCODER_CMD 0xc028564eul -#define NILFS_IOCTL_GET_CPINFO 0x80186e82ul -#define VIDIOC_G_FREQUENCY 0xc02c5638ul -#define VFAT_IOCTL_READDIR_SHORT 0x82187202ul -#define ND_IOCTL_GET_CONFIG_DATA 0xc00c4e05ul -#define F2FS_IOC_RESERVE_COMPRESS_BLOCKS 0x8008f513ul -#define FDGETDRVSTAT 0x80340212ul -#define SYNC_IOC_MERGE 0xc0303e03ul -#define VIDIOC_S_DV_TIMINGS 0xc0845657ul -#define PPPIOCBRIDGECHAN 0x40047435ul -#define LIRC_SET_SEND_MODE 0x40046911ul -#define RIO_ENABLE_PORTWRITE_RANGE 0x40106d0bul -#define ATM_GETTYPE 0x400c6184ul -#define PHN_GETREGS 0xc0287007ul -#define FDSETEMSGTRESH 0x24aul -#define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul -#define EVIOCGMASK 0x80104592ul -#define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul -#define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul -#define MEDIA_IOC_ENUM_ENTITIES 0xc1007c01ul -#define GSMIOC_GETFIRST 0x80044704ul -#define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul -#define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul -#define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul -#define FDSETDRVPRM 0x40580290ul -#define IOC_OPAL_SAVE 0x411870dcul -#define VIDIOC_G_DV_TIMINGS 0xc0845658ul -#define TUNSETIFINDEX 0x400454daul -#define CCISS_SETINTINFO 0x40084203ul -#define RTC_VL_CLR 0x7014ul -#define VIDIOC_REQBUFS 0xc0145608ul -#define USBDEVFS_REAPURBNDELAY32 0x4004550dul -#define TEE_IOC_SHM_REGISTER 0xc018a409ul -#define USBDEVFS_SETCONFIGURATION 0x80045505ul -#define CCISS_GETNODENAME 0x80104204ul -#define VIDIOC_SUBDEV_S_FRAME_INTERVAL 0xc0305616ul -#define VIDIOC_ENUM_FRAMESIZES 0xc02c564aul -#define VFIO_DEVICE_PCI_HOT_RESET 0x3b71ul -#define FW_CDEV_IOC_SEND_BROADCAST_REQUEST 0x40242312ul -#define LPSETTIMEOUT_NEW 0x4010060ful -#define RIO_CM_MPORT_GET_LIST 0xc004630bul -#define FW_CDEV_IOC_QUEUE_ISO 0xc0182309ul -#define FDRAWCMD 0x258ul -#define SCIF_UNREG 0xc0107309ul -#define PPPIOCGIDLE64 0x8010743ful -#define USBDEVFS_RELEASEINTERFACE 0x80045510ul -#define VIDIOC_CROPCAP 0xc02c563aul -#define DFL_FPGA_PORT_GET_INFO 0xb641ul -#define PHN_SET_REGS 0x40047003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul -#define VIDIOC_S_SELECTION 0xc040565ful -#define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul -#define BTRFS_IOC_LOGICAL_INO 0xc0389424ul -#define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x400c6163ul -#define MTIOCPOS 0x80046d03ul -#define PMU_IOC_SLEEP 0x4200ul -#define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul -#define VBG_IOCTL_CHANGE_FILTER_MASK 0xc020560cul -#define NILFS_IOCTL_GET_SUSTAT 0x80306e85ul -#define VIDIOC_QUERYCAP 0x80685600ul -#define HPET_INFO 0x800c6803ul -#define VIDIOC_AM437X_CCDC_CFG 0x400456c1ul -#define DM_LIST_DEVICES 0xc138fd02ul -#define TUNSETOWNER 0x400454ccul -#define VBG_IOCTL_CHANGE_GUEST_CAPABILITIES 0xc020560eul -#define RNDADDENTROPY 0x40085203ul -#define USBDEVFS_RESET 0x5514ul -#define BTRFS_IOC_SUBVOL_CREATE 0x5000940eul -#define USBDEVFS_FORBID_SUSPEND 0x5521ul -#define FDGETDRVTYP 0x8010020ful -#define PPWCONTROL 0x40017084ul -#define VIDIOC_ENUM_FRAMEINTERVALS 0xc034564bul -#define KCOV_DISABLE 0x6365ul -#define IOC_OPAL_ACTIVATE_LSP 0x411870dful -#define VHOST_VDPA_GET_IOVA_RANGE 0x8010af78ul -#define PPPIOCSPASS 0x40087447ul -#define RIO_CM_CHAN_CONNECT 0x40086308ul -#define I2OSWDEL 0xc01c6907ul -#define FS_IOC_SET_ENCRYPTION_POLICY 0x800c6613ul -#define IOC_OPAL_MBR_DONE 0x411070e9ul -#define PPPIOCSMAXCID 0x40047451ul -#define PPSETPHASE 0x40047094ul -#define VHOST_VDPA_SET_VRING_ENABLE 0x4008af75ul -#define USBDEVFS_GET_SPEED 0x551ful -#define SONET_GETFRAMING 0x80046116ul -#define VIDIOC_QUERYBUF 0xc0445609ul -#define VIDIOC_S_EDID 0xc0245629ul -#define BTRFS_IOC_QGROUP_ASSIGN 0x40189429ul -#define PPS_GETCAP 0x800470a3ul -#define SNAPSHOT_PLATFORM_SUPPORT 0x330ful -#define LIRC_SET_REC_TIMEOUT_REPORTS 0x40046919ul -#define SCIF_GET_NODEIDS 0xc014730eul -#define NBD_DISCONNECT 0xab08ul -#define VIDIOC_SUBDEV_G_FRAME_INTERVAL 0xc0305615ul -#define VFIO_IOMMU_DISABLE 0x3b74ul -#define SNAPSHOT_CREATE_IMAGE 0x40043311ul -#define SNAPSHOT_POWER_OFF 0x3310ul -#define APM_IOC_STANDBY 0x4101ul -#define PPPIOCGUNIT 0x80047456ul -#define AUTOFS_IOC_EXPIRE_MULTI 0x40049366ul -#define SCIF_BIND 0xc0087301ul -#define IOC_WATCH_QUEUE_SET_SIZE 0x5760ul -#define NILFS_IOCTL_CHANGE_CPMODE 0x40106e80ul -#define IOC_OPAL_LOCK_UNLOCK 0x411870ddul -#define F2FS_IOC_SET_PIN_FILE 0x4004f50dul -#define PPPIOCGRASYNCMAP 0x80047455ul -#define MMTIMER_MMAPAVAIL 0x6d06ul -#define I2OPASSTHRU32 0x8008690cul -#define DFL_FPGA_FME_PORT_RELEASE 0x4004b681ul -#define VIDIOC_SUBDEV_QUERY_DV_TIMINGS 0x80845663ul -#define UI_SET_SNDBIT 0x4004556aul -#define VIDIOC_G_AUDOUT 0x80345631ul -#define RTC_PLL_SET 0x401c7012ul -#define VIDIOC_ENUMAUDIO 0xc0345641ul -#define AUTOFS_DEV_IOCTL_TIMEOUT 0xc018937aul -#define VBG_IOCTL_DRIVER_VERSION_INFO 0xc02c5600ul -#define VHOST_SCSI_GET_EVENTS_MISSED 0x4004af44ul -#define VHOST_SET_VRING_ADDR 0x4028af11ul -#define VDUSE_CREATE_DEV 0x41508102ul -#define FDFLUSH 0x24bul -#define VBG_IOCTL_WAIT_FOR_EVENTS 0xc020560aul -#define DFL_FPGA_FME_ERR_SET_IRQ 0x4008b684ul -#define F2FS_IOC_GET_PIN_FILE 0x8004f50eul -#define SCIF_CONNECT 0xc0087303ul -#define BLKREPORTZONE 0xc0101282ul -#define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x400861f4ul -#define FDSETPRM 0x401c0242ul -#define ATM_GETSTATZ 0x400c6151ul -#define ISST_IF_MSR_COMMAND 0xc004fe04ul -#define BTRFS_IOC_GET_SUBVOL_INFO 0x81e8943cul -#define VIDIOC_UNSUBSCRIBE_EVENT 0x4020565bul -#define SEV_ISSUE_CMD 0xc0105300ul -#define GPIOHANDLE_SET_LINE_VALUES_IOCTL 0xc040b409ul -#define PCITEST_COPY 0x40045006ul -#define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul -#define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul -#define CXL_MEM_SEND_COMMAND 0xc030ce02ul -#define PERF_EVENT_IOC_SET_FILTER 0x40042406ul -#define IOC_OPAL_REVERT_TPR 0x410870e2ul -#define CHIOGVPARAMS 0x80706313ul -#define PTP_PEROUT_REQUEST 0x40383d03ul -#define FSI_SCOM_CHECK 0x80047300ul -#define RTC_IRQP_READ 0x8004700bul -#define RIO_MPORT_MAINT_READ_LOCAL 0x80186d05ul -#define HIDIOCGRDESCSIZE 0x80044801ul -#define UI_GET_VERSION 0x8004552dul -#define NILFS_IOCTL_GET_CPSTAT 0x80186e83ul -#define CCISS_GETBUSTYPES 0x80044207ul -#define VFIO_IOMMU_SPAPR_TCE_CREATE 0x3b77ul -#define VIDIOC_EXPBUF 0xc0405610ul -#define UI_SET_RELBIT 0x40045566ul -#define VFIO_SET_IOMMU 0x3b66ul -#define VIDIOC_S_MODULATOR 0x40445637ul -#define TUNGETFILTER 0x800854dbul -#define CCISS_SETNODENAME 0x40104205ul -#define FBIO_GETCONTROL2 0x80044689ul -#define TUNSETDEBUG 0x400454c9ul -#define DM_DEV_REMOVE 0xc138fd04ul -#define HIDIOCSUSAGES 0x501c4814ul -#define FS_IOC_ADD_ENCRYPTION_KEY 0xc0506617ul -#define FBIOGET_VBLANK 0x80204612ul -#define ATM_GETSTAT 0x400c6150ul -#define VIDIOC_G_JPEGCOMP 0x808c563dul -#define TUNATTACHFILTER 0x400854d5ul -#define UI_SET_ABSBIT 0x40045567ul -#define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul -#define USBDEVFS_REAPURB32 0x4004550cul -#define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul -#define F2FS_IOC_COMPRESS_FILE 0xf518ul -#define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x400c6160ul -#define ATM_SETLOOP 0x400c6153ul -#define ATMSIGD_CTRL 0x61f0ul -#define CIOC_KERNEL_VERSION 0xc004630aul -#define BTRFS_IOC_CLONE_RANGE 0x4020940dul -#define SNAPSHOT_UNFREEZE 0x3302ul -#define F2FS_IOC_START_VOLATILE_WRITE 0xf503ul -#define PMU_IOC_HAS_ADB 0x80044204ul -#define I2OGETIOPS 0x80206900ul -#define VIDIOC_S_FBUF 0x402c560bul -#define PPRCONTROL 0x80017083ul -#define CHIOSPICKER 0x40046305ul -#define VFIO_IOMMU_SPAPR_REGISTER_MEMORY 0x3b75ul -#define TUNGETSNDBUF 0x800454d3ul -#define GSMIOC_SETCONF 0x404c4701ul -#define IOC_PR_PREEMPT 0x401870cbul -#define KCOV_INIT_TRACE 0x80046301ul -#define SONYPI_IOCGBAT1CAP 0x80027602ul -#define SWITCHTEC_IOCTL_FLASH_INFO 0x80105740ul -#define MTIOCTOP 0x40086d01ul -#define VHOST_VDPA_SET_STATUS 0x4001af72ul -#define VHOST_SCSI_SET_EVENTS_MISSED 0x4004af43ul -#define VFIO_IOMMU_DIRTY_PAGES 0x3b75ul -#define BTRFS_IOC_SCRUB_PROGRESS 0xc400941dul -#define PPPIOCGMRU 0x80047453ul -#define BTRFS_IOC_DEV_REPLACE 0xca249435ul -#define PPPIOCGFLAGS 0x8004745aul -#define NILFS_IOCTL_SET_SUINFO 0x40186e8dul -#define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0142314ul -#define ATM_DELLECSADDR 0x400c618ful -#define FW_CDEV_IOC_GET_SPEED 0x2311ul -#define PPPIOCGIDLE32 0x8008743ful -#define VFIO_DEVICE_RESET 0x3b6ful -#define GPIO_GET_LINEINFO_UNWATCH_IOCTL 0xc004b40cul -#define WDIOC_GETSTATUS 0x80045701ul -#define BTRFS_IOC_SET_FEATURES 0x40309439ul -#define IOCTL_MEI_CONNECT_CLIENT 0xc0104801ul -#define VIDIOC_OMAP3ISP_AEWB_CFG 0xc02056c3ul -#define PCITEST_READ 0x40045005ul -#define VFIO_GROUP_GET_STATUS 0x3b67ul -#define MATROXFB_GET_ALL_OUTPUTS 0x80046efbul -#define USBDEVFS_CLEAR_HALT 0x80045515ul -#define VIDIOC_DECODER_CMD 0xc0485660ul -#define VIDIOC_G_AUDIO 0x80345621ul -#define CCISS_RESCANDISK 0x4210ul -#define RIO_DISABLE_PORTWRITE_RANGE 0x40106d0cul -#define IOC_OPAL_SECURE_ERASE_LR 0x411070e7ul -#define USBDEVFS_REAPURB 0x4004550cul -#define DFL_FPGA_CHECK_EXTENSION 0xb601ul -#define AUTOFS_IOC_PROTOVER 0x80049363ul -#define FSL_HV_IOCTL_MEMCPY 0xc028af05ul -#define BTRFS_IOC_GET_FEATURES 0x80189439ul -#define PCITEST_MSIX 0x40045007ul -#define BTRFS_IOC_DEFRAG_RANGE 0x40309410ul -#define UI_BEGIN_FF_ERASE 0xc00c55caul -#define DM_GET_TARGET_VERSION 0xc138fd11ul -#define PPPIOCGIDLE 0x8008743ful -#define NVRAM_SETCKS 0x7041ul -#define WDIOC_GETSUPPORT 0x80285700ul -#define GSMIOC_ENABLE_NET 0x40344702ul -#define GPIO_GET_CHIPINFO_IOCTL 0x8044b401ul -#define NE_ADD_VCPU 0xc004ae21ul -#define EVIOCSKEYCODE_V2 0x40284504ul -#define PTP_SYS_OFFSET_EXTENDED2 0xc4c03d12ul -#define SCIF_FENCE_WAIT 0xc0047310ul -#define RIO_TRANSFER 0xc0186d15ul -#define FSL_HV_IOCTL_DOORBELL 0xc008af06ul -#define RIO_MPORT_MAINT_WRITE_LOCAL 0x40186d06ul -#define I2OEVTREG 0x400c690aul -#define I2OPARMGET 0xc0186904ul -#define EVIOCGID 0x80084502ul -#define BTRFS_IOC_QGROUP_CREATE 0x4010942aul -#define AUTOFS_DEV_IOCTL_SETPIPEFD 0xc0189378ul -#define VIDIOC_S_PARM 0xc0cc5616ul -#define TUNSETSTEERINGEBPF 0x800454e0ul -#define ATM_GETNAMES 0x40086183ul -#define VIDIOC_QUERYMENU 0xc02c5625ul -#define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul -#define I2OLCTGET 0xc00c6902ul -#define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x400c6162ul -#define BLKCLOSEZONE 0x40101287ul -#define SONET_GETFRSENSE 0x80066117ul -#define UI_SET_EVBIT 0x40045564ul -#define DM_LIST_VERSIONS 0xc138fd0dul -#define HIDIOCGSTRING 0x81044804ul -#define PPPIOCATTCHAN 0x40047438ul -#define VDUSE_DEV_SET_CONFIG 0x40088112ul -#define TUNGETFEATURES 0x800454cful -#define VFIO_GROUP_UNSET_CONTAINER 0x3b69ul -#define IPMICTL_SET_MY_ADDRESS_CMD 0x80046911ul -#define CCISS_REGNEWDISK 0x4004420dul -#define VIDIOC_QUERY_DV_TIMINGS 0x80845663ul -#define PHN_SETREGS 0x40287008ul -#define FAT_IOCTL_GET_ATTRIBUTES 0x80047210ul -#define FSL_MC_SEND_MC_COMMAND 0xc04052e0ul -#define TUNGETIFF 0x800454d2ul -#define PTP_CLOCK_GETCAPS2 0x80503d0aul -#define BTRFS_IOC_RESIZE 0x50009403ul -#define VHOST_SET_VRING_ENDIAN 0x4008af13ul -#define PPS_KC_BIND 0x400470a5ul -#define F2FS_IOC_WRITE_CHECKPOINT 0xf507ul -#define UI_SET_FFBIT 0x4004556bul -#define IPMICTL_GET_MY_LUN_CMD 0x80046914ul -#define CEC_ADAP_G_PHYS_ADDR 0x80026101ul -#define CEC_G_MODE 0x80046108ul -#define USBDEVFS_RESETEP 0x80045503ul -#define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul -#define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul -#define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul -#define PPPIOCUNBRIDGECHAN 0x7434ul -#define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul -#define ISST_IF_GET_PLATFORM_INFO 0x8004fe00ul -#define SCIF_FENCE_MARK 0xc00c730ful -#define USBDEVFS_RELEASE_PORT 0x80045519ul -#define VFIO_CHECK_EXTENSION 0x3b65ul -#define BTRFS_IOC_QGROUP_LIMIT 0x8030942bul -#define FAT_IOCTL_GET_VOLUME_ID 0x80047213ul -#define UI_SET_PHYS 0x4004556cul -#define FDWERRORGET 0x80180217ul -#define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x6d07ul -#define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul -#define SIOCGSTAMP_NEW 0x80108906ul -#define RTC_WKALM_RD 0x80287010ul -#define PHN_GET_REG 0xc0047000ul -#define DELL_WMI_SMBIOS_CMD 0xc0345700ul -#define PHN_NOT_OH 0x7004ul -#define PPGETMODES 0x80047097ul -#define CHIOGPARAMS 0x80146306ul -#define VFIO_DEVICE_GET_GFX_DMABUF 0x3b73ul -#define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul -#define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul -#define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul -#define PMU_IOC_CAN_SLEEP 0x80044205ul -#define KCOV_ENABLE 0x6364ul -#define BTRFS_IOC_CLONE 0x40049409ul -#define F2FS_IOC_DEFRAGMENT 0xc010f508ul -#define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul -#define AGPIOC_ALLOCATE 0xc0044106ul -#define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul -#define LIRC_SET_REC_CARRIER 0x40046914ul -#define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul -#define SNAPSHOT_ATOMIC_RESTORE 0x3304ul -#define RTC_UIE_OFF 0x7004ul -#define BT_BMC_IOCTL_SMS_ATN 0xb100ul -#define NVME_IOCTL_ID 0x4e40ul -#define NE_START_ENCLAVE 0xc010ae24ul -#define VIDIOC_STREAMON 0x40045612ul -#define FDPOLLDRVSTAT 0x80340213ul -#define AUTOFS_DEV_IOCTL_READY 0xc0189376ul -#define VIDIOC_ENUMAUDOUT 0xc0345642ul -#define VIDIOC_SUBDEV_S_STD 0x40085618ul -#define WDIOC_GETTIMELEFT 0x8004570aul -#define ATM_GETLINKRATE 0x400c6181ul -#define RTC_WKALM_SET 0x4028700ful -#define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul -#define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul -#define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul -#define NS_GET_OWNER_UID 0xb704ul -#define VIDIOC_OVERLAY 0x4004560eul -#define BTRFS_IOC_WAIT_SYNC 0x40089416ul -#define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul -#define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x400c6186ul -#define PHN_GET_REGS 0xc0047002ul -#define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul -#define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul -#define SNAPSHOT_S2RAM 0x330bul -#define JSIOCSAXMAP 0x40406a31ul -#define F2FS_IOC_SET_COMPRESS_OPTION 0x4002f516ul -#define VBG_IOCTL_HGCM_DISCONNECT 0xc01c5605ul -#define SCIF_FENCE_SIGNAL 0xc0247311ul -#define VFIO_DEVICE_GET_PCI_HOT_RESET_INFO 0x3b70ul -#define VIDIOC_SUBDEV_ENUM_MBUS_CODE 0xc0305602ul -#define MMTIMER_GETOFFSET 0x6d00ul -#define RIO_CM_CHAN_LISTEN 0x40026306ul -#define ATM_SETSC 0x400461f1ul -#define F2FS_IOC_SHUTDOWN 0x8004587dul -#define NVME_IOCTL_RESCAN 0x4e46ul -#define BLKOPENZONE 0x40101286ul -#define DM_VERSION 0xc138fd00ul -#define CEC_TRANSMIT 0xc0386105ul -#define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul -#define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul -#define HIDIOCGVERSION 0x80044801ul -#define VIDIOC_S_INPUT 0xc0045627ul -#define VIDIOC_G_CROP 0xc014563bul -#define LIRC_SET_WIDEBAND_RECEIVER 0x40046923ul -#define EVIOCGEFFECTS 0x80044584ul -#define UVCIOC_CTRL_QUERY 0xc00c7521ul -#define IOC_OPAL_GENERIC_TABLE_RW 0x413870ebul -#define FS_IOC_READ_VERITY_METADATA 0xc0286687ul -#define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul -#define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x400c6132ul -#define HIDIOCINITREPORT 0x4805ul -#define VFIO_DEVICE_GET_INFO 0x3b6bul -#define RIO_CM_CHAN_RECEIVE 0xc010630aul -#define RNDGETENTCNT 0x80045200ul -#define PPPIOCNEWUNIT 0xc004743eul -#define BTRFS_IOC_INO_LOOKUP 0xd0009412ul -#define FDRESET 0x254ul -#define IOC_PR_REGISTER 0x401870c8ul -#define HIDIOCSREPORT 0x400c4808ul -#define TEE_IOC_OPEN_SESSION 0x8010a402ul -#define TEE_IOC_SUPPL_RECV 0x8010a406ul -#define BTRFS_IOC_BALANCE_CTL 0x40049421ul -#define GPIO_GET_LINEINFO_WATCH_IOCTL 0xc048b40bul -#define HIDIOCGRAWINFO 0x80084803ul -#define PPPIOCSCOMPRESS 0x400c744dul -#define USBDEVFS_CONNECTINFO 0x40085511ul -#define BLKRESETZONE 0x40101283ul -#define CHIOINITELEM 0x6311ul -#define NILFS_IOCTL_SET_ALLOC_RANGE 0x40106e8cul -#define AUTOFS_DEV_IOCTL_CATATONIC 0xc0189379ul -#define RIO_MPORT_MAINT_HDID_SET 0x40026d01ul -#define PPGETPHASE 0x80047099ul -#define USBDEVFS_DISCONNECT_CLAIM 0x8108551bul -#define FDMSGON 0x245ul -#define VIDIOC_G_SLICED_VBI_CAP 0xc0745645ul -#define BTRFS_IOC_BALANCE_V2 0xc4009420ul -#define MEDIA_REQUEST_IOC_REINIT 0x7c81ul -#define IOC_OPAL_ERASE_LR 0x411070e6ul -#define FDFMTBEG 0x247ul -#define RNDRESEEDCRNG 0x5207ul -#define ISST_IF_GET_PHY_ID 0xc004fe01ul -#define TUNSETNOCSUM 0x400454c8ul -#define SONET_GETSTAT 0x80246110ul -#define TFD_IOC_SET_TICKS 0x40085400ul -#define PPDATADIR 0x40047090ul -#define IOC_OPAL_ENABLE_DISABLE_MBR 0x411070e5ul -#define GPIO_V2_GET_LINE_IOCTL 0xc250b407ul -#define RIO_CM_CHAN_SEND 0x40106309ul -#define PPWCTLONIRQ 0x40017092ul -#define SONYPI_IOCGBRT 0x80017600ul -#define IOC_PR_RELEASE 0x401070caul -#define PPCLRIRQ 0x80047093ul -#define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul -#define HPET_IE_OFF 0x6802ul -#define IOC_OPAL_ACTIVATE_USR 0x411070e1ul -#define SONET_SETFRAMING 0x40046115ul -#define PERF_EVENT_IOC_PAUSE_OUTPUT 0x40042409ul -#define BTRFS_IOC_LOGICAL_INO_V2 0xc038943bul -#define VBG_IOCTL_HGCM_CONNECT 0xc09c5604ul -#define BLKFINISHZONE 0x40101288ul -#define EVIOCREVOKE 0x40044591ul -#define VFIO_DEVICE_FEATURE 0x3b75ul -#define CCISS_GETPCIINFO 0x80084201ul -#define ISST_IF_MBOX_COMMAND 0xc004fe03ul -#define SCIF_ACCEPTREQ 0xc0107304ul -#define PERF_EVENT_IOC_QUERY_BPF 0xc004240aul -#define VIDIOC_STREAMOFF 0x40045613ul -#define VDUSE_DESTROY_DEV 0x41008103ul -#define FDGETFDCSTAT 0x80200215ul -#define VIDIOC_S_PRIORITY 0x40045644ul -#define SNAPSHOT_FREEZE 0x3301ul -#define VIDIOC_ENUMINPUT 0xc04c561aul -#define ZATM_GETPOOLZ 0x400c6162ul -#define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul -#define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul -#define VIDIOC_G_STD 0x80085617ul -#define USBDEVFS_ALLOW_SUSPEND 0x5522ul -#define SONET_GETSTATZ 0x80246111ul -#define SCIF_ACCEPTREG 0xc0087305ul -#define VIDIOC_ENCODER_CMD 0xc028564dul -#define PPPIOCSRASYNCMAP 0x40047454ul -#define IOCTL_MEI_NOTIFY_SET 0x40044802ul -#define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul -#define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul -#define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80046ef9ul -#define DM_DEV_CREATE 0xc138fd03ul -#define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul -#define VIDIOC_G_CTRL 0xc008561bul -#define NBD_CLEAR_SOCK 0xab04ul -#define VFIO_DEVICE_QUERY_GFX_PLANE 0x3b72ul -#define WDIOC_KEEPALIVE 0x80045705ul -#define NVME_IOCTL_SUBSYS_RESET 0x4e45ul -#define PTP_EXTTS_REQUEST2 0x40103d0bul -#define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul -#define EVIOCSREP 0x40084503ul -#define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul -#define HPET_DPI 0x6805ul -#define VDUSE_VQ_SETUP_KICKFD 0x40088116ul -#define ND_IOCTL_CALL 0xc0404e0aul -#define HIDIOCGDEVINFO 0x801c4803ul -#define DM_TABLE_DEPS 0xc138fd0bul -#define BTRFS_IOC_DEV_INFO 0xd000941eul -#define VDUSE_IOTLB_GET_FD 0xc01c8110ul -#define FW_CDEV_IOC_GET_INFO 0xc0242300ul -#define VIDIOC_G_PRIORITY 0x80045643ul -#define ATM_NEWBACKENDIF 0x400261f3ul -#define VIDIOC_S_EXT_CTRLS 0xc0185648ul -#define VIDIOC_SUBDEV_ENUM_DV_TIMINGS 0xc0945662ul -#define VIDIOC_OMAP3ISP_CCDC_CFG 0xc02056c1ul -#define VIDIOC_S_HW_FREQ_SEEK 0x40305652ul -#define DM_TABLE_LOAD 0xc138fd09ul -#define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul -#define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul -#define CHIOGELEM 0x406c6310ul -#define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul -#define EVIOCSKEYCODE 0x40084504ul -#define NE_GET_IMAGE_LOAD_INFO 0xc010ae22ul -#define TUNSETLINK 0x400454cdul -#define FW_CDEV_IOC_ADD_DESCRIPTOR 0xc0182306ul -#define BTRFS_IOC_SCRUB_CANCEL 0x941cul -#define PPS_SETPARAMS 0x400470a2ul -#define IOC_OPAL_LR_SETUP 0x412870e3ul -#define FW_CDEV_IOC_DEALLOCATE 0x40042303ul -#define WDIOC_SETTIMEOUT 0xc0045706ul -#define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul -#define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul -#define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul -#define VIDIOC_G_EDID 0xc0245628ul -#define F2FS_IOC_GARBAGE_COLLECT_RANGE 0x4014f50bul -#define RIO_MAP_INBOUND 0xc0286d11ul -#define IOC_OPAL_TAKE_OWNERSHIP 0x410870deul -#define USBDEVFS_CLAIM_PORT 0x80045518ul -#define VIDIOC_S_AUDIO 0x40345622ul -#define FS_IOC_GET_ENCRYPTION_NONCE 0x8010661bul -#define FW_CDEV_IOC_SEND_STREAM_PACKET 0x40282313ul -#define BTRFS_IOC_SNAP_DESTROY 0x5000940ful -#define SNAPSHOT_FREE 0x3305ul -#define I8K_GET_SPEED 0xc0046985ul -#define HIDIOCGREPORT 0x400c4807ul -#define HPET_EPI 0x6804ul -#define JSIOCSCORR 0x40246a21ul -#define IOC_PR_PREEMPT_ABORT 0x401870ccul -#define RIO_MAP_OUTBOUND 0xc0286d0ful -#define ATM_SETESI 0x400c618cul -#define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x400c6189ul -#define PPFCONTROL 0x4002708eul -#define SONYPI_IOCGFAN 0x8001760aul -#define RTC_IRQP_SET 0x4004700cul -#define PCITEST_WRITE 0x40045004ul -#define PPCLAIM 0x708bul -#define VIDIOC_S_JPEGCOMP 0x408c563eul -#define IPMICTL_UNREGISTER_FOR_CMD 0x8002690ful -#define VHOST_SET_FEATURES 0x4008af00ul -#define TOSHIBA_ACPI_SCI 0xc0187491ul -#define VIDIOC_DQBUF 0xc0445611ul -#define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul -#define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul -#define MMTIMER_GETFREQ 0x80046d02ul -#define VIDIOC_G_SELECTION 0xc040565eul -#define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4004b100ul -#define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul -#define FS_IOC_ENABLE_VERITY 0x40806685ul -#define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul -#define FDFMTEND 0x249ul -#define DMA_BUF_SET_NAME 0x40046201ul -#define UI_BEGIN_FF_UPLOAD 0xc06055c8ul -#define RTC_UIE_ON 0x7003ul -#define PPRELEASE 0x708cul -#define VFIO_IOMMU_UNMAP_DMA 0x3b72ul -#define VIDIOC_OMAP3ISP_PRV_CFG 0xc03c56c2ul -#define GPIO_GET_LINEHANDLE_IOCTL 0xc16cb403ul -#define VFAT_IOCTL_READDIR_BOTH 0x82187201ul -#define NVME_IOCTL_ADMIN_CMD 0xc0484e41ul -#define VHOST_SET_VRING_KICK 0x4008af20ul -#define BTRFS_IOC_SUBVOL_CREATE_V2 0x50009418ul -#define BTRFS_IOC_SNAP_CREATE 0x50009401ul -#define SONYPI_IOCGBAT2CAP 0x80027604ul -#define PPNEGOT 0x40047091ul -#define NBD_PRINT_DEBUG 0xab06ul -#define BTRFS_IOC_INO_LOOKUP_USER 0xd000943eul -#define BTRFS_IOC_GET_SUBVOL_ROOTREF 0xd000943dul -#define FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS 0xc0406619ul -#define BTRFS_IOC_FS_INFO 0x8400941ful -#define VIDIOC_ENUM_FMT 0xc0405602ul -#define VIDIOC_G_INPUT 0x80045626ul -#define VTPM_PROXY_IOC_NEW_DEV 0xc014a100ul -#define DFL_FPGA_FME_ERR_GET_IRQ_NUM 0x8004b683ul -#define ND_IOCTL_DIMM_FLAGS 0xc0084e03ul -#define BTRFS_IOC_QUOTA_RESCAN 0x4040942cul -#define MMTIMER_GETCOUNTER 0x80046d09ul -#define MATROXFB_GET_OUTPUT_MODE 0xc0046efaul -#define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul -#define RIO_CM_CHAN_BIND 0x40086305ul -#define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul -#define VIDIOC_S_OUTPUT 0xc004562ful -#define HIDIOCGREPORTINFO 0xc00c4809ul -#define WDIOC_GETBOOTSTATUS 0x80045702ul -#define VDUSE_VQ_GET_INFO 0xc02c8115ul -#define ACRN_IOCTL_ASSIGN_PCIDEV 0x4024a255ul -#define BLKGETDISKSEQ 0x80081280ul -#define ACRN_IOCTL_PM_GET_CPU_STATE 0xc008a260ul -#define ACRN_IOCTL_DESTROY_VM 0xa211ul -#define ACRN_IOCTL_SET_PTDEV_INTR 0x4014a253ul -#define ACRN_IOCTL_CREATE_IOREQ_CLIENT 0xa232ul -#define ACRN_IOCTL_IRQFD 0x4018a271ul -#define ACRN_IOCTL_CREATE_VM 0xc030a210ul -#define ACRN_IOCTL_INJECT_MSI 0x4010a223ul -#define ACRN_IOCTL_ATTACH_IOREQ_CLIENT 0xa233ul -#define ACRN_IOCTL_RESET_PTDEV_INTR 0x4014a254ul -#define ACRN_IOCTL_NOTIFY_REQUEST_FINISH 0x4008a231ul -#define ACRN_IOCTL_SET_IRQLINE 0x4008a225ul -#define ACRN_IOCTL_START_VM 0xa212ul -#define ACRN_IOCTL_SET_VCPU_REGS 0x4124a216ul -#define ACRN_IOCTL_SET_MEMSEG 0x4020a241ul -#define ACRN_IOCTL_PAUSE_VM 0xa213ul -#define ACRN_IOCTL_CLEAR_VM_IOREQ 0xa235ul -#define ACRN_IOCTL_UNSET_MEMSEG 0x4020a242ul -#define ACRN_IOCTL_IOEVENTFD 0x4020a270ul -#define ACRN_IOCTL_DEASSIGN_PCIDEV 0x4024a256ul -#define ACRN_IOCTL_RESET_VM 0xa215ul -#define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul -#define ACRN_IOCTL_VM_INTR_MONITOR 0x4004a224ul -#endif diff --git a/gen/ioctl/extract.awk b/gen/ioctl/extract.awk new file mode 100644 index 000000000..7e02e6431 --- /dev/null +++ b/gen/ioctl/extract.awk @@ -0,0 +1,59 @@ +function hex(value, result, quotient, remainder, digit, i) { + result = "" + do { + quotient = "" + remainder = 0 + for (i = 1; i <= length(value); i++) { + digit = remainder * 10 + substr(value, i, 1) + if (quotient != "" || digit >= 16) { + quotient = quotient sprintf("%d", int(digit / 16)) + } + remainder = digit % 16 + } + result = substr("0123456789abcdef", remainder + 1, 1) result + value = quotient + } while (value != "") + return "0x" result +} + +function fail(message) { + print "ioctl extraction: " message > "/dev/stderr" + failed = 1 + exit 1 +} + +BEGIN { + printf "%s", "" > names + print condition +} + +/EnumConstantDecl/ && match($0, /ioctl_value_[[:alnum:]_]+/) { + if (name != "") { + fail("missing value for " name) + } + name = substr($0, RSTART + 12, RLENGTH - 12) +} + +name != "" && /value: Int / { + value = $NF + if (value !~ /^[0-9]+$/) { + fail("invalid unsigned value for " name) + } + printf "#define %s %sul\n", name, hex(value) + print name > names + name = "" + count++ +} + +END { + if (failed) { + exit 1 + } + if (name != "") { + fail("missing value for " name) + } + if (!count) { + fail("Clang produced no ioctl constants") + } + print "#endif" +} diff --git a/gen/ioctl/generate.sh b/gen/ioctl/generate.sh index d1a8ad7d1..82e8fa3a2 100755 --- a/gen/ioctl/generate.sh +++ b/gen/ioctl/generate.sh @@ -1,16 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash set -ueo pipefail -# Linux's ioctl codes using function-style macros in their definition which -# bindgen is unable to evaluate. To extract the ioctl code values, we have -# a small C program, main.c, which prints the values of the ioctls on the -# platform it's compiled for. This script compiles it for several platforms -# and generates an ioctl.h header file, which bindgen can fully process, -# producing an ioctl module in the Rust bindings. -# -# This is a very simplistic and not yet portable script; if you need it run, -# to add new ioctl codes or a new architecture, and are unable to run it, -# please file an issue in the issue tracker. +cd -- "$(dirname -- "${BASH_SOURCE[0]}")" linux_version="$(sed -n 's/^const LINUX_VERSION: &str = "\(v.*\)";$/\1/p' ../src/main.rs)" @@ -23,11 +14,9 @@ popd tmp_dir="$(mktemp --tmpdir -d linux-raw-sys-ioctl.XXXXXXXXXX)" header_dir="$tmp_dir/linux-headers" mkdir "$header_dir" -touch list.o main.exe cleanup() { rm -r "$tmp_dir" - rm list.o main.exe } trap cleanup EXIT @@ -37,78 +26,48 @@ install_headers() { make -C ../linux headers_install ARCH="$arch" INSTALL_HDR_PATH="$header_dir" } -cflags="-Wall" includes=( -nostdinc -Iinclude "-I$header_dir/include" ) -out="../modules/ioctl.h" +out="$tmp_dir/ioctl.h" -echo "// This file is generated from the ioctl/generate.sh script." > "$out" - -install_headers x86 -i686-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -i686-linux-gnu-gcc main.c list.o -o main.exe $cflags -./main.exe >> "$out" -install_headers x86_64 -x86_64-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -x86_64-linux-gnu-gcc main.c list.o -o main.exe $cflags -./main.exe >> "$out" -install_headers arm64 -aarch64-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -aarch64-linux-gnu-gcc main.c list.o -o main.exe $cflags -qemu-aarch64 -L /usr/aarch64-linux-gnu ./main.exe >> "$out" -install_headers arm -arm-linux-gnueabihf-gcc "${includes[@]}" -c list.c $cflags -arm-linux-gnueabihf-gcc main.c list.o -o main.exe $cflags -qemu-arm -L /usr/arm-linux-gnueabihf ./main.exe >> "$out" -install_headers powerpc -powerpc64le-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -powerpc64le-linux-gnu-gcc main.c list.o -o main.exe $cflags -qemu-ppc64le -L /usr/powerpc64le-linux-gnu ./main.exe >> "$out" -install_headers powerpc -powerpc-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -powerpc-linux-gnu-gcc main.c list.o -o main.exe $cflags -qemu-ppc -L /usr/powerpc-linux-gnu ./main.exe >> "$out" -install_headers mips -mips64el-linux-gnuabi64-gcc "${includes[@]}" -c list.c $cflags -mips64el-linux-gnuabi64-gcc main.c list.o -o main.exe $cflags -qemu-mips64el -L /usr/mips64el-linux-gnuabi64 ./main.exe >> "$out" -install_headers mips -mipsel-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -mipsel-linux-gnu-gcc main.c list.o -o main.exe $cflags -qemu-mipsel -L /usr/mipsel-linux-gnu ./main.exe >> "$out" +generate() { + install_headers "$1" + "${CLANG:-clang}" --target="$2" "${includes[@]}" -Wall -std=gnu11 \ + -DIOCTL_EXTRACT -fsyntax-only -fno-color-diagnostics -Xclang -ast-dump \ + -Xclang -ast-dump-filter=ioctl_extract_constants list.c > "$tmp_dir/list.ast" + awk -v condition="$3" -v names="$tmp_dir/generated.txt" \ + -f extract.awk "$tmp_dir/list.ast" >> "$out" +} -# RISCV32 tolchains are not yet packaged by major distributions e.g. debian etc. -# Therefore download it from https://github.com/riscv-collab/riscv-gnu-toolchain/releases -# e.g. riscv32-glibc-ubuntu-22.04-gcc-nightly-2024.02.02-nightly.tar.gz -# install it into /opt and then running below commands will succeed -# /opt/riscv/bin/riscv32-unknown-linux-gnu-gcc --sysroot=/opt/riscv/sysroot/ -Iinclude -c list.c $cflags -# /opt/riscv/bin/riscv32-unknown-linux-gnu-gcc --sysroot=/opt/riscv/sysroot/ main.c list.o -o main.exe $cflags -# /opt/riscv/bin/qemu-riscv32 -L /opt/riscv/sysroot/ ./main.exe >> "$out" -cat riscv32-ioctls.txt >> "$out" +echo "// This file is generated from the ioctl/generate.sh script." > "$out" -install_headers riscv -riscv64-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -riscv64-linux-gnu-gcc main.c list.o -o main.exe $cflags -qemu-riscv64 -L /usr/riscv64-linux-gnu ./main.exe >> "$out" -install_headers s390 -s390x-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -s390x-linux-gnu-gcc main.c list.o -o main.exe $cflags -qemu-s390x -L /usr/s390x-linux-gnu ./main.exe >> "$out" -# As LoongArch and CSKY cross toolchain is not yet packaged in mainstream distros yet, -# pre-generated output is used for the time being -cat loongarch-ioctls.txt >> "$out" -# csky-linux-gnuabiv2-gcc -Iinclude -I../linux/usr/include/ -c list.c $cflags -# csky-linux-gnuabiv2-gcc main.c list.o -o main.exe $cflags -# qemu-csky -L /usr/csky-linux-gnuabiv2 ./main.exe >> "$out" -cat csky-ioctls.txt >> "$out" +generate x86 i686-linux-gnu '#ifdef __i386__' +generate x86_64 x86_64-linux-gnu '#ifdef __x86_64__' +generate arm64 aarch64-linux-gnu '#ifdef __aarch64__' +generate arm arm-linux-gnueabihf '#ifdef __arm__' +generate powerpc powerpc64le-linux-gnu '#ifdef __powerpc64__' +generate powerpc powerpc-linux-gnu '#if defined(__powerpc__) && !defined(__powerpc64__)' +generate mips mips64el-linux-gnuabi64 '#if __mips == 64' +generate mips mipsel-linux-gnu '#if __mips == 32' +generate riscv riscv32-linux-gnu '#if defined(__riscv) && __riscv_xlen == 32' +generate riscv riscv64-linux-gnu '#if defined(__riscv) && __riscv_xlen == 64' +generate s390 s390x-linux-gnu '#if defined(__s390x__)' +generate loongarch loongarch64-linux-gnu '#ifdef __loongarch__' +generate csky csky-linux-gnu '#ifdef __csky__' +# clang's m68k structure layout appears to differ from the Linux/GCC ABI. install_headers m68k -m68k-linux-gnu-gcc "${includes[@]}" -c list.c $cflags -m68k-linux-gnu-gcc main.c list.o -o main.exe $cflags -qemu-m68k -L /usr/m68k-linux-gnu ./main.exe >> "$out" +"${M68K_CC:-m68k-linux-gnu-gcc}" "${includes[@]}" -Wall -c list.c -o "$tmp_dir/list.o" +"${M68K_CC:-m68k-linux-gnu-gcc}" -Wall main.c "$tmp_dir/list.o" -o "$tmp_dir/main.exe" +( + cd "$tmp_dir" + qemu-m68k -L "${M68K_SYSROOT:-/usr/m68k-linux-gnu}" ./main.exe +) >> "$out" + +echo '#include "ioctl-addendum.h"' >> "$out" -# Add any extra custom definitions at the end. -echo "#include \"ioctl-addendum.h\"" >> "$out" +mv "$out" ../modules/ioctl.h +mv "$tmp_dir/generated.txt" generated.txt diff --git a/gen/ioctl/generated.txt b/gen/ioctl/generated.txt index bf6daf5b1..d862c4b12 100644 --- a/gen/ioctl/generated.txt +++ b/gen/ioctl/generated.txt @@ -266,8 +266,10 @@ EXT4_IOC_SETVERSION_OLD EXT4_IOC_GETRSVSZ EXT4_IOC_SETRSVSZ EXT4_IOC_GROUP_EXTEND +EXT4_IOC_GROUP_ADD EXT4_IOC_MIGRATE EXT4_IOC_ALLOC_DA_BLKS +EXT4_IOC_MOVE_EXT EXT4_IOC_RESIZE_FS EXT4_IOC_SWAP_BOOT EXT4_IOC_PRECACHE_EXTENTS @@ -275,6 +277,8 @@ EXT4_IOC_CLEAR_ES_CACHE EXT4_IOC_GETSTATE EXT4_IOC_GET_ES_CACHE EXT4_IOC_CHECKPOINT +EXT4_IOC_GETFSUUID +EXT4_IOC_SETFSUUID EXT4_IOC_SHUTDOWN EXT4_IOC32_GETVERSION EXT4_IOC32_SETVERSION @@ -295,8 +299,6 @@ RIO_CM_EP_GET_LIST_SIZE TUNSETPERSIST FS_IOC_GET_ENCRYPTION_POLICY CEC_RECEIVE -MGSL_IOCGPARAMS -ENI_SETMULT RIO_GET_EVENT_MASK LIRC_GET_MAX_TIMEOUT USBDEVFS_CLAIMINTERFACE @@ -333,19 +335,15 @@ VIDIOC_SUBDEV_S_DV_TIMINGS ASPEED_LPC_CTRL_IOCTL_GET_SIZE DM_DEV_STATUS TEE_IOC_CLOSE_SESSION -NS_GETPSTAT UI_SET_PROPBIT TUNSETFILTEREBPF RIO_MPORT_MAINT_COMPTAG_SET AUTOFS_DEV_IOCTL_VERSION WDIOC_SETOPTIONS VHOST_SCSI_SET_ENDPOINT -MGSL_IOCGTXIDLE -ATM_ADDLECSADDR FSL_HV_IOCTL_GETPROP FDGETPRM HIDIOCAPPLICATION -ENI_MEMDUMP PTP_SYS_OFFSET2 VIDIOC_SUBDEV_G_DV_TIMINGS DMA_BUF_SET_NAME_A @@ -355,10 +353,8 @@ DFL_FPGA_PORT_UINT_SET_IRQ RTC_EPOCH_READ VIDIOC_SUBDEV_S_SELECTION VIDIOC_QUERY_EXT_CTRL -ATM_GETLECSADDR FSL_HV_IOCTL_PARTITION_STOP SONET_GETDIAG -ATMMPC_DATA IPMICTL_UNREGISTER_FOR_CMD_CHANS HIDIOCGCOLLECTIONINDEX RPMSG_CREATE_EPT_IOCTL @@ -406,7 +402,6 @@ FDCLRPRM BTRFS_IOC_SCRUB USBDEVFS_DISCONNECT TUNSETVNETBE -ATMTCP_REMOVE VHOST_VDPA_GET_CONFIG PPPIOCGNPMODE FDGETDRVPRM @@ -417,7 +412,6 @@ MMTIMER_GETRES VIDIOC_SUBDEV_ENUMSTD PPGETFLAGS VDUSE_DEV_GET_FEATURES -CAPI_MANUFACTURER_CMD VIDIOC_G_TUNER DM_TABLE_STATUS DM_DEV_ARM_POLL @@ -425,13 +419,11 @@ NE_CREATE_VM MEDIA_IOC_ENUM_LINKS F2FS_IOC_PRECACHE_EXTENTS DFL_FPGA_PORT_DMA_MAP -MGSL_IOCGXCTRL FW_CDEV_IOC_SEND_REQUEST SONYPI_IOCGBLUE F2FS_IOC_DECOMPRESS_FILE I2OHTML VFIO_GET_API_VERSION -IDT77105_GETSTATZ I2OPARMSET TEE_IOC_CANCEL PTP_SYS_OFFSET_PRECISE2 @@ -453,7 +445,6 @@ PTP_CLOCK_GETCAPS FDGETMAXERRS TUNSETQUEUE PTP_ENABLE_PPS -SIOCSIFATMTCP CEC_ADAP_G_LOG_ADDRS ND_IOCTL_ARS_CAP NBD_SET_BLKSIZE @@ -516,14 +507,11 @@ ND_IOCTL_GET_CONFIG_SIZE FDEJECT TUNSETOFFLOAD PPPIOCCONNECT -ATM_ADDADDR VDUSE_DEV_INJECT_CONFIG_IRQ AUTOFS_DEV_IOCTL_ASKUMOUNT VHOST_VDPA_GET_STATUS CCISS_PASSTHRU -MGSL_IOCCLRMODCOUNT TEE_IOC_SUPPL_SEND -ATMARPD_CTRL UI_ABS_SETUP UI_DEV_DESTROY BTRFS_IOC_QUOTA_CTL @@ -550,7 +538,6 @@ DM_DEV_WAIT RTC_WIE_ON MEDIA_IOC_DEVICE_INFO RIO_CM_CHAN_CREATE -MGSL_IOCSPARAMS RTC_SET_TIME VHOST_RESET_OWNER IOC_OPAL_PSID_REVERT_TPR @@ -576,18 +563,14 @@ RIO_MPORT_MAINT_WRITE_REMOTE VIDIOC_SUBDEV_S_CROP USBDEVFS_CONNECT SYNC_IOC_FILE_INFO -ATMARP_MKIP VFIO_IOMMU_SPAPR_TCE_GET_INFO CCISS_GETHEARTBEAT -ATM_RSTADDR NBD_SET_SIZE UDF_GETVOLIDENT GPIO_V2_LINE_GET_VALUES_IOCTL -MGSL_IOCSTXIDLE FSL_HV_IOCTL_SETPROP BTRFS_IOC_GET_DEV_STATS PPRSTATUS -MGSL_IOCTXENABLE UDF_GETEASIZE NVME_IOCTL_ADMIN64_CMD VHOST_SET_OWNER @@ -620,7 +603,6 @@ TEE_IOC_SHM_ALLOC PERF_EVENT_IOC_SET_BPF UDMABUF_CREATE_LIST VHOST_SET_LOG_BASE -ZATM_GETPOOL BR2684_SETFILT RNDGETPOOL PPS_GETPARAMS @@ -637,7 +619,6 @@ FSL_HV_IOCTL_PARTITION_RESTART CCISS_REGNEWD FAT_IOCTL_SET_ATTRIBUTES VIDIOC_CREATE_BUFS -CAPI_GET_VERSION SWITCHTEC_IOCTL_EVENT_SUMMARY VFIO_EEH_PE_OP FW_CDEV_IOC_CREATE_ISO_CONTEXT @@ -667,7 +648,6 @@ IPMICTL_GET_MY_CHANNEL_LUN_CMD STP_POLICY_ID_GET PPSETFLAGS CEC_ADAP_S_PHYS_ADDR -ATMTCP_CREATE IPMI_BMC_IOCTL_FORCE_ABORT PPPIOCGXASYNCMAP VHOST_SET_VRING_CALL @@ -705,7 +685,6 @@ VDUSE_GET_API_VERSION RTC_RD_TIME FDMSGOFF IPMICTL_REGISTER_FOR_CMD_CHANS -CAPI_GET_ERRCODE PCITEST_SET_IRQTYPE VIDIOC_SUBDEV_S_EDID MATROXFB_SET_OUTPUT_MODE @@ -724,7 +703,6 @@ RIO_WAIT_FOR_ASYNC VHOST_SET_VRING_NUM AUTOFS_DEV_IOCTL_PROTOVER RIO_FREE_DMA -MGSL_IOCRXENABLE IOCTL_VM_SOCKETS_GET_LOCAL_CID IPMICTL_SET_TIMING_PARMS_CMD PPPIOCGL2TPSTATS @@ -740,14 +718,12 @@ CHIOPOSITION IPMICTL_SET_MAINTENANCE_MODE_CMD BTRFS_IOC_DEFAULT_SUBVOL RIO_UNMAP_OUTBOUND -CAPI_CLR_FLAGS FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE MATROXFB_GET_OUTPUT_CONNECTION EVIOCSMASK BTRFS_IOC_FORGET_DEV CXL_MEM_QUERY_COMMANDS CEC_S_MODE -MGSL_IOCSIF SWITCHTEC_IOCTL_PFF_TO_PORT PPSETMODE VFIO_DEVICE_SET_IRQS @@ -771,12 +747,10 @@ DM_DEV_SUSPEND F2FS_IOC_GET_COMPRESS_OPTION FW_CDEV_IOC_STOP_ISO GPIO_V2_GET_LINEINFO_IOCTL -ATMMPC_CTRL PPPIOCSXASYNCMAP CHIOGSTATUS FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE RIO_MPORT_MAINT_PORT_IDX_GET -CAPI_SET_FLAGS VFIO_GROUP_GET_DEVICE_FD VHOST_SET_MEM_TABLE MATROXFB_SET_OUTPUT_CONNECTION @@ -789,7 +763,6 @@ BTRFS_IOC_ADD_DEV JSIOCGCORR VIDIOC_G_FMT RTC_EPOCH_SET -CAPI_GET_PROFILE ATM_GETLOOP SCIF_LISTEN NBD_CLEAR_QUE @@ -828,7 +801,6 @@ VHOST_VDPA_GET_DEVICE_ID VIDIOC_QBUF VIDIOC_S_TUNER TUNGETVNETHDRSZ -CAPI_NCCI_GETUNIT DFL_FPGA_PORT_UINT_GET_IRQ_NUM VIDIOC_OMAP3ISP_STAT_EN GPIO_V2_LINE_SET_CONFIG_IOCTL @@ -838,7 +810,6 @@ IPMICTL_SEND_COMMAND_SETTIME VHOST_SET_LOG_FD SCIF_SEND VIDIOC_SUBDEV_G_FMT -NS_ADJBUFLEV VIDIOC_DBG_S_REGISTER NILFS_IOCTL_RESIZE PHN_GETREG @@ -866,9 +837,7 @@ MMTIMER_GETBITS VIDIOC_ENUMSTD VHOST_GET_VRING_BASE VFIO_DEVICE_IOEVENTFD -ATMARP_SETENTRY CCISS_REVALIDVOLS -MGSL_IOCLOOPTXDONE RTC_VL_READ ND_IOCTL_ARS_STATUS RIO_DEV_DEL @@ -891,7 +860,6 @@ TUNSETTXFILTER TUNGETVNETLE VIDIOC_ENUM_DV_TIMINGS BTRFS_IOC_INO_PATHS -MGSL_IOCGXSYNC HIDIOCGFIELDINFO VIDIOC_SUBDEV_G_STD I2OVALIDATE @@ -911,8 +879,6 @@ ATM_GETTYPE PHN_GETREGS FDSETEMSGTRESH NILFS_IOCTL_GET_VINFO -MGSL_IOCWAITEVENT -CAPI_INSTALLED EVIOCGMASK BTRFS_IOC_SUBVOL_GETFLAGS FSL_HV_IOCTL_PARTITION_GET_STATUS @@ -921,7 +887,6 @@ GSMIOC_GETFIRST FW_CDEV_IOC_FLUSH_ISO VIDIOC_DBG_G_CHIP_INFO F2FS_IOC_RELEASE_VOLATILE_WRITE -CAPI_GET_SERIAL FDSETDRVPRM IOC_OPAL_SAVE VIDIOC_G_DV_TIMINGS @@ -947,13 +912,10 @@ USBDEVFS_RELEASEINTERFACE VIDIOC_CROPCAP DFL_FPGA_PORT_GET_INFO PHN_SET_REGS -ATMLEC_DATA -PPPOEIOCDFWD VIDIOC_S_SELECTION SNAPSHOT_FREE_SWAP_PAGES BTRFS_IOC_LOGICAL_INO VIDIOC_S_CTRL -ZATM_SETPOOL MTIOCPOS PMU_IOC_SLEEP AUTOFS_DEV_IOCTL_PROTOSUBVER @@ -1026,7 +988,6 @@ F2FS_IOC_GET_PIN_FILE SCIF_CONNECT BLKREPORTZONE AUTOFS_IOC_ASKUMOUNT -ATM_ADDPARTY FDSETPRM ATM_GETSTATZ ISST_IF_MSR_COMMAND @@ -1037,7 +998,6 @@ GPIOHANDLE_SET_LINE_VALUES_IOCTL PCITEST_COPY IPMICTL_GET_MY_ADDRESS_CMD CHIOGPICKER -CAPI_NCCI_OPENCOUNT CXL_MEM_SEND_COMMAND PERF_EVENT_IOC_SET_FILTER IOC_OPAL_REVERT_TPR @@ -1070,12 +1030,9 @@ UI_SET_ABSBIT DFL_FPGA_PORT_ERR_GET_IRQ_NUM USBDEVFS_REAPURB32 BTRFS_IOC_TRANS_END -CAPI_REGISTER F2FS_IOC_COMPRESS_FILE USBDEVFS_DISCARDURB -HE_GET_REG ATM_SETLOOP -ATMSIGD_CTRL CIOC_KERNEL_VERSION BTRFS_IOC_CLONE_RANGE SNAPSHOT_UNFREEZE @@ -1102,7 +1059,6 @@ BTRFS_IOC_DEV_REPLACE PPPIOCGFLAGS NILFS_IOCTL_SET_SUINFO FW_CDEV_IOC_GET_CYCLE_TIMER2 -ATM_DELLECSADDR FW_CDEV_IOC_GET_SPEED PPPIOCGIDLE32 VFIO_DEVICE_RESET @@ -1153,7 +1109,6 @@ VIDIOC_QUERYMENU DFL_FPGA_PORT_DMA_UNMAP I2OLCTGET FS_IOC_GET_ENCRYPTION_PWSALT -NS_SETBUFLEV BLKCLOSEZONE SONET_GETFRSENSE UI_SET_EVBIT @@ -1182,7 +1137,6 @@ CEC_G_MODE USBDEVFS_RESETEP MEDIA_REQUEST_IOC_QUEUE USBDEVFS_ALLOC_STREAMS -MGSL_IOCSXCTRL MEDIA_IOC_G_TOPOLOGY PPPIOCUNBRIDGECHAN F2FS_IOC_COMMIT_ATOMIC_WRITE @@ -1195,7 +1149,6 @@ FAT_IOCTL_GET_VOLUME_ID UI_SET_PHYS FDWERRORGET VIDIOC_SUBDEV_G_EDID -MGSL_IOCGSTATS RPROC_SET_SHUTDOWN_ON_RELEASE SIOCGSTAMP_NEW RTC_WKALM_RD @@ -1208,7 +1161,6 @@ VFIO_DEVICE_GET_GFX_DMABUF VHOST_SET_VRING_BUSYLOOP_TIMEOUT VIDIOC_SUBDEV_G_SELECTION BTRFS_IOC_RM_DEV_V2 -MGSL_IOCWAITGPIO PMU_IOC_CAN_SLEEP KCOV_ENABLE BTRFS_IOC_CLONE @@ -1216,8 +1168,6 @@ F2FS_IOC_DEFRAGMENT FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE AGPIOC_ALLOCATE NE_SET_USER_MEMORY_REGION -MGSL_IOCTXABORT -MGSL_IOCSGPIO LIRC_SET_REC_CARRIER F2FS_IOC_FLUSH_DEVICE SNAPSHOT_ATOMIC_RESTORE @@ -1234,8 +1184,6 @@ WDIOC_GETTIMELEFT ATM_GETLINKRATE RTC_WKALM_SET VHOST_GET_BACKEND_FEATURES -ATMARP_ENCAP -CAPI_GET_FLAGS IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD DFL_FPGA_FME_PORT_ASSIGN NS_GET_OWNER_UID @@ -1243,7 +1191,6 @@ VIDIOC_OVERLAY BTRFS_IOC_WAIT_SYNC GPIOHANDLE_SET_CONFIG_IOCTL VHOST_GET_VRING_ENDIAN -ATM_GETADDR PHN_GET_REGS AUTOFS_DEV_IOCTL_REQUESTER AUTOFS_DEV_IOCTL_EXPIRE @@ -1263,7 +1210,6 @@ BLKOPENZONE DM_VERSION CEC_TRANSMIT FS_IOC_GET_ENCRYPTION_POLICY_EX -SIOCMKCLIP IPMI_BMC_IOCTL_CLEAR_SMS_ATN HIDIOCGVERSION VIDIOC_S_INPUT @@ -1275,7 +1221,6 @@ IOC_OPAL_GENERIC_TABLE_RW FS_IOC_READ_VERITY_METADATA ND_IOCTL_SET_CONFIG_DATA USBDEVFS_GETDRIVER -IDT77105_GETSTAT HIDIOCINITREPORT VFIO_DEVICE_GET_INFO RIO_CM_CHAN_RECEIVE @@ -1319,7 +1264,6 @@ SONYPI_IOCGBRT IOC_PR_RELEASE PPCLRIRQ IPMICTL_SET_MY_CHANNEL_LUN_CMD -MGSL_IOCSXSYNC HPET_IE_OFF IOC_OPAL_ACTIVATE_USR SONET_SETFRAMING @@ -1339,7 +1283,6 @@ FDGETFDCSTAT VIDIOC_S_PRIORITY SNAPSHOT_FREEZE VIDIOC_ENUMINPUT -ZATM_GETPOOLZ RIO_DISABLE_DOORBELL_RANGE GPIO_V2_GET_LINEINFO_WATCH_IOCTL VIDIOC_G_STD @@ -1351,7 +1294,6 @@ PPPIOCSRASYNCMAP IOCTL_MEI_NOTIFY_SET BTRFS_IOC_QUOTA_RESCAN_STATUS F2FS_IOC_GARBAGE_COLLECT -ATMLEC_CTRL MATROXFB_GET_AVAILABLE_OUTPUTS DM_DEV_CREATE VHOST_VDPA_GET_VRING_NUM @@ -1362,7 +1304,6 @@ WDIOC_KEEPALIVE NVME_IOCTL_SUBSYS_RESET PTP_EXTTS_REQUEST2 PCITEST_BAR -MGSL_IOCGGPIO EVIOCSREP VFIO_DEVICE_GET_IRQ_INFO HPET_DPI @@ -1382,7 +1323,6 @@ VIDIOC_S_HW_FREQ_SEEK DM_TABLE_LOAD F2FS_IOC_START_ATOMIC_WRITE VIDIOC_G_OUTPUT -ATM_DROPPARTY CHIOGELEM BTRFS_IOC_GET_SUPPORTED_FEATURES EVIOCSKEYCODE @@ -1395,7 +1335,6 @@ IOC_OPAL_LR_SETUP FW_CDEV_IOC_DEALLOCATE WDIOC_SETTIMEOUT IOC_WATCH_QUEUE_SET_FILTER -CAPI_GET_MANUFACTURER VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY ASPEED_P2A_CTRL_IOCTL_SET_WINDOW VIDIOC_G_EDID @@ -1416,7 +1355,6 @@ IOC_PR_PREEMPT_ABORT RIO_MAP_OUTBOUND ATM_SETESI FW_CDEV_IOC_START_ISO -ATM_DELADDR PPFCONTROL SONYPI_IOCGFAN RTC_IRQP_SET @@ -1429,11 +1367,9 @@ TOSHIBA_ACPI_SCI VIDIOC_DQBUF BTRFS_IOC_BALANCE_PROGRESS BTRFS_IOC_SUBVOL_SETFLAGS -ATMLEC_MCAST MMTIMER_GETFREQ VIDIOC_G_SELECTION RTC_ALM_SET -PPPOEIOCSFWD IPMICTL_GET_MAINTENANCE_MODE_CMD FS_IOC_ENABLE_VERITY NILFS_IOCTL_GET_BDESCS @@ -1468,7 +1404,6 @@ MATROXFB_GET_OUTPUT_MODE BTRFS_IOC_QUOTA_RESCAN_WAIT RIO_CM_CHAN_BIND HIDIOCGRDESC -MGSL_IOCGIF VIDIOC_S_OUTPUT HIDIOCGREPORTINFO WDIOC_GETBOOTSTATUS @@ -1497,3 +1432,14 @@ ACRN_IOCTL_DEASSIGN_PCIDEV ACRN_IOCTL_RESET_VM ACRN_IOCTL_DESTROY_IOREQ_CLIENT ACRN_IOCTL_VM_INTR_MONITOR +PIDFD_GET_CGROUP_NAMESPACE +PIDFD_GET_IPC_NAMESPACE +PIDFD_GET_MNT_NAMESPACE +PIDFD_GET_NET_NAMESPACE +PIDFD_GET_PID_NAMESPACE +PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE +PIDFD_GET_TIME_NAMESPACE +PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE +PIDFD_GET_USER_NAMESPACE +PIDFD_GET_UTS_NAMESPACE +PIDFD_GET_INFO diff --git a/gen/ioctl/list.c b/gen/ioctl/list.c index be8b17be5..269cb4d52 100644 --- a/gen/ioctl/list.c +++ b/gen/ioctl/list.c @@ -35,20 +35,9 @@ struct sockaddr { #include #include #include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include #include #include -#include -#include #include #include #include @@ -56,7 +45,6 @@ struct sockaddr { #include #include #include -#include #include #include #include @@ -65,9 +53,7 @@ struct sockaddr { #include #include #include -#if 0 // Temporarily disable linux/ext4.h until Linux 6.4. #include -#endif #include #include #include @@ -148,7 +134,6 @@ struct sockaddr { #include #include #include -#include #include #include #include @@ -173,48 +158,25 @@ struct sockaddr { #include #include #include +#include #if defined(__powerpc64__) || defined(__powerpc__) typedef __kernel_loff_t loff_t; #endif -// Temporarily define these ext4 ioctl codes manually until Linux 6.4. -#define EXT4_IOC32_GETRSVSZ _IOR('f', 5, int) -#define EXT4_IOC32_GETVERSION _IOR('f', 3, int) -#define EXT4_IOC32_GETVERSION_OLD FS_IOC32_GETVERSION -#define EXT4_IOC32_GROUP_ADD _IOW('f', 8, struct compat_ext4_new_group_input) -#define EXT4_IOC32_GROUP_EXTEND _IOW('f', 7, unsigned int) -#define EXT4_IOC32_SETRSVSZ _IOW('f', 6, int) -#define EXT4_IOC32_SETVERSION _IOW('f', 4, int) -#define EXT4_IOC32_SETVERSION_OLD FS_IOC32_SETVERSION -#define EXT4_IOC_ALLOC_DA_BLKS _IO('f', 12) -#define EXT4_IOC_CHECKPOINT _IOW('f', 43, __u32) -#define EXT4_IOC_CLEAR_ES_CACHE _IO('f', 40) -#define EXT4_IOC_GET_ES_CACHE _IOWR('f', 42, struct fiemap) -#define EXT4_IOC_GETFSUUID _IOR('f', 44, struct fsuuid) -#define EXT4_IOC_GETRSVSZ _IOR('f', 5, long) -#define EXT4_IOC_GETSTATE _IOW('f', 41, __u32) -#define EXT4_IOC_GETVERSION _IOR('f', 3, long) -#define EXT4_IOC_GETVERSION_OLD FS_IOC_GETVERSION -#define EXT4_IOC_GROUP_ADD _IOW('f', 8, struct ext4_new_group_input) -#define EXT4_IOC_GROUP_EXTEND _IOW('f', 7, unsigned long) -#define EXT4_IOC_MIGRATE _IO('f', 9) -#define EXT4_IOC_MOVE_EXT _IOWR('f', 15, struct move_extent) -#define EXT4_IOC_PRECACHE_EXTENTS _IO('f', 18) -#define EXT4_IOC_RESIZE_FS _IOW('f', 16, __u64) -#define EXT4_IOC_SETFSUUID _IOW('f', 44, struct fsuuid) -#define EXT4_IOC_SETRSVSZ _IOW('f', 6, long) -#define EXT4_IOC_SETVERSION _IOW('f', 4, long) -#define EXT4_IOC_SETVERSION_OLD FS_IOC_SETVERSION -#define EXT4_IOC_SHUTDOWN _IOR('X', 125, __u32) -#define EXT4_IOC_SWAP_BOOT _IO('f', 17) - void entry(const char *s); +#ifdef IOCTL_EXTRACT +#define IOCTL_REQUEST(s) do { \ + enum { ioctl_value_##s = (unsigned long)(s) }; \ +} while (0) +#define list ioctl_extract_constants +#else #define IOCTL_REQUEST(s) do { \ printf("#define " #s " 0x%lxul\n", (unsigned long)(s)); \ entry(#s); \ } while (0) +#endif void list(void) { IOCTL_REQUEST(FIONREAD); @@ -552,14 +514,10 @@ void list(void) { IOCTL_REQUEST(EXT4_IOC_GETRSVSZ); IOCTL_REQUEST(EXT4_IOC_SETRSVSZ); IOCTL_REQUEST(EXT4_IOC_GROUP_EXTEND); -#if 0 // Temporarily disable until Linux 6.4. IOCTL_REQUEST(EXT4_IOC_GROUP_ADD); -#endif IOCTL_REQUEST(EXT4_IOC_MIGRATE); IOCTL_REQUEST(EXT4_IOC_ALLOC_DA_BLKS); -#if 0 // Temporarily disable until Linux 6.4. IOCTL_REQUEST(EXT4_IOC_MOVE_EXT); -#endif IOCTL_REQUEST(EXT4_IOC_RESIZE_FS); IOCTL_REQUEST(EXT4_IOC_SWAP_BOOT); IOCTL_REQUEST(EXT4_IOC_PRECACHE_EXTENTS); @@ -567,10 +525,8 @@ void list(void) { IOCTL_REQUEST(EXT4_IOC_GETSTATE); IOCTL_REQUEST(EXT4_IOC_GET_ES_CACHE); IOCTL_REQUEST(EXT4_IOC_CHECKPOINT); -#if 0 // Temporarily disable until Linux 6.4. IOCTL_REQUEST(EXT4_IOC_GETFSUUID); IOCTL_REQUEST(EXT4_IOC_SETFSUUID); -#endif IOCTL_REQUEST(EXT4_IOC_SHUTDOWN); IOCTL_REQUEST(EXT4_IOC32_GETVERSION); @@ -578,7 +534,7 @@ void list(void) { IOCTL_REQUEST(EXT4_IOC32_GETRSVSZ); IOCTL_REQUEST(EXT4_IOC32_SETRSVSZ); IOCTL_REQUEST(EXT4_IOC32_GROUP_EXTEND); -#if 0 // Temporarily disable until Linux 6.4. +#if 0 // references an incomplete struct. see https://elixir.bootlin.com/linux/v7.3-rc4/source/include/uapi/linux/ext4.h#L49 IOCTL_REQUEST(EXT4_IOC32_GROUP_ADD); #endif IOCTL_REQUEST(EXT4_IOC32_GETVERSION_OLD); @@ -596,8 +552,6 @@ void list(void) { IOCTL_REQUEST(TUNSETPERSIST); IOCTL_REQUEST(FS_IOC_GET_ENCRYPTION_POLICY); IOCTL_REQUEST(CEC_RECEIVE); - IOCTL_REQUEST(MGSL_IOCGPARAMS); - IOCTL_REQUEST(ENI_SETMULT); IOCTL_REQUEST(RIO_GET_EVENT_MASK); IOCTL_REQUEST(LIRC_GET_MAX_TIMEOUT); IOCTL_REQUEST(USBDEVFS_CLAIMINTERFACE); @@ -637,19 +591,15 @@ void list(void) { IOCTL_REQUEST(ASPEED_LPC_CTRL_IOCTL_GET_SIZE); IOCTL_REQUEST(DM_DEV_STATUS); IOCTL_REQUEST(TEE_IOC_CLOSE_SESSION); - IOCTL_REQUEST(NS_GETPSTAT); IOCTL_REQUEST(UI_SET_PROPBIT); IOCTL_REQUEST(TUNSETFILTEREBPF); IOCTL_REQUEST(RIO_MPORT_MAINT_COMPTAG_SET); IOCTL_REQUEST(AUTOFS_DEV_IOCTL_VERSION); IOCTL_REQUEST(WDIOC_SETOPTIONS); IOCTL_REQUEST(VHOST_SCSI_SET_ENDPOINT); - IOCTL_REQUEST(MGSL_IOCGTXIDLE); - IOCTL_REQUEST(ATM_ADDLECSADDR); IOCTL_REQUEST(FSL_HV_IOCTL_GETPROP); IOCTL_REQUEST(FDGETPRM); IOCTL_REQUEST(HIDIOCAPPLICATION); - IOCTL_REQUEST(ENI_MEMDUMP); IOCTL_REQUEST(PTP_SYS_OFFSET2); IOCTL_REQUEST(VIDIOC_SUBDEV_G_DV_TIMINGS); IOCTL_REQUEST(DMA_BUF_SET_NAME_A); @@ -659,10 +609,8 @@ void list(void) { IOCTL_REQUEST(RTC_EPOCH_READ); IOCTL_REQUEST(VIDIOC_SUBDEV_S_SELECTION); IOCTL_REQUEST(VIDIOC_QUERY_EXT_CTRL); - IOCTL_REQUEST(ATM_GETLECSADDR); IOCTL_REQUEST(FSL_HV_IOCTL_PARTITION_STOP); IOCTL_REQUEST(SONET_GETDIAG); - IOCTL_REQUEST(ATMMPC_DATA); IOCTL_REQUEST(IPMICTL_UNREGISTER_FOR_CMD_CHANS); IOCTL_REQUEST(HIDIOCGCOLLECTIONINDEX); IOCTL_REQUEST(RPMSG_CREATE_EPT_IOCTL); @@ -712,7 +660,6 @@ void list(void) { IOCTL_REQUEST(BTRFS_IOC_SCRUB); IOCTL_REQUEST(USBDEVFS_DISCONNECT); IOCTL_REQUEST(TUNSETVNETBE); - IOCTL_REQUEST(ATMTCP_REMOVE); IOCTL_REQUEST(VHOST_VDPA_GET_CONFIG); IOCTL_REQUEST(PPPIOCGNPMODE); IOCTL_REQUEST(FDGETDRVPRM); @@ -723,7 +670,6 @@ void list(void) { IOCTL_REQUEST(VIDIOC_SUBDEV_ENUMSTD); IOCTL_REQUEST(PPGETFLAGS); IOCTL_REQUEST(VDUSE_DEV_GET_FEATURES); - IOCTL_REQUEST(CAPI_MANUFACTURER_CMD); IOCTL_REQUEST(VIDIOC_G_TUNER); IOCTL_REQUEST(DM_TABLE_STATUS); IOCTL_REQUEST(DM_DEV_ARM_POLL); @@ -731,13 +677,11 @@ void list(void) { IOCTL_REQUEST(MEDIA_IOC_ENUM_LINKS); IOCTL_REQUEST(F2FS_IOC_PRECACHE_EXTENTS); IOCTL_REQUEST(DFL_FPGA_PORT_DMA_MAP); - IOCTL_REQUEST(MGSL_IOCGXCTRL); IOCTL_REQUEST(FW_CDEV_IOC_SEND_REQUEST); IOCTL_REQUEST(SONYPI_IOCGBLUE); IOCTL_REQUEST(F2FS_IOC_DECOMPRESS_FILE); IOCTL_REQUEST(I2OHTML); IOCTL_REQUEST(VFIO_GET_API_VERSION); - IOCTL_REQUEST(IDT77105_GETSTATZ); IOCTL_REQUEST(I2OPARMSET); IOCTL_REQUEST(TEE_IOC_CANCEL); IOCTL_REQUEST(PTP_SYS_OFFSET_PRECISE2); @@ -759,7 +703,6 @@ void list(void) { IOCTL_REQUEST(FDGETMAXERRS); IOCTL_REQUEST(TUNSETQUEUE); IOCTL_REQUEST(PTP_ENABLE_PPS); - IOCTL_REQUEST(SIOCSIFATMTCP); IOCTL_REQUEST(CEC_ADAP_G_LOG_ADDRS); IOCTL_REQUEST(ND_IOCTL_ARS_CAP); IOCTL_REQUEST(NBD_SET_BLKSIZE); @@ -822,14 +765,11 @@ void list(void) { IOCTL_REQUEST(FDEJECT); IOCTL_REQUEST(TUNSETOFFLOAD); IOCTL_REQUEST(PPPIOCCONNECT); - IOCTL_REQUEST(ATM_ADDADDR); IOCTL_REQUEST(VDUSE_DEV_INJECT_CONFIG_IRQ); IOCTL_REQUEST(AUTOFS_DEV_IOCTL_ASKUMOUNT); IOCTL_REQUEST(VHOST_VDPA_GET_STATUS); IOCTL_REQUEST(CCISS_PASSTHRU); - IOCTL_REQUEST(MGSL_IOCCLRMODCOUNT); IOCTL_REQUEST(TEE_IOC_SUPPL_SEND); - IOCTL_REQUEST(ATMARPD_CTRL); IOCTL_REQUEST(UI_ABS_SETUP); IOCTL_REQUEST(UI_DEV_DESTROY); IOCTL_REQUEST(BTRFS_IOC_QUOTA_CTL); @@ -859,7 +799,6 @@ void list(void) { #endif IOCTL_REQUEST(MEDIA_IOC_DEVICE_INFO); IOCTL_REQUEST(RIO_CM_CHAN_CREATE); - IOCTL_REQUEST(MGSL_IOCSPARAMS); IOCTL_REQUEST(RTC_SET_TIME); IOCTL_REQUEST(VHOST_RESET_OWNER); IOCTL_REQUEST(IOC_OPAL_PSID_REVERT_TPR); @@ -885,18 +824,14 @@ void list(void) { IOCTL_REQUEST(VIDIOC_SUBDEV_S_CROP); IOCTL_REQUEST(USBDEVFS_CONNECT); IOCTL_REQUEST(SYNC_IOC_FILE_INFO); - IOCTL_REQUEST(ATMARP_MKIP); IOCTL_REQUEST(VFIO_IOMMU_SPAPR_TCE_GET_INFO); IOCTL_REQUEST(CCISS_GETHEARTBEAT); - IOCTL_REQUEST(ATM_RSTADDR); IOCTL_REQUEST(NBD_SET_SIZE); IOCTL_REQUEST(UDF_GETVOLIDENT); IOCTL_REQUEST(GPIO_V2_LINE_GET_VALUES_IOCTL); - IOCTL_REQUEST(MGSL_IOCSTXIDLE); IOCTL_REQUEST(FSL_HV_IOCTL_SETPROP); IOCTL_REQUEST(BTRFS_IOC_GET_DEV_STATS); IOCTL_REQUEST(PPRSTATUS); - IOCTL_REQUEST(MGSL_IOCTXENABLE); IOCTL_REQUEST(UDF_GETEASIZE); IOCTL_REQUEST(NVME_IOCTL_ADMIN64_CMD); IOCTL_REQUEST(VHOST_SET_OWNER); @@ -929,7 +864,6 @@ void list(void) { IOCTL_REQUEST(PERF_EVENT_IOC_SET_BPF); IOCTL_REQUEST(UDMABUF_CREATE_LIST); IOCTL_REQUEST(VHOST_SET_LOG_BASE); - IOCTL_REQUEST(ZATM_GETPOOL); IOCTL_REQUEST(BR2684_SETFILT); IOCTL_REQUEST(RNDGETPOOL); IOCTL_REQUEST(PPS_GETPARAMS); @@ -946,7 +880,6 @@ void list(void) { IOCTL_REQUEST(CCISS_REGNEWD); IOCTL_REQUEST(FAT_IOCTL_SET_ATTRIBUTES); IOCTL_REQUEST(VIDIOC_CREATE_BUFS); - IOCTL_REQUEST(CAPI_GET_VERSION); IOCTL_REQUEST(SWITCHTEC_IOCTL_EVENT_SUMMARY); IOCTL_REQUEST(VFIO_EEH_PE_OP); IOCTL_REQUEST(FW_CDEV_IOC_CREATE_ISO_CONTEXT); @@ -976,7 +909,6 @@ void list(void) { IOCTL_REQUEST(STP_POLICY_ID_GET); IOCTL_REQUEST(PPSETFLAGS); IOCTL_REQUEST(CEC_ADAP_S_PHYS_ADDR); - IOCTL_REQUEST(ATMTCP_CREATE); IOCTL_REQUEST(IPMI_BMC_IOCTL_FORCE_ABORT); IOCTL_REQUEST(PPPIOCGXASYNCMAP); IOCTL_REQUEST(VHOST_SET_VRING_CALL); @@ -1014,7 +946,6 @@ void list(void) { IOCTL_REQUEST(RTC_RD_TIME); IOCTL_REQUEST(FDMSGOFF); IOCTL_REQUEST(IPMICTL_REGISTER_FOR_CMD_CHANS); - IOCTL_REQUEST(CAPI_GET_ERRCODE); IOCTL_REQUEST(PCITEST_SET_IRQTYPE); IOCTL_REQUEST(VIDIOC_SUBDEV_S_EDID); IOCTL_REQUEST(MATROXFB_SET_OUTPUT_MODE); @@ -1039,7 +970,6 @@ void list(void) { #if 0 // needs `struct usbdevfs_bulktransfer32` IOCTL_REQUEST(USBDEVFS_BULK32); #endif - IOCTL_REQUEST(MGSL_IOCRXENABLE); IOCTL_REQUEST(IOCTL_VM_SOCKETS_GET_LOCAL_CID); IOCTL_REQUEST(IPMICTL_SET_TIMING_PARMS_CMD); IOCTL_REQUEST(PPPIOCGL2TPSTATS); @@ -1055,7 +985,6 @@ void list(void) { IOCTL_REQUEST(IPMICTL_SET_MAINTENANCE_MODE_CMD); IOCTL_REQUEST(BTRFS_IOC_DEFAULT_SUBVOL); IOCTL_REQUEST(RIO_UNMAP_OUTBOUND); - IOCTL_REQUEST(CAPI_CLR_FLAGS); IOCTL_REQUEST(FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE); IOCTL_REQUEST(MATROXFB_GET_OUTPUT_CONNECTION); IOCTL_REQUEST(EVIOCSMASK); @@ -1064,7 +993,6 @@ void list(void) { IOCTL_REQUEST(CXL_MEM_QUERY_COMMANDS); #endif IOCTL_REQUEST(CEC_S_MODE); - IOCTL_REQUEST(MGSL_IOCSIF); IOCTL_REQUEST(SWITCHTEC_IOCTL_PFF_TO_PORT); IOCTL_REQUEST(PPSETMODE); IOCTL_REQUEST(VFIO_DEVICE_SET_IRQS); @@ -1091,12 +1019,10 @@ void list(void) { IOCTL_REQUEST(F2FS_IOC_GET_COMPRESS_OPTION); IOCTL_REQUEST(FW_CDEV_IOC_STOP_ISO); IOCTL_REQUEST(GPIO_V2_GET_LINEINFO_IOCTL); - IOCTL_REQUEST(ATMMPC_CTRL); IOCTL_REQUEST(PPPIOCSXASYNCMAP); IOCTL_REQUEST(CHIOGSTATUS); IOCTL_REQUEST(FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE); IOCTL_REQUEST(RIO_MPORT_MAINT_PORT_IDX_GET); - IOCTL_REQUEST(CAPI_SET_FLAGS); IOCTL_REQUEST(VFIO_GROUP_GET_DEVICE_FD); IOCTL_REQUEST(VHOST_SET_MEM_TABLE); IOCTL_REQUEST(MATROXFB_SET_OUTPUT_CONNECTION); @@ -1109,7 +1035,6 @@ void list(void) { IOCTL_REQUEST(JSIOCGCORR); IOCTL_REQUEST(VIDIOC_G_FMT); IOCTL_REQUEST(RTC_EPOCH_SET); - IOCTL_REQUEST(CAPI_GET_PROFILE); IOCTL_REQUEST(ATM_GETLOOP); IOCTL_REQUEST(SCIF_LISTEN); IOCTL_REQUEST(NBD_CLEAR_QUE); @@ -1148,7 +1073,6 @@ void list(void) { IOCTL_REQUEST(VIDIOC_QBUF); IOCTL_REQUEST(VIDIOC_S_TUNER); IOCTL_REQUEST(TUNGETVNETHDRSZ); - IOCTL_REQUEST(CAPI_NCCI_GETUNIT); IOCTL_REQUEST(DFL_FPGA_PORT_UINT_GET_IRQ_NUM); IOCTL_REQUEST(VIDIOC_OMAP3ISP_STAT_EN); IOCTL_REQUEST(GPIO_V2_LINE_SET_CONFIG_IOCTL); @@ -1158,7 +1082,6 @@ void list(void) { IOCTL_REQUEST(VHOST_SET_LOG_FD); IOCTL_REQUEST(SCIF_SEND); IOCTL_REQUEST(VIDIOC_SUBDEV_G_FMT); - IOCTL_REQUEST(NS_ADJBUFLEV); IOCTL_REQUEST(VIDIOC_DBG_S_REGISTER); IOCTL_REQUEST(NILFS_IOCTL_RESIZE); IOCTL_REQUEST(PHN_GETREG); @@ -1186,9 +1109,7 @@ void list(void) { IOCTL_REQUEST(VIDIOC_ENUMSTD); IOCTL_REQUEST(VHOST_GET_VRING_BASE); IOCTL_REQUEST(VFIO_DEVICE_IOEVENTFD); - IOCTL_REQUEST(ATMARP_SETENTRY); IOCTL_REQUEST(CCISS_REVALIDVOLS); - IOCTL_REQUEST(MGSL_IOCLOOPTXDONE); IOCTL_REQUEST(RTC_VL_READ); IOCTL_REQUEST(ND_IOCTL_ARS_STATUS); IOCTL_REQUEST(RIO_DEV_DEL); @@ -1211,7 +1132,6 @@ void list(void) { IOCTL_REQUEST(TUNGETVNETLE); IOCTL_REQUEST(VIDIOC_ENUM_DV_TIMINGS); IOCTL_REQUEST(BTRFS_IOC_INO_PATHS); - IOCTL_REQUEST(MGSL_IOCGXSYNC); IOCTL_REQUEST(HIDIOCGFIELDINFO); IOCTL_REQUEST(VIDIOC_SUBDEV_G_STD); IOCTL_REQUEST(I2OVALIDATE); @@ -1231,8 +1151,6 @@ void list(void) { IOCTL_REQUEST(PHN_GETREGS); IOCTL_REQUEST(FDSETEMSGTRESH); IOCTL_REQUEST(NILFS_IOCTL_GET_VINFO); - IOCTL_REQUEST(MGSL_IOCWAITEVENT); - IOCTL_REQUEST(CAPI_INSTALLED); IOCTL_REQUEST(EVIOCGMASK); IOCTL_REQUEST(BTRFS_IOC_SUBVOL_GETFLAGS); IOCTL_REQUEST(FSL_HV_IOCTL_PARTITION_GET_STATUS); @@ -1241,7 +1159,6 @@ void list(void) { IOCTL_REQUEST(FW_CDEV_IOC_FLUSH_ISO); IOCTL_REQUEST(VIDIOC_DBG_G_CHIP_INFO); IOCTL_REQUEST(F2FS_IOC_RELEASE_VOLATILE_WRITE); - IOCTL_REQUEST(CAPI_GET_SERIAL); IOCTL_REQUEST(FDSETDRVPRM); IOCTL_REQUEST(IOC_OPAL_SAVE); IOCTL_REQUEST(VIDIOC_G_DV_TIMINGS); @@ -1270,13 +1187,10 @@ void list(void) { IOCTL_REQUEST(VIDIOC_CROPCAP); IOCTL_REQUEST(DFL_FPGA_PORT_GET_INFO); IOCTL_REQUEST(PHN_SET_REGS); - IOCTL_REQUEST(ATMLEC_DATA); - IOCTL_REQUEST(PPPOEIOCDFWD); IOCTL_REQUEST(VIDIOC_S_SELECTION); IOCTL_REQUEST(SNAPSHOT_FREE_SWAP_PAGES); IOCTL_REQUEST(BTRFS_IOC_LOGICAL_INO); IOCTL_REQUEST(VIDIOC_S_CTRL); - IOCTL_REQUEST(ZATM_SETPOOL); IOCTL_REQUEST(MTIOCPOS); IOCTL_REQUEST(PMU_IOC_SLEEP); #if 0 // needs `struct usbdevfs_ctrltransfer32` @@ -1352,7 +1266,6 @@ void list(void) { IOCTL_REQUEST(SCIF_CONNECT); IOCTL_REQUEST(BLKREPORTZONE); IOCTL_REQUEST(AUTOFS_IOC_ASKUMOUNT); - IOCTL_REQUEST(ATM_ADDPARTY); IOCTL_REQUEST(FDSETPRM); IOCTL_REQUEST(ATM_GETSTATZ); IOCTL_REQUEST(ISST_IF_MSR_COMMAND); @@ -1363,7 +1276,6 @@ void list(void) { IOCTL_REQUEST(PCITEST_COPY); IOCTL_REQUEST(IPMICTL_GET_MY_ADDRESS_CMD); IOCTL_REQUEST(CHIOGPICKER); - IOCTL_REQUEST(CAPI_NCCI_OPENCOUNT); IOCTL_REQUEST(CXL_MEM_SEND_COMMAND); IOCTL_REQUEST(PERF_EVENT_IOC_SET_FILTER); IOCTL_REQUEST(IOC_OPAL_REVERT_TPR); @@ -1396,12 +1308,9 @@ void list(void) { IOCTL_REQUEST(DFL_FPGA_PORT_ERR_GET_IRQ_NUM); IOCTL_REQUEST(USBDEVFS_REAPURB32); IOCTL_REQUEST(BTRFS_IOC_TRANS_END); - IOCTL_REQUEST(CAPI_REGISTER); IOCTL_REQUEST(F2FS_IOC_COMPRESS_FILE); IOCTL_REQUEST(USBDEVFS_DISCARDURB); - IOCTL_REQUEST(HE_GET_REG); IOCTL_REQUEST(ATM_SETLOOP); - IOCTL_REQUEST(ATMSIGD_CTRL); IOCTL_REQUEST(CIOC_KERNEL_VERSION); IOCTL_REQUEST(BTRFS_IOC_CLONE_RANGE); IOCTL_REQUEST(SNAPSHOT_UNFREEZE); @@ -1428,7 +1337,6 @@ void list(void) { IOCTL_REQUEST(PPPIOCGFLAGS); IOCTL_REQUEST(NILFS_IOCTL_SET_SUINFO); IOCTL_REQUEST(FW_CDEV_IOC_GET_CYCLE_TIMER2); - IOCTL_REQUEST(ATM_DELLECSADDR); IOCTL_REQUEST(FW_CDEV_IOC_GET_SPEED); IOCTL_REQUEST(PPPIOCGIDLE32); IOCTL_REQUEST(VFIO_DEVICE_RESET); @@ -1479,7 +1387,6 @@ void list(void) { IOCTL_REQUEST(DFL_FPGA_PORT_DMA_UNMAP); IOCTL_REQUEST(I2OLCTGET); IOCTL_REQUEST(FS_IOC_GET_ENCRYPTION_PWSALT); - IOCTL_REQUEST(NS_SETBUFLEV); IOCTL_REQUEST(BLKCLOSEZONE); IOCTL_REQUEST(SONET_GETFRSENSE); IOCTL_REQUEST(UI_SET_EVBIT); @@ -1516,7 +1423,6 @@ void list(void) { IOCTL_REQUEST(USBDEVFS_RESETEP); IOCTL_REQUEST(MEDIA_REQUEST_IOC_QUEUE); IOCTL_REQUEST(USBDEVFS_ALLOC_STREAMS); - IOCTL_REQUEST(MGSL_IOCSXCTRL); IOCTL_REQUEST(MEDIA_IOC_G_TOPOLOGY); IOCTL_REQUEST(PPPIOCUNBRIDGECHAN); IOCTL_REQUEST(F2FS_IOC_COMMIT_ATOMIC_WRITE); @@ -1529,7 +1435,6 @@ void list(void) { IOCTL_REQUEST(UI_SET_PHYS); IOCTL_REQUEST(FDWERRORGET); IOCTL_REQUEST(VIDIOC_SUBDEV_G_EDID); - IOCTL_REQUEST(MGSL_IOCGSTATS); IOCTL_REQUEST(RPROC_SET_SHUTDOWN_ON_RELEASE); IOCTL_REQUEST(SIOCGSTAMP_NEW); IOCTL_REQUEST(RTC_WKALM_RD); @@ -1542,7 +1447,6 @@ void list(void) { IOCTL_REQUEST(VHOST_SET_VRING_BUSYLOOP_TIMEOUT); IOCTL_REQUEST(VIDIOC_SUBDEV_G_SELECTION); IOCTL_REQUEST(BTRFS_IOC_RM_DEV_V2); - IOCTL_REQUEST(MGSL_IOCWAITGPIO); IOCTL_REQUEST(PMU_IOC_CAN_SLEEP); IOCTL_REQUEST(KCOV_ENABLE); IOCTL_REQUEST(BTRFS_IOC_CLONE); @@ -1550,8 +1454,6 @@ void list(void) { IOCTL_REQUEST(FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE); IOCTL_REQUEST(AGPIOC_ALLOCATE); IOCTL_REQUEST(NE_SET_USER_MEMORY_REGION); - IOCTL_REQUEST(MGSL_IOCTXABORT); - IOCTL_REQUEST(MGSL_IOCSGPIO); IOCTL_REQUEST(LIRC_SET_REC_CARRIER); IOCTL_REQUEST(F2FS_IOC_FLUSH_DEVICE); IOCTL_REQUEST(SNAPSHOT_ATOMIC_RESTORE); @@ -1568,8 +1470,6 @@ void list(void) { IOCTL_REQUEST(ATM_GETLINKRATE); IOCTL_REQUEST(RTC_WKALM_SET); IOCTL_REQUEST(VHOST_GET_BACKEND_FEATURES); - IOCTL_REQUEST(ATMARP_ENCAP); - IOCTL_REQUEST(CAPI_GET_FLAGS); IOCTL_REQUEST(IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD); IOCTL_REQUEST(DFL_FPGA_FME_PORT_ASSIGN); IOCTL_REQUEST(NS_GET_OWNER_UID); @@ -1577,7 +1477,6 @@ void list(void) { IOCTL_REQUEST(BTRFS_IOC_WAIT_SYNC); IOCTL_REQUEST(GPIOHANDLE_SET_CONFIG_IOCTL); IOCTL_REQUEST(VHOST_GET_VRING_ENDIAN); - IOCTL_REQUEST(ATM_GETADDR); IOCTL_REQUEST(PHN_GET_REGS); IOCTL_REQUEST(AUTOFS_DEV_IOCTL_REQUESTER); IOCTL_REQUEST(AUTOFS_DEV_IOCTL_EXPIRE); @@ -1597,7 +1496,6 @@ void list(void) { IOCTL_REQUEST(DM_VERSION); IOCTL_REQUEST(CEC_TRANSMIT); IOCTL_REQUEST(FS_IOC_GET_ENCRYPTION_POLICY_EX); - IOCTL_REQUEST(SIOCMKCLIP); IOCTL_REQUEST(IPMI_BMC_IOCTL_CLEAR_SMS_ATN); IOCTL_REQUEST(HIDIOCGVERSION); IOCTL_REQUEST(VIDIOC_S_INPUT); @@ -1609,7 +1507,6 @@ void list(void) { IOCTL_REQUEST(FS_IOC_READ_VERITY_METADATA); IOCTL_REQUEST(ND_IOCTL_SET_CONFIG_DATA); IOCTL_REQUEST(USBDEVFS_GETDRIVER); - IOCTL_REQUEST(IDT77105_GETSTAT); IOCTL_REQUEST(HIDIOCINITREPORT); IOCTL_REQUEST(VFIO_DEVICE_GET_INFO); IOCTL_REQUEST(RIO_CM_CHAN_RECEIVE); @@ -1653,7 +1550,6 @@ void list(void) { IOCTL_REQUEST(IOC_PR_RELEASE); IOCTL_REQUEST(PPCLRIRQ); IOCTL_REQUEST(IPMICTL_SET_MY_CHANNEL_LUN_CMD); - IOCTL_REQUEST(MGSL_IOCSXSYNC); IOCTL_REQUEST(HPET_IE_OFF); IOCTL_REQUEST(IOC_OPAL_ACTIVATE_USR); IOCTL_REQUEST(SONET_SETFRAMING); @@ -1673,7 +1569,6 @@ void list(void) { IOCTL_REQUEST(VIDIOC_S_PRIORITY); IOCTL_REQUEST(SNAPSHOT_FREEZE); IOCTL_REQUEST(VIDIOC_ENUMINPUT); - IOCTL_REQUEST(ZATM_GETPOOLZ); IOCTL_REQUEST(RIO_DISABLE_DOORBELL_RANGE); IOCTL_REQUEST(GPIO_V2_GET_LINEINFO_WATCH_IOCTL); IOCTL_REQUEST(VIDIOC_G_STD); @@ -1685,7 +1580,6 @@ void list(void) { IOCTL_REQUEST(IOCTL_MEI_NOTIFY_SET); IOCTL_REQUEST(BTRFS_IOC_QUOTA_RESCAN_STATUS); IOCTL_REQUEST(F2FS_IOC_GARBAGE_COLLECT); - IOCTL_REQUEST(ATMLEC_CTRL); IOCTL_REQUEST(MATROXFB_GET_AVAILABLE_OUTPUTS); IOCTL_REQUEST(DM_DEV_CREATE); IOCTL_REQUEST(VHOST_VDPA_GET_VRING_NUM); @@ -1696,7 +1590,6 @@ void list(void) { IOCTL_REQUEST(NVME_IOCTL_SUBSYS_RESET); IOCTL_REQUEST(PTP_EXTTS_REQUEST2); IOCTL_REQUEST(PCITEST_BAR); - IOCTL_REQUEST(MGSL_IOCGGPIO); IOCTL_REQUEST(EVIOCSREP); IOCTL_REQUEST(VFIO_DEVICE_GET_IRQ_INFO); IOCTL_REQUEST(HPET_DPI); @@ -1716,7 +1609,6 @@ void list(void) { IOCTL_REQUEST(DM_TABLE_LOAD); IOCTL_REQUEST(F2FS_IOC_START_ATOMIC_WRITE); IOCTL_REQUEST(VIDIOC_G_OUTPUT); - IOCTL_REQUEST(ATM_DROPPARTY); IOCTL_REQUEST(CHIOGELEM); IOCTL_REQUEST(BTRFS_IOC_GET_SUPPORTED_FEATURES); IOCTL_REQUEST(EVIOCSKEYCODE); @@ -1729,7 +1621,6 @@ void list(void) { IOCTL_REQUEST(FW_CDEV_IOC_DEALLOCATE); IOCTL_REQUEST(WDIOC_SETTIMEOUT); IOCTL_REQUEST(IOC_WATCH_QUEUE_SET_FILTER); - IOCTL_REQUEST(CAPI_GET_MANUFACTURER); IOCTL_REQUEST(VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY); IOCTL_REQUEST(ASPEED_P2A_CTRL_IOCTL_SET_WINDOW); IOCTL_REQUEST(VIDIOC_G_EDID); @@ -1750,7 +1641,6 @@ void list(void) { IOCTL_REQUEST(RIO_MAP_OUTBOUND); IOCTL_REQUEST(ATM_SETESI); IOCTL_REQUEST(FW_CDEV_IOC_START_ISO); - IOCTL_REQUEST(ATM_DELADDR); IOCTL_REQUEST(PPFCONTROL); IOCTL_REQUEST(SONYPI_IOCGFAN); IOCTL_REQUEST(RTC_IRQP_SET); @@ -1763,11 +1653,9 @@ void list(void) { IOCTL_REQUEST(VIDIOC_DQBUF); IOCTL_REQUEST(BTRFS_IOC_BALANCE_PROGRESS); IOCTL_REQUEST(BTRFS_IOC_SUBVOL_SETFLAGS); - IOCTL_REQUEST(ATMLEC_MCAST); IOCTL_REQUEST(MMTIMER_GETFREQ); IOCTL_REQUEST(VIDIOC_G_SELECTION); IOCTL_REQUEST(RTC_ALM_SET); - IOCTL_REQUEST(PPPOEIOCSFWD); IOCTL_REQUEST(IPMICTL_GET_MAINTENANCE_MODE_CMD); IOCTL_REQUEST(FS_IOC_ENABLE_VERITY); IOCTL_REQUEST(NILFS_IOCTL_GET_BDESCS); @@ -1802,7 +1690,6 @@ void list(void) { IOCTL_REQUEST(BTRFS_IOC_QUOTA_RESCAN_WAIT); IOCTL_REQUEST(RIO_CM_CHAN_BIND); IOCTL_REQUEST(HIDIOCGRDESC); - IOCTL_REQUEST(MGSL_IOCGIF); IOCTL_REQUEST(VIDIOC_S_OUTPUT); IOCTL_REQUEST(HIDIOCGREPORTINFO); IOCTL_REQUEST(WDIOC_GETBOOTSTATUS); @@ -1833,4 +1720,15 @@ void list(void) { IOCTL_REQUEST(ACRN_IOCTL_RESET_VM); IOCTL_REQUEST(ACRN_IOCTL_DESTROY_IOREQ_CLIENT); IOCTL_REQUEST(ACRN_IOCTL_VM_INTR_MONITOR); + IOCTL_REQUEST(PIDFD_GET_CGROUP_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_IPC_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_MNT_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_NET_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_PID_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_TIME_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_USER_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_UTS_NAMESPACE); + IOCTL_REQUEST(PIDFD_GET_INFO); } diff --git a/gen/ioctl/loongarch-ioctls.txt b/gen/ioctl/loongarch-ioctls.txt deleted file mode 100644 index 75f715ff8..000000000 --- a/gen/ioctl/loongarch-ioctls.txt +++ /dev/null @@ -1,1489 +0,0 @@ -#ifdef __loongarch__ -#define FIONREAD 0x541bul -#define FIONBIO 0x5421ul -#define FIOCLEX 0x5451ul -#define FIONCLEX 0x5450ul -#define FIOASYNC 0x5452ul -#define FIOQSIZE 0x5460ul -#define TCXONC 0x540aul -#define TCFLSH 0x540bul -#define TIOCSCTTY 0x540eul -#define TIOCSPGRP 0x5410ul -#define TIOCOUTQ 0x5411ul -#define TIOCSTI 0x5412ul -#define TIOCSWINSZ 0x5414ul -#define TIOCMGET 0x5415ul -#define TIOCMBIS 0x5416ul -#define TIOCMBIC 0x5417ul -#define TIOCMSET 0x5418ul -#define TIOCSSOFTCAR 0x541aul -#define TIOCLINUX 0x541cul -#define TIOCCONS 0x541dul -#define TIOCSSERIAL 0x541ful -#define TIOCPKT 0x5420ul -#define TIOCNOTTY 0x5422ul -#define TIOCSETD 0x5423ul -#define TIOCSBRK 0x5427ul -#define TIOCCBRK 0x5428ul -#define TIOCSRS485 0x542ful -#define TIOCSPTLCK 0x40045431ul -#define TIOCSIG 0x40045436ul -#define TIOCVHANGUP 0x5437ul -#define TIOCSERCONFIG 0x5453ul -#define TIOCSERGWILD 0x5454ul -#define TIOCSERSWILD 0x5455ul -#define TIOCSLCKTRMIOS 0x5457ul -#define TIOCSERGSTRUCT 0x5458ul -#define TIOCSERGETLSR 0x5459ul -#define TIOCSERGETMULTI 0x545aul -#define TIOCSERSETMULTI 0x545bul -#define TIOCMIWAIT 0x545cul -#define TCGETS 0x5401ul -#define TCGETA 0x5405ul -#define TCSBRK 0x5409ul -#define TCSBRKP 0x5425ul -#define TCSETA 0x5406ul -#define TCSETAF 0x5408ul -#define TCSETAW 0x5407ul -#define TIOCEXCL 0x540cul -#define TIOCNXCL 0x540dul -#define TIOCGDEV 0x80045432ul -#define TIOCGEXCL 0x80045440ul -#define TIOCGICOUNT 0x545dul -#define TIOCGLCKTRMIOS 0x5456ul -#define TIOCGPGRP 0x540ful -#define TIOCGPKT 0x80045438ul -#define TIOCGPTLCK 0x80045439ul -#define TIOCGPTN 0x80045430ul -#define TIOCGPTPEER 0x5441ul -#define TIOCGRS485 0x542eul -#define TIOCGSERIAL 0x541eul -#define TIOCGSID 0x5429ul -#define TIOCGSOFTCAR 0x5419ul -#define TIOCGWINSZ 0x5413ul -#define TCGETS2 0x802c542aul -#define TCGETX 0x5432ul -#define TCSETS 0x5402ul -#define TCSETS2 0x402c542bul -#define TCSETSF 0x5404ul -#define TCSETSF2 0x402c542dul -#define TCSETSW 0x5403ul -#define TCSETSW2 0x402c542cul -#define TCSETX 0x5433ul -#define TCSETXF 0x5434ul -#define TCSETXW 0x5435ul -#define TIOCGETD 0x5424ul -#define MTIOCGET 0x80306d02ul -#define BLKSSZGET 0x1268ul -#define BLKPBSZGET 0x127bul -#define BLKROSET 0x125dul -#define BLKROGET 0x125eul -#define BLKRRPART 0x125ful -#define BLKGETSIZE 0x1260ul -#define BLKFLSBUF 0x1261ul -#define BLKRASET 0x1262ul -#define BLKRAGET 0x1263ul -#define BLKFRASET 0x1264ul -#define BLKFRAGET 0x1265ul -#define BLKSECTSET 0x1266ul -#define BLKSECTGET 0x1267ul -#define BLKPG 0x1269ul -#define BLKBSZGET 0x80081270ul -#define BLKBSZSET 0x40081271ul -#define BLKGETSIZE64 0x80081272ul -#define BLKTRACESETUP 0xc0481273ul -#define BLKTRACESTART 0x1274ul -#define BLKTRACESTOP 0x1275ul -#define BLKTRACETEARDOWN 0x1276ul -#define BLKDISCARD 0x1277ul -#define BLKIOMIN 0x1278ul -#define BLKIOOPT 0x1279ul -#define BLKALIGNOFF 0x127aul -#define BLKDISCARDZEROES 0x127cul -#define BLKSECDISCARD 0x127dul -#define BLKROTATIONAL 0x127eul -#define BLKZEROOUT 0x127ful -#define UFFDIO_REGISTER 0xc020aa00ul -#define UFFDIO_UNREGISTER 0x8010aa01ul -#define UFFDIO_WAKE 0x8010aa02ul -#define UFFDIO_COPY 0xc028aa03ul -#define UFFDIO_ZEROPAGE 0xc020aa04ul -#define UFFDIO_WRITEPROTECT 0xc018aa06ul -#define UFFDIO_API 0xc018aa3ful -#define NS_GET_USERNS 0xb701ul -#define NS_GET_PARENT 0xb702ul -#define NS_GET_NSTYPE 0xb703ul -#define KDGETLED 0x4b31ul -#define KDSETLED 0x4b32ul -#define KDGKBLED 0x4b64ul -#define KDSKBLED 0x4b65ul -#define KDGKBTYPE 0x4b33ul -#define KDADDIO 0x4b34ul -#define KDDELIO 0x4b35ul -#define KDENABIO 0x4b36ul -#define KDDISABIO 0x4b37ul -#define KDSETMODE 0x4b3aul -#define KDGETMODE 0x4b3bul -#define KDMKTONE 0x4b30ul -#define KIOCSOUND 0x4b2ful -#define GIO_CMAP 0x4b70ul -#define PIO_CMAP 0x4b71ul -#define GIO_FONT 0x4b60ul -#define GIO_FONTX 0x4b6bul -#define PIO_FONT 0x4b61ul -#define PIO_FONTX 0x4b6cul -#define PIO_FONTRESET 0x4b6dul -#define GIO_SCRNMAP 0x4b40ul -#define GIO_UNISCRNMAP 0x4b69ul -#define PIO_SCRNMAP 0x4b41ul -#define PIO_UNISCRNMAP 0x4b6aul -#define GIO_UNIMAP 0x4b66ul -#define PIO_UNIMAP 0x4b67ul -#define PIO_UNIMAPCLR 0x4b68ul -#define KDGKBMODE 0x4b44ul -#define KDSKBMODE 0x4b45ul -#define KDGKBMETA 0x4b62ul -#define KDSKBMETA 0x4b63ul -#define KDGKBENT 0x4b46ul -#define KDSKBENT 0x4b47ul -#define KDGKBSENT 0x4b48ul -#define KDSKBSENT 0x4b49ul -#define KDGKBDIACR 0x4b4aul -#define KDGETKEYCODE 0x4b4cul -#define KDSETKEYCODE 0x4b4dul -#define KDSIGACCEPT 0x4b4eul -#define VT_OPENQRY 0x5600ul -#define VT_GETMODE 0x5601ul -#define VT_SETMODE 0x5602ul -#define VT_GETSTATE 0x5603ul -#define VT_RELDISP 0x5605ul -#define VT_ACTIVATE 0x5606ul -#define VT_WAITACTIVE 0x5607ul -#define VT_DISALLOCATE 0x5608ul -#define VT_RESIZE 0x5609ul -#define VT_RESIZEX 0x560aul -#define FIOSETOWN 0x8901ul -#define SIOCSPGRP 0x8902ul -#define FIOGETOWN 0x8903ul -#define SIOCGPGRP 0x8904ul -#define SIOCATMARK 0x8905ul -#define SIOCGSTAMP 0x8906ul -#define TIOCINQ 0x541bul -#define SIOCADDRT 0x890bul -#define SIOCDELRT 0x890cul -#define SIOCGIFNAME 0x8910ul -#define SIOCSIFLINK 0x8911ul -#define SIOCGIFCONF 0x8912ul -#define SIOCGIFFLAGS 0x8913ul -#define SIOCSIFFLAGS 0x8914ul -#define SIOCGIFADDR 0x8915ul -#define SIOCSIFADDR 0x8916ul -#define SIOCGIFDSTADDR 0x8917ul -#define SIOCSIFDSTADDR 0x8918ul -#define SIOCGIFBRDADDR 0x8919ul -#define SIOCSIFBRDADDR 0x891aul -#define SIOCGIFNETMASK 0x891bul -#define SIOCSIFNETMASK 0x891cul -#define SIOCGIFMETRIC 0x891dul -#define SIOCSIFMETRIC 0x891eul -#define SIOCGIFMEM 0x891ful -#define SIOCSIFMEM 0x8920ul -#define SIOCGIFMTU 0x8921ul -#define SIOCSIFMTU 0x8922ul -#define SIOCSIFHWADDR 0x8924ul -#define SIOCGIFENCAP 0x8925ul -#define SIOCSIFENCAP 0x8926ul -#define SIOCGIFHWADDR 0x8927ul -#define SIOCGIFSLAVE 0x8929ul -#define SIOCSIFSLAVE 0x8930ul -#define SIOCADDMULTI 0x8931ul -#define SIOCDELMULTI 0x8932ul -#define SIOCDARP 0x8953ul -#define SIOCGARP 0x8954ul -#define SIOCSARP 0x8955ul -#define SIOCDRARP 0x8960ul -#define SIOCGRARP 0x8961ul -#define SIOCSRARP 0x8962ul -#define SIOCGIFMAP 0x8970ul -#define SIOCSIFMAP 0x8971ul -#define SIOCRTMSG 0x890dul -#define SIOCSIFNAME 0x8923ul -#define SIOCGIFINDEX 0x8933ul -#define SIOGIFINDEX 0x8933ul -#define SIOCSIFPFLAGS 0x8934ul -#define SIOCGIFPFLAGS 0x8935ul -#define SIOCDIFADDR 0x8936ul -#define SIOCSIFHWBROADCAST 0x8937ul -#define SIOCGIFCOUNT 0x8938ul -#define SIOCGIFBR 0x8940ul -#define SIOCSIFBR 0x8941ul -#define SIOCGIFTXQLEN 0x8942ul -#define SIOCSIFTXQLEN 0x8943ul -#define SIOCADDDLCI 0x8980ul -#define SIOCDELDLCI 0x8981ul -#define SIOCDEVPRIVATE 0x89f0ul -#define SIOCPROTOPRIVATE 0x89e0ul -#define FIBMAP 0x1ul -#define FIGETBSZ 0x2ul -#define FIFREEZE 0xc0045877ul -#define FITHAW 0xc0045878ul -#define FITRIM 0xc0185879ul -#define FICLONE 0x40049409ul -#define FICLONERANGE 0x4020940dul -#define FIDEDUPERANGE 0xc0189436ul -#define FS_IOC_GETFLAGS 0x80086601ul -#define FS_IOC_SETFLAGS 0x40086602ul -#define FS_IOC_GETVERSION 0x80087601ul -#define FS_IOC_SETVERSION 0x40087602ul -#define FS_IOC_FIEMAP 0xc020660bul -#define FS_IOC32_GETFLAGS 0x80046601ul -#define FS_IOC32_SETFLAGS 0x40046602ul -#define FS_IOC32_GETVERSION 0x80047601ul -#define FS_IOC32_SETVERSION 0x40047602ul -#define FS_IOC_FSGETXATTR 0x801c581ful -#define FS_IOC_FSSETXATTR 0x401c5820ul -#define FS_IOC_GETFSLABEL 0x81009431ul -#define FS_IOC_SETFSLABEL 0x41009432ul -#define EXT4_IOC_GETVERSION 0x80086603ul -#define EXT4_IOC_SETVERSION 0x40086604ul -#define EXT4_IOC_GETVERSION_OLD 0x80087601ul -#define EXT4_IOC_SETVERSION_OLD 0x40087602ul -#define EXT4_IOC_GETRSVSZ 0x80086605ul -#define EXT4_IOC_SETRSVSZ 0x40086606ul -#define EXT4_IOC_GROUP_EXTEND 0x40086607ul -#define EXT4_IOC_MIGRATE 0x6609ul -#define EXT4_IOC_ALLOC_DA_BLKS 0x660cul -#define EXT4_IOC_RESIZE_FS 0x40086610ul -#define EXT4_IOC_SWAP_BOOT 0x6611ul -#define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul -#define EXT4_IOC_CLEAR_ES_CACHE 0x6628ul -#define EXT4_IOC_GETSTATE 0x40046629ul -#define EXT4_IOC_GET_ES_CACHE 0xc020662aul -#define EXT4_IOC_CHECKPOINT 0x4004662bul -#define EXT4_IOC_SHUTDOWN 0x8004587dul -#define EXT4_IOC32_GETVERSION 0x80046603ul -#define EXT4_IOC32_SETVERSION 0x40046604ul -#define EXT4_IOC32_GETRSVSZ 0x80046605ul -#define EXT4_IOC32_SETRSVSZ 0x40046606ul -#define EXT4_IOC32_GROUP_EXTEND 0x40046607ul -#define EXT4_IOC32_GETVERSION_OLD 0x80047601ul -#define EXT4_IOC32_SETVERSION_OLD 0x40047602ul -#define VIDIOC_SUBDEV_QUERYSTD 0x8008563ful -#define AUTOFS_DEV_IOCTL_CLOSEMOUNT 0xc0189375ul -#define LIRC_SET_SEND_CARRIER 0x40046913ul -#define AUTOFS_IOC_PROTOSUBVER 0x80049367ul -#define PTP_SYS_OFFSET_PRECISE 0xc0403d08ul -#define FSI_SCOM_WRITE 0xc0207302ul -#define ATM_GETCIRANGE 0x4010618aul -#define DMA_BUF_SET_NAME_B 0x40086201ul -#define RIO_CM_EP_GET_LIST_SIZE 0xc0046301ul -#define TUNSETPERSIST 0x400454cbul -#define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul -#define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80306d01ul -#define ENI_SETMULT 0x40106167ul -#define RIO_GET_EVENT_MASK 0x80046d0eul -#define LIRC_GET_MAX_TIMEOUT 0x80046909ul -#define USBDEVFS_CLAIMINTERFACE 0x8004550ful -#define CHIOMOVE 0x40146301ul -#define SONYPI_IOCGBATFLAGS 0x80017607ul -#define BTRFS_IOC_SYNC 0x9408ul -#define VIDIOC_TRY_FMT 0xc0d05640ul -#define LIRC_SET_REC_MODE 0x40046912ul -#define VIDIOC_DQEVENT 0x80885659ul -#define RPMSG_DESTROY_EPT_IOCTL 0xb502ul -#define UVCIOC_CTRL_MAP 0xc0607520ul -#define VHOST_SET_BACKEND_FEATURES 0x4008af25ul -#define VHOST_VSOCK_SET_GUEST_CID 0x4008af60ul -#define UI_SET_KEYBIT 0x40045565ul -#define LIRC_SET_REC_TIMEOUT 0x40046918ul -#define FS_IOC_GET_ENCRYPTION_KEY_STATUS 0xc080661aul -#define BTRFS_IOC_TREE_SEARCH_V2 0xc0709411ul -#define VHOST_SET_VRING_BASE 0x4008af12ul -#define RIO_ENABLE_DOORBELL_RANGE 0x40086d09ul -#define VIDIOC_TRY_EXT_CTRLS 0xc0205649ul -#define LIRC_GET_REC_MODE 0x80046902ul -#define PPGETTIME 0x80107095ul -#define BTRFS_IOC_RM_DEV 0x5000940bul -#define ATM_SETBACKEND 0x400261f2ul -#define FSL_HV_IOCTL_PARTITION_START 0xc010af03ul -#define FBIO_WAITEVENT 0x4688ul -#define SWITCHTEC_IOCTL_PORT_TO_PFF 0xc00c5745ul -#define NVME_IOCTL_IO_CMD 0xc0484e43ul -#define IPMICTL_RECEIVE_MSG_TRUNC 0xc030690bul -#define FDTWADDLE 0x259ul -#define NVME_IOCTL_SUBMIT_IO 0x40304e42ul -#define NILFS_IOCTL_SYNC 0x80086e8aul -#define VIDIOC_SUBDEV_S_DV_TIMINGS 0xc0845657ul -#define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul -#define DM_DEV_STATUS 0xc138fd07ul -#define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc0106161ul -#define UI_SET_PROPBIT 0x4004556eul -#define TUNSETFILTEREBPF 0x800454e1ul -#define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul -#define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul -#define WDIOC_SETOPTIONS 0x80045704ul -#define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x4010618eul -#define FSL_HV_IOCTL_GETPROP 0xc028af07ul -#define FDGETPRM 0x80200204ul -#define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x40106160ul -#define PTP_SYS_OFFSET2 0x43403d0eul -#define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul -#define DMA_BUF_SET_NAME_A 0x40046201ul -#define PTP_PIN_GETFUNC 0xc0603d06ul -#define PTP_SYS_OFFSET_EXTENDED 0xc4c03d09ul -#define DFL_FPGA_PORT_UINT_SET_IRQ 0x4008b648ul -#define RTC_EPOCH_READ 0x8008700dul -#define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul -#define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x40106190ul -#define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul -#define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul -#define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul -#define HIDIOCGCOLLECTIONINDEX 0x40184810ul -#define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul -#define GPIOHANDLE_GET_LINE_VALUES_IOCTL 0xc040b408ul -#define UI_DEV_SETUP 0x405c5503ul -#define ISST_IF_IO_CMD 0x4008fe02ul -#define RIO_MPORT_MAINT_READ_REMOTE 0x80186d07ul -#define VIDIOC_OMAP3ISP_HIST_CFG 0xc03056c4ul -#define BLKGETNRZONES 0x80041285ul -#define VIDIOC_G_MODULATOR 0xc0445636ul -#define VBG_IOCTL_WRITE_CORE_DUMP 0xc01c5613ul -#define USBDEVFS_SETINTERFACE 0x80085504ul -#define PPPIOCGCHAN 0x80047437ul -#define EVIOCGVERSION 0x80044501ul -#define VHOST_NET_SET_BACKEND 0x4008af30ul -#define USBDEVFS_REAPURBNDELAY 0x4008550dul -#define RNDZAPENTCNT 0x5204ul -#define VIDIOC_G_PARM 0xc0cc5615ul -#define TUNGETDEVNETNS 0x54e3ul -#define LIRC_SET_MEASURE_CARRIER_MODE 0x4004691dul -#define VHOST_SET_VRING_ERR 0x4008af22ul -#define VDUSE_VQ_SETUP 0x40208114ul -#define AUTOFS_IOC_SETTIMEOUT 0xc0089364ul -#define VIDIOC_S_FREQUENCY 0x402c5639ul -#define F2FS_IOC_SEC_TRIM_FILE 0x4018f514ul -#define FS_IOC_REMOVE_ENCRYPTION_KEY 0xc0406618ul -#define WDIOC_GETPRETIMEOUT 0x80045709ul -#define USBDEVFS_DROP_PRIVILEGES 0x4004551eul -#define BTRFS_IOC_SNAP_CREATE_V2 0x50009417ul -#define VHOST_VSOCK_SET_RUNNING 0x4004af61ul -#define STP_SET_OPTIONS 0x40082502ul -#define FBIO_RADEON_GET_MIRROR 0x80084003ul -#define IVTVFB_IOC_DMA_FRAME 0x401856c0ul -#define IPMICTL_SEND_COMMAND 0x8028690dul -#define VIDIOC_G_ENC_INDEX 0x8818564cul -#define DFL_FPGA_FME_PORT_PR 0xb680ul -#define CHIOSVOLTAG 0x40306312ul -#define ATM_SETESIF 0x4010618dul -#define FW_CDEV_IOC_SEND_RESPONSE 0x40182304ul -#define PMU_IOC_GET_MODEL 0x80084203ul -#define JSIOCGBTNMAP 0x84006a34ul -#define USBDEVFS_HUB_PORTINFO 0x80805513ul -#define VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS 0xc018560bul -#define FDCLRPRM 0x241ul -#define BTRFS_IOC_SCRUB 0xc400941bul -#define USBDEVFS_DISCONNECT 0x5516ul -#define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful -#define VHOST_VDPA_GET_CONFIG 0x8008af73ul -#define PPPIOCGNPMODE 0xc008744cul -#define FDGETDRVPRM 0x80800211ul -#define TUNSETVNETLE 0x400454dcul -#define PHN_SETREG 0x40087006ul -#define PPPIOCDETACH 0x4004743cul -#define MMTIMER_GETRES 0x80086d01ul -#define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul -#define PPGETFLAGS 0x8004709aul -#define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0104320ul -#define VIDIOC_G_TUNER 0xc054561dul -#define DM_TABLE_STATUS 0xc138fd0cul -#define DM_DEV_ARM_POLL 0xc138fd10ul -#define NE_CREATE_VM 0x8008ae20ul -#define MEDIA_IOC_ENUM_LINKS 0xc0287c02ul -#define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful -#define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul -#define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul -#define SONYPI_IOCGBLUE 0x80017608ul -#define F2FS_IOC_DECOMPRESS_FILE 0xf517ul -#define I2OHTML 0xc0306909ul -#define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x40106133ul -#define I2OPARMSET 0xc0286903ul -#define TEE_IOC_CANCEL 0x8008a404ul -#define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul -#define DFL_FPGA_PORT_RESET 0xb640ul -#define PPPIOCGASYNCMAP 0x80047458ul -#define EVIOCGKEYCODE_V2 0x80284504ul -#define DM_DEV_SET_GEOMETRY 0xc138fd0ful -#define HIDIOCSUSAGE 0x4018480cul -#define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE 0x40182310ul -#define PTP_EXTTS_REQUEST 0x40103d02ul -#define SWITCHTEC_IOCTL_EVENT_CTL 0xc0285743ul -#define WDIOC_SETPRETIMEOUT 0xc0045708ul -#define VHOST_SCSI_CLEAR_ENDPOINT 0x40e8af41ul -#define JSIOCGAXES 0x80016a11ul -#define HIDIOCSFLAG 0x4004480ful -#define PTP_PEROUT_REQUEST2 0x40383d0cul -#define PPWDATA 0x40017086ul -#define PTP_CLOCK_GETCAPS 0x80503d01ul -#define FDGETMAXERRS 0x8014020eul -#define TUNSETQUEUE 0x400454d9ul -#define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul -#define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul -#define ND_IOCTL_ARS_CAP 0xc0204e01ul -#define NBD_SET_BLKSIZE 0xab01ul -#define NBD_SET_TIMEOUT 0xab09ul -#define VHOST_SCSI_GET_ABI_VERSION 0x4004af42ul -#define RIO_UNMAP_INBOUND 0x40086d12ul -#define ATM_QUERYLOOP 0x40106154ul -#define DFL_FPGA_GET_API_VERSION 0xb600ul -#define USBDEVFS_WAIT_FOR_RESUME 0x5523ul -#define FBIO_CURSOR 0xc0684608ul -#define RNDCLEARPOOL 0x5206ul -#define VIDIOC_QUERYSTD 0x8008563ful -#define DMA_BUF_IOCTL_SYNC 0x40086200ul -#define SCIF_RECV 0xc0187307ul -#define PTP_PIN_GETFUNC2 0xc0603d0ful -#define FW_CDEV_IOC_ALLOCATE 0xc0202302ul -#define CEC_ADAP_G_CAPS 0xc04c6100ul -#define VIDIOC_G_FBUF 0x8030560aul -#define PTP_ENABLE_PPS2 0x40043d0dul -#define PCITEST_CLEAR_IRQ 0x5010ul -#define IPMICTL_SET_GETS_EVENTS_CMD 0x80046910ul -#define BTRFS_IOC_DEVICES_READY 0x90009427ul -#define JSIOCGAXMAP 0x80406a32ul -#define FW_CDEV_IOC_GET_CYCLE_TIMER 0x8010230cul -#define FW_CDEV_IOC_SET_ISO_CHANNELS 0x40102317ul -#define RTC_WIE_OFF 0x7010ul -#define PPGETMODE 0x80047098ul -#define VIDIOC_DBG_G_REGISTER 0xc0385650ul -#define PTP_SYS_OFFSET 0x43403d05ul -#define BTRFS_IOC_SPACE_INFO 0xc0109414ul -#define VIDIOC_SUBDEV_ENUM_FRAME_SIZE 0xc040564aul -#define ND_IOCTL_VENDOR 0xc0084e09ul -#define SCIF_VREADFROM 0xc028730cul -#define BTRFS_IOC_TRANS_START 0x9406ul -#define INOTIFY_IOC_SETNEXTWD 0x40044900ul -#define SNAPSHOT_GET_IMAGE_SIZE 0x8008330eul -#define TUNDETACHFILTER 0x401054d6ul -#define ND_IOCTL_CLEAR_ERROR 0xc0204e04ul -#define IOC_PR_CLEAR 0x401070cdul -#define SCIF_READFROM 0xc028730aul -#define PPPIOCGDEBUG 0x80047441ul -#define BLKGETZONESZ 0x80041284ul -#define HIDIOCGUSAGES 0xd01c4813ul -#define SONYPI_IOCGTEMP 0x8001760cul -#define UI_SET_MSCBIT 0x40045568ul -#define APM_IOC_SUSPEND 0x4102ul -#define BTRFS_IOC_TREE_SEARCH 0xd0009411ul -#define RTC_PLL_GET 0x80207011ul -#define RIO_CM_EP_GET_LIST 0xc0046302ul -#define USBDEVFS_DISCSIGNAL 0x8010550eul -#define LIRC_GET_MIN_TIMEOUT 0x80046908ul -#define SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY 0x81985742ul -#define DM_TARGET_MSG 0xc138fd0eul -#define SONYPI_IOCGBAT1REM 0x80027603ul -#define EVIOCSFF 0x40304580ul -#define TUNSETGROUP 0x400454ceul -#define EVIOCGKEYCODE 0x80084504ul -#define KCOV_REMOTE_ENABLE 0x40186366ul -#define ND_IOCTL_GET_CONFIG_SIZE 0xc00c4e04ul -#define FDEJECT 0x25aul -#define TUNSETOFFLOAD 0x400454d0ul -#define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x40106188ul -#define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul -#define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul -#define VHOST_VDPA_GET_STATUS 0x8001af71ul -#define CCISS_PASSTHRU 0xc058420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful -#define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul -#define UI_ABS_SETUP 0x401c5504ul -#define UI_DEV_DESTROY 0x5502ul -#define BTRFS_IOC_QUOTA_CTL 0xc0109428ul -#define RTC_AIE_ON 0x7001ul -#define AUTOFS_IOC_EXPIRE 0x810c9365ul -#define PPPIOCSDEBUG 0x40047440ul -#define GPIO_V2_LINE_SET_VALUES_IOCTL 0xc010b40ful -#define PPPIOCSMRU 0x40047452ul -#define CCISS_DEREGDISK 0x420cul -#define UI_DEV_CREATE 0x5501ul -#define FUSE_DEV_IOC_CLONE 0x8004e500ul -#define BTRFS_IOC_START_SYNC 0x80089418ul -#define NILFS_IOCTL_DELETE_CHECKPOINT 0x40086e81ul -#define SNAPSHOT_AVAIL_SWAP_SIZE 0x80083313ul -#define DM_TABLE_CLEAR 0xc138fd0aul -#define CCISS_GETINTINFO 0x80084202ul -#define PPPIOCSASYNCMAP 0x40047457ul -#define I2OEVTGET 0x8068690bul -#define NVME_IOCTL_RESET 0x4e44ul -#define PPYIELD 0x708dul -#define NVME_IOCTL_IO64_CMD 0xc0504e48ul -#define TUNSETCARRIER 0x400454e2ul -#define DM_DEV_WAIT 0xc138fd08ul -#define RTC_WIE_ON 0x700ful -#define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul -#define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40306d00ul -#define RTC_SET_TIME 0x4024700aul -#define VHOST_RESET_OWNER 0xaf02ul -#define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul -#define AUTOFS_DEV_IOCTL_OPENMOUNT 0xc0189374ul -#define UDF_GETEABLOCK 0x80086c41ul -#define VFIO_IOMMU_MAP_DMA 0x3b71ul -#define VIDIOC_SUBSCRIBE_EVENT 0x4020565aul -#define HIDIOCGFLAG 0x8004480eul -#define HIDIOCGUCODE 0xc018480dul -#define VIDIOC_OMAP3ISP_AF_CFG 0xc04c56c5ul -#define DM_REMOVE_ALL 0xc138fd01ul -#define ASPEED_LPC_CTRL_IOCTL_MAP 0x4010b201ul -#define CCISS_GETFIRMVER 0x80044208ul -#define ND_IOCTL_ARS_START 0xc0204e02ul -#define PPPIOCSMRRU 0x4004743bul -#define CEC_ADAP_S_LOG_ADDRS 0xc05c6104ul -#define RPROC_GET_SHUTDOWN_ON_RELEASE 0x8004b702ul -#define DMA_HEAP_IOCTL_ALLOC 0xc0184800ul -#define PPSETTIME 0x40107096ul -#define RTC_ALM_READ 0x80247008ul -#define VDUSE_SET_API_VERSION 0x40088101ul -#define RIO_MPORT_MAINT_WRITE_REMOTE 0x40186d08ul -#define VIDIOC_SUBDEV_S_CROP 0xc038563cul -#define USBDEVFS_CONNECT 0x5517ul -#define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul -#define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul -#define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x40106187ul -#define NBD_SET_SIZE 0xab02ul -#define UDF_GETVOLIDENT 0x80086c42ul -#define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul -#define FSL_HV_IOCTL_SETPROP 0xc028af08ul -#define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul -#define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul -#define UDF_GETEASIZE 0x80046c40ul -#define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul -#define VHOST_SET_OWNER 0xaf01ul -#define RIO_ALLOC_DMA 0xc0186d13ul -#define RIO_CM_CHAN_ACCEPT 0xc0086307ul -#define I2OHRTGET 0xc0186901ul -#define ATM_SETCIRANGE 0x4010618bul -#define HPET_IE_ON 0x6801ul -#define PERF_EVENT_IOC_ID 0x80082407ul -#define TUNSETSNDBUF 0x400454d4ul -#define PTP_PIN_SETFUNC 0x40603d07ul -#define PPPIOCDISCONN 0x7439ul -#define VIDIOC_QUERYCTRL 0xc0445624ul -#define PPEXCL 0x708ful -#define PCITEST_MSI 0x40045003ul -#define FDWERRORCLR 0x256ul -#define AUTOFS_IOC_FAIL 0x9361ul -#define USBDEVFS_IOCTL 0xc0105512ul -#define VIDIOC_S_STD 0x40085618ul -#define F2FS_IOC_RESIZE_FS 0x4008f510ul -#define SONET_SETDIAG 0xc0046112ul -#define BTRFS_IOC_DEFRAG 0x50009402ul -#define CCISS_GETDRIVVER 0x80044209ul -#define IPMICTL_GET_TIMING_PARMS_CMD 0x80086917ul -#define HPET_IRQFREQ 0x40086806ul -#define ATM_GETESI 0x40106185ul -#define CCISS_GETLUNINFO 0x800c4211ul -#define AUTOFS_DEV_IOCTL_ISMOUNTPOINT 0xc018937eul -#define TEE_IOC_SHM_ALLOC 0xc010a401ul -#define PERF_EVENT_IOC_SET_BPF 0x40042408ul -#define UDMABUF_CREATE_LIST 0x40087543ul -#define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x40106161ul -#define BR2684_SETFILT 0x401c6190ul -#define RNDGETPOOL 0x80085202ul -#define PPS_GETPARAMS 0x800870a1ul -#define IOC_PR_RESERVE 0x401070c9ul -#define VIDIOC_TRY_DECODER_CMD 0xc0485661ul -#define RIO_CM_CHAN_CLOSE 0x40026304ul -#define VIDIOC_DV_TIMINGS_CAP 0xc0905664ul -#define IOCTL_MEI_CONNECT_CLIENT_VTAG 0xc0144804ul -#define PMU_IOC_GET_BACKLIGHT 0x80084201ul -#define USBDEVFS_GET_CAPABILITIES 0x8004551aul -#define SCIF_WRITETO 0xc028730bul -#define UDF_RELOCATE_BLOCKS 0xc0086c43ul -#define FSL_HV_IOCTL_PARTITION_RESTART 0xc008af01ul -#define CCISS_REGNEWD 0x420eul -#define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul -#define VIDIOC_CREATE_BUFS 0xc100565cul -#define CAPI_GET_VERSION 0xc0104307ul -#define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul -#define VFIO_EEH_PE_OP 0x3b79ul -#define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul -#define F2FS_IOC_RELEASE_COMPRESS_BLOCKS 0x8008f512ul -#define NBD_SET_SIZE_BLOCKS 0xab07ul -#define IPMI_BMC_IOCTL_SET_SMS_ATN 0xb100ul -#define ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG 0xc010b301ul -#define VIDIOC_S_AUDOUT 0x40345632ul -#define VIDIOC_S_FMT 0xc0d05605ul -#define PPPIOCATTACH 0x4004743dul -#define VHOST_GET_VRING_BUSYLOOP_TIMEOUT 0x4008af24ul -#define FS_IOC_MEASURE_VERITY 0xc0046686ul -#define CCISS_BIG_PASSTHRU 0xc0604212ul -#define IPMICTL_SET_MY_LUN_CMD 0x80046913ul -#define PCITEST_LEGACY_IRQ 0x5002ul -#define USBDEVFS_SUBMITURB 0x8038550aul -#define AUTOFS_IOC_READY 0x9360ul -#define BTRFS_IOC_SEND 0x40489426ul -#define VIDIOC_G_EXT_CTRLS 0xc0205647ul -#define JSIOCSBTNMAP 0x44006a33ul -#define PPPIOCSFLAGS 0x40047459ul -#define NVRAM_INIT 0x7040ul -#define RFKILL_IOCTL_NOINPUT 0x5201ul -#define BTRFS_IOC_BALANCE 0x5000940cul -#define FS_IOC_GETFSMAP 0xc0c0583bul -#define IPMICTL_GET_MY_CHANNEL_LUN_CMD 0x8004691bul -#define STP_POLICY_ID_GET 0x80102501ul -#define PPSETFLAGS 0x4004709bul -#define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul -#define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul -#define PPPIOCGXASYNCMAP 0x80207450ul -#define VHOST_SET_VRING_CALL 0x4008af21ul -#define LIRC_GET_FEATURES 0x80046900ul -#define GSMIOC_DISABLE_NET 0x4703ul -#define AUTOFS_IOC_CATATONIC 0x9362ul -#define NBD_DO_IT 0xab03ul -#define LIRC_SET_REC_CARRIER_RANGE 0x4004691ful -#define IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD 0x80046919ul -#define EVIOCSCLOCKID 0x400445a0ul -#define USBDEVFS_FREE_STREAMS 0x8008551dul -#define FSI_SCOM_RESET 0x40047303ul -#define PMU_IOC_GRAB_BACKLIGHT 0x80084206ul -#define VIDIOC_SUBDEV_S_FMT 0xc0585605ul -#define FDDEFPRM 0x40200243ul -#define TEE_IOC_INVOKE 0x8010a403ul -#define USBDEVFS_BULK 0xc0185502ul -#define SCIF_VWRITETO 0xc028730dul -#define SONYPI_IOCSBRT 0x40017600ul -#define BTRFS_IOC_FILE_EXTENT_SAME 0xc0189436ul -#define RTC_PIE_ON 0x7005ul -#define BTRFS_IOC_SCAN_DEV 0x50009404ul -#define PPPIOCXFERUNIT 0x744eul -#define WDIOC_GETTIMEOUT 0x80045707ul -#define BTRFS_IOC_SET_RECEIVED_SUBVOL 0xc0c89425ul -#define DFL_FPGA_PORT_ERR_SET_IRQ 0x4008b646ul -#define FBIO_WAITFORVSYNC 0x40044620ul -#define RTC_PIE_OFF 0x7006ul -#define EVIOCGRAB 0x40044590ul -#define PMU_IOC_SET_BACKLIGHT 0x40084202ul -#define EVIOCGREP 0x80084503ul -#define PERF_EVENT_IOC_MODIFY_ATTRIBUTES 0x4008240bul -#define UFFDIO_CONTINUE 0xc020aa07ul -#define VDUSE_GET_API_VERSION 0x80088100ul -#define RTC_RD_TIME 0x80247009ul -#define FDMSGOFF 0x246ul -#define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul -#define PCITEST_SET_IRQTYPE 0x40045008ul -#define VIDIOC_SUBDEV_S_EDID 0xc0285629ul -#define MATROXFB_SET_OUTPUT_MODE 0x40086efaul -#define RIO_DEV_ADD 0x40206d17ul -#define VIDIOC_ENUM_FREQ_BANDS 0xc0405665ul -#define FBIO_RADEON_SET_MIRROR 0x40084004ul -#define PCITEST_GET_IRQTYPE 0x5009ul -#define JSIOCGVERSION 0x80046a01ul -#define SONYPI_IOCSBLUE 0x40017609ul -#define SNAPSHOT_PREF_IMAGE_SIZE 0x3312ul -#define F2FS_IOC_GET_FEATURES 0x8004f50cul -#define SCIF_REG 0xc0287308ul -#define NILFS_IOCTL_CLEAN_SEGMENTS 0x40786e88ul -#define FW_CDEV_IOC_INITIATE_BUS_RESET 0x40042305ul -#define RIO_WAIT_FOR_ASYNC 0x40086d16ul -#define VHOST_SET_VRING_NUM 0x4008af10ul -#define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul -#define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul -#define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul -#define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul -#define PPPIOCGL2TPSTATS 0x80487436ul -#define PERF_EVENT_IOC_PERIOD 0x40082404ul -#define PTP_PIN_SETFUNC2 0x40603d10ul -#define CHIOEXCHANGE 0x401c6302ul -#define NILFS_IOCTL_GET_SUINFO 0x80186e84ul -#define CEC_DQEVENT 0xc0506107ul -#define UI_SET_SWBIT 0x4004556dul -#define VHOST_VDPA_SET_CONFIG 0x4008af74ul -#define TUNSETIFF 0x400454caul -#define CHIOPOSITION 0x400c6303ul -#define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful -#define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul -#define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul -#define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful -#define MATROXFB_GET_OUTPUT_CONNECTION 0x80086ef8ul -#define EVIOCSMASK 0x40104593ul -#define BTRFS_IOC_FORGET_DEV 0x50009405ul -#define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul -#define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul -#define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul -#define PPSETMODE 0x40047080ul -#define VFIO_DEVICE_SET_IRQS 0x3b6eul -#define VIDIOC_PREPARE_BUF 0xc058565dul -#define CEC_ADAP_G_CONNECTOR_INFO 0x8044610aul -#define IOC_OPAL_WRITE_SHADOW_MBR 0x412070eaul -#define VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL 0xc040564bul -#define UDMABUF_CREATE 0x40187542ul -#define SONET_CLRDIAG 0xc0046113ul -#define PHN_SET_REG 0x40087001ul -#define RNDADDTOENTCNT 0x40045201ul -#define VBG_IOCTL_CHECK_BALLOON 0xc0205611ul -#define VIDIOC_OMAP3ISP_STAT_REQ 0xc02856c6ul -#define PPS_FETCH 0xc00870a4ul -#define RTC_AIE_OFF 0x7002ul -#define VFIO_GROUP_SET_CONTAINER 0x3b68ul -#define FW_CDEV_IOC_RECEIVE_PHY_PACKETS 0x40082316ul -#define VFIO_IOMMU_SPAPR_TCE_REMOVE 0x3b78ul -#define VFIO_IOMMU_GET_INFO 0x3b70ul -#define DM_DEV_SUSPEND 0xc138fd06ul -#define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul -#define FW_CDEV_IOC_STOP_ISO 0x4004230bul -#define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul -#define PPPIOCSXASYNCMAP 0x4020744ful -#define CHIOGSTATUS 0x40106308ul -#define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul -#define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul -#define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul -#define VHOST_SET_MEM_TABLE 0x4008af03ul -#define MATROXFB_SET_OUTPUT_CONNECTION 0x40086ef8ul -#define DFL_FPGA_PORT_GET_REGION_INFO 0xb642ul -#define VHOST_GET_FEATURES 0x8008af00ul -#define LIRC_GET_REC_RESOLUTION 0x80046907ul -#define PACKET_CTRL_CMD 0xc0185801ul -#define LIRC_SET_TRANSMITTER_MASK 0x40046917ul -#define BTRFS_IOC_ADD_DEV 0x5000940aul -#define JSIOCGCORR 0x80246a22ul -#define VIDIOC_G_FMT 0xc0d05604ul -#define RTC_EPOCH_SET 0x4008700eul -#define CAPI_GET_PROFILE 0xc0404309ul -#define ATM_GETLOOP 0x40106152ul -#define SCIF_LISTEN 0x40047302ul -#define NBD_CLEAR_QUE 0xab05ul -#define F2FS_IOC_MOVE_RANGE 0xc020f509ul -#define LIRC_GET_LENGTH 0x8004690ful -#define I8K_SET_FAN 0xc0086987ul -#define FDSETMAXERRS 0x4014024cul -#define VIDIOC_SUBDEV_QUERYCAP 0x80405600ul -#define SNAPSHOT_SET_SWAP_AREA 0x400c330dul -#define LIRC_GET_REC_TIMEOUT 0x80046924ul -#define EVIOCRMFF 0x40044581ul -#define GPIO_GET_LINEEVENT_IOCTL 0xc030b404ul -#define PPRDATA 0x80017085ul -#define RIO_MPORT_GET_PROPERTIES 0x80306d04ul -#define TUNSETVNETHDRSZ 0x400454d8ul -#define GPIO_GET_LINEINFO_IOCTL 0xc048b402ul -#define GSMIOC_GETCONF 0x804c4700ul -#define LIRC_GET_SEND_MODE 0x80046901ul -#define PPPIOCSACTIVE 0x40107446ul -#define SIOCGSTAMPNS_NEW 0x80108907ul -#define IPMICTL_RECEIVE_MSG 0xc030690cul -#define LIRC_SET_SEND_DUTY_CYCLE 0x40046915ul -#define UI_END_FF_ERASE 0x400c55cbul -#define SWITCHTEC_IOCTL_FLASH_PART_INFO 0xc0105741ul -#define FW_CDEV_IOC_SEND_PHY_PACKET 0xc0182315ul -#define NBD_SET_FLAGS 0xab0aul -#define VFIO_DEVICE_GET_REGION_INFO 0x3b6cul -#define REISERFS_IOC_UNPACK 0x4008cd01ul -#define FW_CDEV_IOC_REMOVE_DESCRIPTOR 0x40042307ul -#define RIO_SET_EVENT_MASK 0x40046d0dul -#define SNAPSHOT_ALLOC_SWAP_PAGE 0x80083314ul -#define VDUSE_VQ_INJECT_IRQ 0x40048117ul -#define I2OPASSTHRU 0x8010690cul -#define IOC_OPAL_SET_PW 0x422070e0ul -#define FSI_SCOM_READ 0xc0207301ul -#define VHOST_VDPA_GET_DEVICE_ID 0x8004af70ul -#define VIDIOC_QBUF 0xc058560ful -#define VIDIOC_S_TUNER 0x4054561eul -#define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul -#define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul -#define VIDIOC_OMAP3ISP_STAT_EN 0xc00856c7ul -#define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul -#define TEE_IOC_VERSION 0x800ca400ul -#define VIDIOC_LOG_STATUS 0x5646ul -#define IPMICTL_SEND_COMMAND_SETTIME 0x80306915ul -#define VHOST_SET_LOG_FD 0x4004af07ul -#define SCIF_SEND 0xc0187306ul -#define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul -#define VIDIOC_DBG_S_REGISTER 0x4038564ful -#define NILFS_IOCTL_RESIZE 0x40086e8bul -#define PHN_GETREG 0xc0087005ul -#define I2OSWDL 0xc0306905ul -#define VBG_IOCTL_VMMDEV_REQUEST_BIG 0x5603ul -#define JSIOCGBUTTONS 0x80016a12ul -#define VFIO_IOMMU_ENABLE 0x3b73ul -#define DM_DEV_RENAME 0xc138fd05ul -#define MEDIA_IOC_SETUP_LINK 0xc0347c03ul -#define VIDIOC_ENUMOUTPUT 0xc0485630ul -#define STP_POLICY_ID_SET 0xc0102500ul -#define VHOST_VDPA_SET_CONFIG_CALL 0x4004af77ul -#define VIDIOC_SUBDEV_G_CROP 0xc038563bul -#define VIDIOC_S_CROP 0x4014563cul -#define WDIOC_GETTEMP 0x80045703ul -#define IOC_OPAL_ADD_USR_TO_LR 0x411870e4ul -#define UI_SET_LEDBIT 0x40045569ul -#define NBD_SET_SOCK 0xab00ul -#define BTRFS_IOC_SNAP_DESTROY_V2 0x5000943ful -#define HIDIOCGCOLLECTIONINFO 0xc0104811ul -#define I2OSWUL 0xc0306906ul -#define IOCTL_MEI_NOTIFY_GET 0x80044803ul -#define FDFMTTRK 0x400c0248ul -#define MMTIMER_GETBITS 0x6d04ul -#define VIDIOC_ENUMSTD 0xc0485619ul -#define VHOST_GET_VRING_BASE 0xc008af12ul -#define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul -#define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul -#define RTC_VL_READ 0x80047013ul -#define ND_IOCTL_ARS_STATUS 0xc0304e03ul -#define RIO_DEV_DEL 0x40206d18ul -#define VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES 0xc024560dul -#define VIDIOC_SUBDEV_DV_TIMINGS_CAP 0xc0905664ul -#define SONYPI_IOCSFAN 0x4001760bul -#define SPIOCSTYPE 0x40087101ul -#define IPMICTL_REGISTER_FOR_CMD 0x8002690eul -#define I8K_GET_FAN 0xc0086986ul -#define TUNGETVNETBE 0x800454dful -#define AUTOFS_DEV_IOCTL_FAIL 0xc0189377ul -#define UI_END_FF_UPLOAD 0x406855c9ul -#define TOSH_SMM 0xc0187490ul -#define SONYPI_IOCGBAT2REM 0x80027605ul -#define F2FS_IOC_GET_COMPRESS_BLOCKS 0x8008f511ul -#define PPPIOCSNPMODE 0x4008744bul -#define USBDEVFS_CONTROL 0xc0185500ul -#define HIDIOCGUSAGE 0xc018480bul -#define TUNSETTXFILTER 0x400454d1ul -#define TUNGETVNETLE 0x800454ddul -#define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul -#define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul -#define HIDIOCGFIELDINFO 0xc038480aul -#define VIDIOC_SUBDEV_G_STD 0x80085617ul -#define I2OVALIDATE 0x80046908ul -#define VIDIOC_TRY_ENCODER_CMD 0xc028564eul -#define NILFS_IOCTL_GET_CPINFO 0x80186e82ul -#define VIDIOC_G_FREQUENCY 0xc02c5638ul -#define VFAT_IOCTL_READDIR_SHORT 0x82307202ul -#define ND_IOCTL_GET_CONFIG_DATA 0xc00c4e05ul -#define F2FS_IOC_RESERVE_COMPRESS_BLOCKS 0x8008f513ul -#define FDGETDRVSTAT 0x80500212ul -#define SYNC_IOC_MERGE 0xc0303e03ul -#define VIDIOC_S_DV_TIMINGS 0xc0845657ul -#define PPPIOCBRIDGECHAN 0x40047435ul -#define LIRC_SET_SEND_MODE 0x40046911ul -#define RIO_ENABLE_PORTWRITE_RANGE 0x40106d0bul -#define ATM_GETTYPE 0x40106184ul -#define PHN_GETREGS 0xc0287007ul -#define FDSETEMSGTRESH 0x24aul -#define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul -#define EVIOCGMASK 0x80104592ul -#define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul -#define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul -#define MEDIA_IOC_ENUM_ENTITIES 0xc1007c01ul -#define GSMIOC_GETFIRST 0x80044704ul -#define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul -#define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul -#define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul -#define FDSETDRVPRM 0x40800290ul -#define IOC_OPAL_SAVE 0x411870dcul -#define VIDIOC_G_DV_TIMINGS 0xc0845658ul -#define TUNSETIFINDEX 0x400454daul -#define CCISS_SETINTINFO 0x40084203ul -#define CM_IOSDBGLVL 0x400863faul -#define RTC_VL_CLR 0x7014ul -#define VIDIOC_REQBUFS 0xc0145608ul -#define USBDEVFS_REAPURBNDELAY32 0x4004550dul -#define TEE_IOC_SHM_REGISTER 0xc018a409ul -#define USBDEVFS_SETCONFIGURATION 0x80045505ul -#define CCISS_GETNODENAME 0x80104204ul -#define VIDIOC_SUBDEV_S_FRAME_INTERVAL 0xc0305616ul -#define VIDIOC_ENUM_FRAMESIZES 0xc02c564aul -#define VFIO_DEVICE_PCI_HOT_RESET 0x3b71ul -#define FW_CDEV_IOC_SEND_BROADCAST_REQUEST 0x40282312ul -#define LPSETTIMEOUT_NEW 0x4010060ful -#define RIO_CM_MPORT_GET_LIST 0xc004630bul -#define FW_CDEV_IOC_QUEUE_ISO 0xc0182309ul -#define FDRAWCMD 0x258ul -#define SCIF_UNREG 0xc0107309ul -#define PPPIOCGIDLE64 0x8010743ful -#define USBDEVFS_RELEASEINTERFACE 0x80045510ul -#define VIDIOC_CROPCAP 0xc02c563aul -#define DFL_FPGA_PORT_GET_INFO 0xb641ul -#define PHN_SET_REGS 0x40087003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul -#define VIDIOC_S_SELECTION 0xc040565ful -#define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul -#define BTRFS_IOC_LOGICAL_INO 0xc0389424ul -#define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x40106163ul -#define MTIOCPOS 0x80086d03ul -#define PMU_IOC_SLEEP 0x4200ul -#define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul -#define VBG_IOCTL_CHANGE_FILTER_MASK 0xc020560cul -#define NILFS_IOCTL_GET_SUSTAT 0x80306e85ul -#define VIDIOC_QUERYCAP 0x80685600ul -#define HPET_INFO 0x80186803ul -#define VIDIOC_AM437X_CCDC_CFG 0x400856c1ul -#define DM_LIST_DEVICES 0xc138fd02ul -#define TUNSETOWNER 0x400454ccul -#define VBG_IOCTL_CHANGE_GUEST_CAPABILITIES 0xc020560eul -#define RNDADDENTROPY 0x40085203ul -#define USBDEVFS_RESET 0x5514ul -#define BTRFS_IOC_SUBVOL_CREATE 0x5000940eul -#define USBDEVFS_FORBID_SUSPEND 0x5521ul -#define FDGETDRVTYP 0x8010020ful -#define PPWCONTROL 0x40017084ul -#define VIDIOC_ENUM_FRAMEINTERVALS 0xc034564bul -#define KCOV_DISABLE 0x6365ul -#define IOC_OPAL_ACTIVATE_LSP 0x411870dful -#define VHOST_VDPA_GET_IOVA_RANGE 0x8010af78ul -#define PPPIOCSPASS 0x40107447ul -#define RIO_CM_CHAN_CONNECT 0x40086308ul -#define I2OSWDEL 0xc0306907ul -#define FS_IOC_SET_ENCRYPTION_POLICY 0x800c6613ul -#define IOC_OPAL_MBR_DONE 0x411070e9ul -#define PPPIOCSMAXCID 0x40047451ul -#define PPSETPHASE 0x40047094ul -#define VHOST_VDPA_SET_VRING_ENABLE 0x4008af75ul -#define USBDEVFS_GET_SPEED 0x551ful -#define SONET_GETFRAMING 0x80046116ul -#define VIDIOC_QUERYBUF 0xc0585609ul -#define VIDIOC_S_EDID 0xc0285629ul -#define BTRFS_IOC_QGROUP_ASSIGN 0x40189429ul -#define PPS_GETCAP 0x800870a3ul -#define SNAPSHOT_PLATFORM_SUPPORT 0x330ful -#define LIRC_SET_REC_TIMEOUT_REPORTS 0x40046919ul -#define SCIF_GET_NODEIDS 0xc018730eul -#define NBD_DISCONNECT 0xab08ul -#define VIDIOC_SUBDEV_G_FRAME_INTERVAL 0xc0305615ul -#define VFIO_IOMMU_DISABLE 0x3b74ul -#define SNAPSHOT_CREATE_IMAGE 0x40043311ul -#define SNAPSHOT_POWER_OFF 0x3310ul -#define APM_IOC_STANDBY 0x4101ul -#define PPPIOCGUNIT 0x80047456ul -#define AUTOFS_IOC_EXPIRE_MULTI 0x40049366ul -#define SCIF_BIND 0xc0087301ul -#define IOC_WATCH_QUEUE_SET_SIZE 0x5760ul -#define NILFS_IOCTL_CHANGE_CPMODE 0x40106e80ul -#define IOC_OPAL_LOCK_UNLOCK 0x411870ddul -#define F2FS_IOC_SET_PIN_FILE 0x4004f50dul -#define PPPIOCGRASYNCMAP 0x80047455ul -#define MMTIMER_MMAPAVAIL 0x6d06ul -#define I2OPASSTHRU32 0x8008690cul -#define DFL_FPGA_FME_PORT_RELEASE 0x4004b681ul -#define VIDIOC_SUBDEV_QUERY_DV_TIMINGS 0x80845663ul -#define UI_SET_SNDBIT 0x4004556aul -#define VIDIOC_G_AUDOUT 0x80345631ul -#define RTC_PLL_SET 0x40207012ul -#define VIDIOC_ENUMAUDIO 0xc0345641ul -#define AUTOFS_DEV_IOCTL_TIMEOUT 0xc018937aul -#define VBG_IOCTL_DRIVER_VERSION_INFO 0xc02c5600ul -#define VHOST_SCSI_GET_EVENTS_MISSED 0x4004af44ul -#define VHOST_SET_VRING_ADDR 0x4028af11ul -#define VDUSE_CREATE_DEV 0x41508102ul -#define FDFLUSH 0x24bul -#define VBG_IOCTL_WAIT_FOR_EVENTS 0xc020560aul -#define DFL_FPGA_FME_ERR_SET_IRQ 0x4008b684ul -#define F2FS_IOC_GET_PIN_FILE 0x8004f50eul -#define SCIF_CONNECT 0xc0087303ul -#define BLKREPORTZONE 0xc0101282ul -#define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x401061f4ul -#define FDSETPRM 0x40200242ul -#define ATM_GETSTATZ 0x40106151ul -#define ISST_IF_MSR_COMMAND 0xc008fe04ul -#define BTRFS_IOC_GET_SUBVOL_INFO 0x81f8943cul -#define VIDIOC_UNSUBSCRIBE_EVENT 0x4020565bul -#define SEV_ISSUE_CMD 0xc0105300ul -#define GPIOHANDLE_SET_LINE_VALUES_IOCTL 0xc040b409ul -#define PCITEST_COPY 0x40085006ul -#define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul -#define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul -#define CXL_MEM_SEND_COMMAND 0xc030ce02ul -#define PERF_EVENT_IOC_SET_FILTER 0x40082406ul -#define IOC_OPAL_REVERT_TPR 0x410870e2ul -#define CHIOGVPARAMS 0x80706313ul -#define PTP_PEROUT_REQUEST 0x40383d03ul -#define FSI_SCOM_CHECK 0x80047300ul -#define RTC_IRQP_READ 0x8008700bul -#define RIO_MPORT_MAINT_READ_LOCAL 0x80186d05ul -#define HIDIOCGRDESCSIZE 0x80044801ul -#define UI_GET_VERSION 0x8004552dul -#define NILFS_IOCTL_GET_CPSTAT 0x80186e83ul -#define CCISS_GETBUSTYPES 0x80044207ul -#define VFIO_IOMMU_SPAPR_TCE_CREATE 0x3b77ul -#define VIDIOC_EXPBUF 0xc0405610ul -#define UI_SET_RELBIT 0x40045566ul -#define VFIO_SET_IOMMU 0x3b66ul -#define VIDIOC_S_MODULATOR 0x40445637ul -#define TUNGETFILTER 0x801054dbul -#define MEYEIOC_SYNC 0xc00476c3ul -#define CCISS_SETNODENAME 0x40104205ul -#define FBIO_GETCONTROL2 0x80084689ul -#define TUNSETDEBUG 0x400454c9ul -#define DM_DEV_REMOVE 0xc138fd04ul -#define HIDIOCSUSAGES 0x501c4814ul -#define FS_IOC_ADD_ENCRYPTION_KEY 0xc0506617ul -#define FBIOGET_VBLANK 0x80204612ul -#define ATM_GETSTAT 0x40106150ul -#define VIDIOC_G_JPEGCOMP 0x808c563dul -#define TUNATTACHFILTER 0x401054d5ul -#define UI_SET_ABSBIT 0x40045567ul -#define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul -#define USBDEVFS_REAPURB32 0x4004550cul -#define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul -#define F2FS_IOC_COMPRESS_FILE 0xf518ul -#define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x40106160ul -#define ATM_SETLOOP 0x40106153ul -#define ATMSIGD_CTRL 0x61f0ul -#define CIOC_KERNEL_VERSION 0xc008630aul -#define BTRFS_IOC_CLONE_RANGE 0x4020940dul -#define SNAPSHOT_UNFREEZE 0x3302ul -#define F2FS_IOC_START_VOLATILE_WRITE 0xf503ul -#define PMU_IOC_HAS_ADB 0x80084204ul -#define I2OGETIOPS 0x80206900ul -#define VIDIOC_S_FBUF 0x4030560bul -#define PPRCONTROL 0x80017083ul -#define CHIOSPICKER 0x40046305ul -#define VFIO_IOMMU_SPAPR_REGISTER_MEMORY 0x3b75ul -#define TUNGETSNDBUF 0x800454d3ul -#define GSMIOC_SETCONF 0x404c4701ul -#define IOC_PR_PREEMPT 0x401870cbul -#define KCOV_INIT_TRACE 0x80086301ul -#define SONYPI_IOCGBAT1CAP 0x80027602ul -#define SWITCHTEC_IOCTL_FLASH_INFO 0x80105740ul -#define MTIOCTOP 0x40086d01ul -#define VHOST_VDPA_SET_STATUS 0x4001af72ul -#define VHOST_SCSI_SET_EVENTS_MISSED 0x4004af43ul -#define VFIO_IOMMU_DIRTY_PAGES 0x3b75ul -#define BTRFS_IOC_SCRUB_PROGRESS 0xc400941dul -#define PPPIOCGMRU 0x80047453ul -#define BTRFS_IOC_DEV_REPLACE 0xca289435ul -#define PPPIOCGFLAGS 0x8004745aul -#define NILFS_IOCTL_SET_SUINFO 0x40186e8dul -#define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x4010618ful -#define FW_CDEV_IOC_GET_SPEED 0x2311ul -#define PPPIOCGIDLE32 0x8008743ful -#define VFIO_DEVICE_RESET 0x3b6ful -#define GPIO_GET_LINEINFO_UNWATCH_IOCTL 0xc004b40cul -#define WDIOC_GETSTATUS 0x80045701ul -#define BTRFS_IOC_SET_FEATURES 0x40309439ul -#define IOCTL_MEI_CONNECT_CLIENT 0xc0104801ul -#define VIDIOC_OMAP3ISP_AEWB_CFG 0xc02056c3ul -#define PCITEST_READ 0x40085005ul -#define VFIO_GROUP_GET_STATUS 0x3b67ul -#define MATROXFB_GET_ALL_OUTPUTS 0x80086efbul -#define USBDEVFS_CLEAR_HALT 0x80045515ul -#define VIDIOC_DECODER_CMD 0xc0485660ul -#define VIDIOC_G_AUDIO 0x80345621ul -#define CCISS_RESCANDISK 0x4210ul -#define RIO_DISABLE_PORTWRITE_RANGE 0x40106d0cul -#define IOC_OPAL_SECURE_ERASE_LR 0x411070e7ul -#define USBDEVFS_REAPURB 0x4008550cul -#define DFL_FPGA_CHECK_EXTENSION 0xb601ul -#define AUTOFS_IOC_PROTOVER 0x80049363ul -#define FSL_HV_IOCTL_MEMCPY 0xc028af05ul -#define BTRFS_IOC_GET_FEATURES 0x80189439ul -#define PCITEST_MSIX 0x40045007ul -#define BTRFS_IOC_DEFRAG_RANGE 0x40309410ul -#define UI_BEGIN_FF_ERASE 0xc00c55caul -#define DM_GET_TARGET_VERSION 0xc138fd11ul -#define PPPIOCGIDLE 0x8010743ful -#define NVRAM_SETCKS 0x7041ul -#define WDIOC_GETSUPPORT 0x80285700ul -#define GSMIOC_ENABLE_NET 0x40344702ul -#define GPIO_GET_CHIPINFO_IOCTL 0x8044b401ul -#define NE_ADD_VCPU 0xc004ae21ul -#define EVIOCSKEYCODE_V2 0x40284504ul -#define PTP_SYS_OFFSET_EXTENDED2 0xc4c03d12ul -#define SCIF_FENCE_WAIT 0xc0047310ul -#define RIO_TRANSFER 0xc0186d15ul -#define FSL_HV_IOCTL_DOORBELL 0xc008af06ul -#define RIO_MPORT_MAINT_WRITE_LOCAL 0x40186d06ul -#define I2OEVTREG 0x400c690aul -#define I2OPARMGET 0xc0286904ul -#define EVIOCGID 0x80084502ul -#define BTRFS_IOC_QGROUP_CREATE 0x4010942aul -#define AUTOFS_DEV_IOCTL_SETPIPEFD 0xc0189378ul -#define VIDIOC_S_PARM 0xc0cc5616ul -#define TUNSETSTEERINGEBPF 0x800454e0ul -#define ATM_GETNAMES 0x40106183ul -#define VIDIOC_QUERYMENU 0xc02c5625ul -#define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul -#define I2OLCTGET 0xc0186902ul -#define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x40106162ul -#define BLKCLOSEZONE 0x40101287ul -#define SONET_GETFRSENSE 0x80066117ul -#define UI_SET_EVBIT 0x40045564ul -#define DM_LIST_VERSIONS 0xc138fd0dul -#define HIDIOCGSTRING 0x81044804ul -#define PPPIOCATTCHAN 0x40047438ul -#define VDUSE_DEV_SET_CONFIG 0x40088112ul -#define TUNGETFEATURES 0x800454cful -#define VFIO_GROUP_UNSET_CONTAINER 0x3b69ul -#define IPMICTL_SET_MY_ADDRESS_CMD 0x80046911ul -#define CCISS_REGNEWDISK 0x4004420dul -#define VIDIOC_QUERY_DV_TIMINGS 0x80845663ul -#define PHN_SETREGS 0x40287008ul -#define FAT_IOCTL_GET_ATTRIBUTES 0x80047210ul -#define FSL_MC_SEND_MC_COMMAND 0xc04052e0ul -#define TUNGETIFF 0x800454d2ul -#define PTP_CLOCK_GETCAPS2 0x80503d0aul -#define BTRFS_IOC_RESIZE 0x50009403ul -#define VHOST_SET_VRING_ENDIAN 0x4008af13ul -#define PPS_KC_BIND 0x400870a5ul -#define F2FS_IOC_WRITE_CHECKPOINT 0xf507ul -#define UI_SET_FFBIT 0x4004556bul -#define IPMICTL_GET_MY_LUN_CMD 0x80046914ul -#define CEC_ADAP_G_PHYS_ADDR 0x80026101ul -#define CEC_G_MODE 0x80046108ul -#define USBDEVFS_RESETEP 0x80045503ul -#define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul -#define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul -#define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul -#define PPPIOCUNBRIDGECHAN 0x7434ul -#define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul -#define ISST_IF_GET_PLATFORM_INFO 0x8008fe00ul -#define SCIF_FENCE_MARK 0xc010730ful -#define USBDEVFS_RELEASE_PORT 0x80045519ul -#define VFIO_CHECK_EXTENSION 0x3b65ul -#define BTRFS_IOC_QGROUP_LIMIT 0x8030942bul -#define FAT_IOCTL_GET_VOLUME_ID 0x80047213ul -#define UI_SET_PHYS 0x4008556cul -#define FDWERRORGET 0x80280217ul -#define VIDIOC_SUBDEV_G_EDID 0xc0285628ul -#define MGSL_IOCGSTATS 0x6d07ul -#define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul -#define SIOCGSTAMP_NEW 0x80108906ul -#define RTC_WKALM_RD 0x80287010ul -#define PHN_GET_REG 0xc0087000ul -#define DELL_WMI_SMBIOS_CMD 0xc0345700ul -#define PHN_NOT_OH 0x7004ul -#define PPGETMODES 0x80047097ul -#define CHIOGPARAMS 0x80146306ul -#define VFIO_DEVICE_GET_GFX_DMABUF 0x3b73ul -#define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul -#define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul -#define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul -#define PMU_IOC_CAN_SLEEP 0x80084205ul -#define KCOV_ENABLE 0x6364ul -#define BTRFS_IOC_CLONE 0x40049409ul -#define F2FS_IOC_DEFRAGMENT 0xc010f508ul -#define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul -#define AGPIOC_ALLOCATE 0xc0084106ul -#define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul -#define LIRC_SET_REC_CARRIER 0x40046914ul -#define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul -#define SNAPSHOT_ATOMIC_RESTORE 0x3304ul -#define RTC_UIE_OFF 0x7004ul -#define BT_BMC_IOCTL_SMS_ATN 0xb100ul -#define NVME_IOCTL_ID 0x4e40ul -#define NE_START_ENCLAVE 0xc010ae24ul -#define VIDIOC_STREAMON 0x40045612ul -#define FDPOLLDRVSTAT 0x80500213ul -#define AUTOFS_DEV_IOCTL_READY 0xc0189376ul -#define VIDIOC_ENUMAUDOUT 0xc0345642ul -#define VIDIOC_SUBDEV_S_STD 0x40085618ul -#define WDIOC_GETTIMELEFT 0x8004570aul -#define ATM_GETLINKRATE 0x40106181ul -#define RTC_WKALM_SET 0x4028700ful -#define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul -#define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul -#define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul -#define NS_GET_OWNER_UID 0xb704ul -#define VIDIOC_OVERLAY 0x4004560eul -#define BTRFS_IOC_WAIT_SYNC 0x40089416ul -#define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul -#define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x40106186ul -#define PHN_GET_REGS 0xc0087002ul -#define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul -#define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul -#define SNAPSHOT_S2RAM 0x330bul -#define JSIOCSAXMAP 0x40406a31ul -#define F2FS_IOC_SET_COMPRESS_OPTION 0x4002f516ul -#define VBG_IOCTL_HGCM_DISCONNECT 0xc01c5605ul -#define SCIF_FENCE_SIGNAL 0xc0287311ul -#define VFIO_DEVICE_GET_PCI_HOT_RESET_INFO 0x3b70ul -#define VIDIOC_SUBDEV_ENUM_MBUS_CODE 0xc0305602ul -#define MMTIMER_GETOFFSET 0x6d00ul -#define RIO_CM_CHAN_LISTEN 0x40026306ul -#define ATM_SETSC 0x400461f1ul -#define F2FS_IOC_SHUTDOWN 0x8004587dul -#define NVME_IOCTL_RESCAN 0x4e46ul -#define BLKOPENZONE 0x40101286ul -#define DM_VERSION 0xc138fd00ul -#define CEC_TRANSMIT 0xc0386105ul -#define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul -#define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul -#define HIDIOCGVERSION 0x80044801ul -#define VIDIOC_S_INPUT 0xc0045627ul -#define VIDIOC_G_CROP 0xc014563bul -#define LIRC_SET_WIDEBAND_RECEIVER 0x40046923ul -#define EVIOCGEFFECTS 0x80044584ul -#define UVCIOC_CTRL_QUERY 0xc0107521ul -#define IOC_OPAL_GENERIC_TABLE_RW 0x413870ebul -#define FS_IOC_READ_VERITY_METADATA 0xc0286687ul -#define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul -#define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x40106132ul -#define HIDIOCINITREPORT 0x4805ul -#define VFIO_DEVICE_GET_INFO 0x3b6bul -#define RIO_CM_CHAN_RECEIVE 0xc010630aul -#define RNDGETENTCNT 0x80045200ul -#define PPPIOCNEWUNIT 0xc004743eul -#define BTRFS_IOC_INO_LOOKUP 0xd0009412ul -#define FDRESET 0x254ul -#define IOC_PR_REGISTER 0x401870c8ul -#define HIDIOCSREPORT 0x400c4808ul -#define TEE_IOC_OPEN_SESSION 0x8010a402ul -#define TEE_IOC_SUPPL_RECV 0x8010a406ul -#define BTRFS_IOC_BALANCE_CTL 0x40049421ul -#define GPIO_GET_LINEINFO_WATCH_IOCTL 0xc048b40bul -#define HIDIOCGRAWINFO 0x80084803ul -#define PPPIOCSCOMPRESS 0x4010744dul -#define USBDEVFS_CONNECTINFO 0x40085511ul -#define BLKRESETZONE 0x40101283ul -#define CHIOINITELEM 0x6311ul -#define NILFS_IOCTL_SET_ALLOC_RANGE 0x40106e8cul -#define AUTOFS_DEV_IOCTL_CATATONIC 0xc0189379ul -#define RIO_MPORT_MAINT_HDID_SET 0x40026d01ul -#define PPGETPHASE 0x80047099ul -#define USBDEVFS_DISCONNECT_CLAIM 0x8108551bul -#define FDMSGON 0x245ul -#define VIDIOC_G_SLICED_VBI_CAP 0xc0745645ul -#define BTRFS_IOC_BALANCE_V2 0xc4009420ul -#define MEDIA_REQUEST_IOC_REINIT 0x7c81ul -#define IOC_OPAL_ERASE_LR 0x411070e6ul -#define FDFMTBEG 0x247ul -#define RNDRESEEDCRNG 0x5207ul -#define ISST_IF_GET_PHY_ID 0xc008fe01ul -#define TUNSETNOCSUM 0x400454c8ul -#define SONET_GETSTAT 0x80246110ul -#define TFD_IOC_SET_TICKS 0x40085400ul -#define PPDATADIR 0x40047090ul -#define IOC_OPAL_ENABLE_DISABLE_MBR 0x411070e5ul -#define GPIO_V2_GET_LINE_IOCTL 0xc250b407ul -#define RIO_CM_CHAN_SEND 0x40106309ul -#define PPWCTLONIRQ 0x40017092ul -#define SONYPI_IOCGBRT 0x80017600ul -#define IOC_PR_RELEASE 0x401070caul -#define PPCLRIRQ 0x80047093ul -#define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul -#define HPET_IE_OFF 0x6802ul -#define IOC_OPAL_ACTIVATE_USR 0x411070e1ul -#define SONET_SETFRAMING 0x40046115ul -#define PERF_EVENT_IOC_PAUSE_OUTPUT 0x40042409ul -#define BTRFS_IOC_LOGICAL_INO_V2 0xc038943bul -#define VBG_IOCTL_HGCM_CONNECT 0xc09c5604ul -#define BLKFINISHZONE 0x40101288ul -#define EVIOCREVOKE 0x40044591ul -#define VFIO_DEVICE_FEATURE 0x3b75ul -#define CCISS_GETPCIINFO 0x80084201ul -#define ISST_IF_MBOX_COMMAND 0xc008fe03ul -#define SCIF_ACCEPTREQ 0xc0107304ul -#define PERF_EVENT_IOC_QUERY_BPF 0xc008240aul -#define VIDIOC_STREAMOFF 0x40045613ul -#define VDUSE_DESTROY_DEV 0x41008103ul -#define FDGETFDCSTAT 0x80280215ul -#define CM_IOCGATR 0xc0086301ul -#define VIDIOC_S_PRIORITY 0x40045644ul -#define SNAPSHOT_FREEZE 0x3301ul -#define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x40106162ul -#define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul -#define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul -#define VIDIOC_G_STD 0x80085617ul -#define USBDEVFS_ALLOW_SUSPEND 0x5522ul -#define SONET_GETSTATZ 0x80246111ul -#define SCIF_ACCEPTREG 0xc0087305ul -#define VIDIOC_ENCODER_CMD 0xc028564dul -#define PPPIOCSRASYNCMAP 0x40047454ul -#define IOCTL_MEI_NOTIFY_SET 0x40044802ul -#define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul -#define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul -#define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80086ef9ul -#define DM_DEV_CREATE 0xc138fd03ul -#define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul -#define VIDIOC_G_CTRL 0xc008561bul -#define NBD_CLEAR_SOCK 0xab04ul -#define VFIO_DEVICE_QUERY_GFX_PLANE 0x3b72ul -#define WDIOC_KEEPALIVE 0x80045705ul -#define NVME_IOCTL_SUBSYS_RESET 0x4e45ul -#define PTP_EXTTS_REQUEST2 0x40103d0bul -#define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul -#define EVIOCSREP 0x40084503ul -#define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul -#define HPET_DPI 0x6805ul -#define VDUSE_VQ_SETUP_KICKFD 0x40088116ul -#define ND_IOCTL_CALL 0xc0404e0aul -#define HIDIOCGDEVINFO 0x801c4803ul -#define DM_TABLE_DEPS 0xc138fd0bul -#define BTRFS_IOC_DEV_INFO 0xd000941eul -#define VDUSE_IOTLB_GET_FD 0xc0208110ul -#define FW_CDEV_IOC_GET_INFO 0xc0282300ul -#define VIDIOC_G_PRIORITY 0x80045643ul -#define ATM_NEWBACKENDIF 0x400261f3ul -#define VIDIOC_S_EXT_CTRLS 0xc0205648ul -#define VIDIOC_SUBDEV_ENUM_DV_TIMINGS 0xc0945662ul -#define VIDIOC_OMAP3ISP_CCDC_CFG 0xc03856c1ul -#define VIDIOC_S_HW_FREQ_SEEK 0x40305652ul -#define DM_TABLE_LOAD 0xc138fd09ul -#define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul -#define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul -#define CHIOGELEM 0x406c6310ul -#define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul -#define EVIOCSKEYCODE 0x40084504ul -#define NE_GET_IMAGE_LOAD_INFO 0xc010ae22ul -#define TUNSETLINK 0x400454cdul -#define FW_CDEV_IOC_ADD_DESCRIPTOR 0xc0182306ul -#define BTRFS_IOC_SCRUB_CANCEL 0x941cul -#define PPS_SETPARAMS 0x400870a2ul -#define IOC_OPAL_LR_SETUP 0x412870e3ul -#define FW_CDEV_IOC_DEALLOCATE 0x40042303ul -#define WDIOC_SETTIMEOUT 0xc0045706ul -#define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul -#define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul -#define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul -#define VIDIOC_G_EDID 0xc0285628ul -#define F2FS_IOC_GARBAGE_COLLECT_RANGE 0x4018f50bul -#define RIO_MAP_INBOUND 0xc0286d11ul -#define IOC_OPAL_TAKE_OWNERSHIP 0x410870deul -#define USBDEVFS_CLAIM_PORT 0x80045518ul -#define VIDIOC_S_AUDIO 0x40345622ul -#define FS_IOC_GET_ENCRYPTION_NONCE 0x8010661bul -#define FW_CDEV_IOC_SEND_STREAM_PACKET 0x40282313ul -#define BTRFS_IOC_SNAP_DESTROY 0x5000940ful -#define SNAPSHOT_FREE 0x3305ul -#define I8K_GET_SPEED 0xc0086985ul -#define HIDIOCGREPORT 0x400c4807ul -#define HPET_EPI 0x6804ul -#define JSIOCSCORR 0x40246a21ul -#define IOC_PR_PREEMPT_ABORT 0x401870ccul -#define RIO_MAP_OUTBOUND 0xc0286d0ful -#define ATM_SETESI 0x4010618cul -#define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x40106189ul -#define PPFCONTROL 0x4002708eul -#define SONYPI_IOCGFAN 0x8001760aul -#define RTC_IRQP_SET 0x4008700cul -#define PCITEST_WRITE 0x40085004ul -#define PPCLAIM 0x708bul -#define VIDIOC_S_JPEGCOMP 0x408c563eul -#define IPMICTL_UNREGISTER_FOR_CMD 0x8002690ful -#define VHOST_SET_FEATURES 0x4008af00ul -#define TOSHIBA_ACPI_SCI 0xc0187491ul -#define VIDIOC_DQBUF 0xc0585611ul -#define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul -#define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul -#define MMTIMER_GETFREQ 0x80086d02ul -#define VIDIOC_G_SELECTION 0xc040565eul -#define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4008b100ul -#define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul -#define FS_IOC_ENABLE_VERITY 0x40806685ul -#define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul -#define FDFMTEND 0x249ul -#define DMA_BUF_SET_NAME 0x40086201ul -#define UI_BEGIN_FF_UPLOAD 0xc06855c8ul -#define RTC_UIE_ON 0x7003ul -#define PPRELEASE 0x708cul -#define VFIO_IOMMU_UNMAP_DMA 0x3b72ul -#define VIDIOC_OMAP3ISP_PRV_CFG 0xc07056c2ul -#define GPIO_GET_LINEHANDLE_IOCTL 0xc16cb403ul -#define VFAT_IOCTL_READDIR_BOTH 0x82307201ul -#define NVME_IOCTL_ADMIN_CMD 0xc0484e41ul -#define VHOST_SET_VRING_KICK 0x4008af20ul -#define BTRFS_IOC_SUBVOL_CREATE_V2 0x50009418ul -#define BTRFS_IOC_SNAP_CREATE 0x50009401ul -#define SONYPI_IOCGBAT2CAP 0x80027604ul -#define PPNEGOT 0x40047091ul -#define NBD_PRINT_DEBUG 0xab06ul -#define BTRFS_IOC_INO_LOOKUP_USER 0xd000943eul -#define BTRFS_IOC_GET_SUBVOL_ROOTREF 0xd000943dul -#define FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS 0xc0406619ul -#define BTRFS_IOC_FS_INFO 0x8400941ful -#define VIDIOC_ENUM_FMT 0xc0405602ul -#define VIDIOC_G_INPUT 0x80045626ul -#define VTPM_PROXY_IOC_NEW_DEV 0xc014a100ul -#define DFL_FPGA_FME_ERR_GET_IRQ_NUM 0x8004b683ul -#define ND_IOCTL_DIMM_FLAGS 0xc0084e03ul -#define BTRFS_IOC_QUOTA_RESCAN 0x4040942cul -#define MMTIMER_GETCOUNTER 0x80086d09ul -#define MATROXFB_GET_OUTPUT_MODE 0xc0086efaul -#define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul -#define RIO_CM_CHAN_BIND 0x40086305ul -#define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul -#define VIDIOC_S_OUTPUT 0xc004562ful -#define HIDIOCGREPORTINFO 0xc00c4809ul -#define WDIOC_GETBOOTSTATUS 0x80045702ul -#define VDUSE_VQ_GET_INFO 0xc0308115ul -#define ACRN_IOCTL_ASSIGN_PCIDEV 0x4024a255ul -#define BLKGETDISKSEQ 0x80081280ul -#define ACRN_IOCTL_PM_GET_CPU_STATE 0xc008a260ul -#define ACRN_IOCTL_DESTROY_VM 0xa211ul -#define ACRN_IOCTL_SET_PTDEV_INTR 0x4014a253ul -#define ACRN_IOCTL_CREATE_IOREQ_CLIENT 0xa232ul -#define ACRN_IOCTL_IRQFD 0x4018a271ul -#define ACRN_IOCTL_CREATE_VM 0xc030a210ul -#define ACRN_IOCTL_INJECT_MSI 0x4010a223ul -#define ACRN_IOCTL_ATTACH_IOREQ_CLIENT 0xa233ul -#define ACRN_IOCTL_RESET_PTDEV_INTR 0x4014a254ul -#define ACRN_IOCTL_NOTIFY_REQUEST_FINISH 0x4008a231ul -#define ACRN_IOCTL_SET_IRQLINE 0x4008a225ul -#define ACRN_IOCTL_START_VM 0xa212ul -#define ACRN_IOCTL_SET_VCPU_REGS 0x4128a216ul -#define ACRN_IOCTL_SET_MEMSEG 0x4020a241ul -#define ACRN_IOCTL_PAUSE_VM 0xa213ul -#define ACRN_IOCTL_CLEAR_VM_IOREQ 0xa235ul -#define ACRN_IOCTL_UNSET_MEMSEG 0x4020a242ul -#define ACRN_IOCTL_IOEVENTFD 0x4020a270ul -#define ACRN_IOCTL_DEASSIGN_PCIDEV 0x4024a256ul -#define ACRN_IOCTL_RESET_VM 0xa215ul -#define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul -#define ACRN_IOCTL_VM_INTR_MONITOR 0x4008a224ul -#endif diff --git a/gen/ioctl/riscv32-ioctls.txt b/gen/ioctl/riscv32-ioctls.txt deleted file mode 100644 index 786bd9fbf..000000000 --- a/gen/ioctl/riscv32-ioctls.txt +++ /dev/null @@ -1,1502 +0,0 @@ -#if defined(__riscv) && __riscv_xlen == 32 -#define FIONREAD 0x541bul -#define FIONBIO 0x5421ul -#define FIOCLEX 0x5451ul -#define FIONCLEX 0x5450ul -#define FIOASYNC 0x5452ul -#define FIOQSIZE 0x5460ul -#define TCXONC 0x540aul -#define TCFLSH 0x540bul -#define TIOCSCTTY 0x540eul -#define TIOCSPGRP 0x5410ul -#define TIOCOUTQ 0x5411ul -#define TIOCSTI 0x5412ul -#define TIOCSWINSZ 0x5414ul -#define TIOCMGET 0x5415ul -#define TIOCMBIS 0x5416ul -#define TIOCMBIC 0x5417ul -#define TIOCMSET 0x5418ul -#define TIOCSSOFTCAR 0x541aul -#define TIOCLINUX 0x541cul -#define TIOCCONS 0x541dul -#define TIOCSSERIAL 0x541ful -#define TIOCPKT 0x5420ul -#define TIOCNOTTY 0x5422ul -#define TIOCSETD 0x5423ul -#define TIOCSBRK 0x5427ul -#define TIOCCBRK 0x5428ul -#define TIOCSRS485 0x542ful -#define TIOCSPTLCK 0x40045431ul -#define TIOCSIG 0x40045436ul -#define TIOCVHANGUP 0x5437ul -#define TIOCSERCONFIG 0x5453ul -#define TIOCSERGWILD 0x5454ul -#define TIOCSERSWILD 0x5455ul -#define TIOCSLCKTRMIOS 0x5457ul -#define TIOCSERGSTRUCT 0x5458ul -#define TIOCSERGETLSR 0x5459ul -#define TIOCSERGETMULTI 0x545aul -#define TIOCSERSETMULTI 0x545bul -#define TIOCMIWAIT 0x545cul -#define TCGETS 0x5401ul -#define TCGETA 0x5405ul -#define TCSBRK 0x5409ul -#define TCSBRKP 0x5425ul -#define TCSETA 0x5406ul -#define TCSETAF 0x5408ul -#define TCSETAW 0x5407ul -#define TIOCEXCL 0x540cul -#define TIOCNXCL 0x540dul -#define TIOCGDEV 0x80045432ul -#define TIOCGEXCL 0x80045440ul -#define TIOCGICOUNT 0x545dul -#define TIOCGLCKTRMIOS 0x5456ul -#define TIOCGPGRP 0x540ful -#define TIOCGPKT 0x80045438ul -#define TIOCGPTLCK 0x80045439ul -#define TIOCGPTN 0x80045430ul -#define TIOCGPTPEER 0x5441ul -#define TIOCGRS485 0x542eul -#define TIOCGSERIAL 0x541eul -#define TIOCGSID 0x5429ul -#define TIOCGSOFTCAR 0x5419ul -#define TIOCGWINSZ 0x5413ul -#define TCGETS2 0x802c542aul -#define TCGETX 0x5432ul -#define TCSETS 0x5402ul -#define TCSETS2 0x402c542bul -#define TCSETSF 0x5404ul -#define TCSETSF2 0x402c542dul -#define TCSETSW 0x5403ul -#define TCSETSW2 0x402c542cul -#define TCSETX 0x5433ul -#define TCSETXF 0x5434ul -#define TCSETXW 0x5435ul -#define TIOCGETD 0x5424ul -#define MTIOCGET 0x801c6d02ul -#define BLKSSZGET 0x1268ul -#define BLKPBSZGET 0x127bul -#define BLKROSET 0x125dul -#define BLKROGET 0x125eul -#define BLKRRPART 0x125ful -#define BLKGETSIZE 0x1260ul -#define BLKFLSBUF 0x1261ul -#define BLKRASET 0x1262ul -#define BLKRAGET 0x1263ul -#define BLKFRASET 0x1264ul -#define BLKFRAGET 0x1265ul -#define BLKSECTSET 0x1266ul -#define BLKSECTGET 0x1267ul -#define BLKPG 0x1269ul -#define BLKBSZGET 0x80041270ul -#define BLKBSZSET 0x40041271ul -#define BLKGETSIZE64 0x80041272ul -#define BLKTRACESETUP 0xc0481273ul -#define BLKTRACESTART 0x1274ul -#define BLKTRACESTOP 0x1275ul -#define BLKTRACETEARDOWN 0x1276ul -#define BLKDISCARD 0x1277ul -#define BLKIOMIN 0x1278ul -#define BLKIOOPT 0x1279ul -#define BLKALIGNOFF 0x127aul -#define BLKDISCARDZEROES 0x127cul -#define BLKSECDISCARD 0x127dul -#define BLKROTATIONAL 0x127eul -#define BLKZEROOUT 0x127ful -#define FIEMAP_MAX_OFFSET 0xfffffffful -#define FIEMAP_FLAG_SYNC 0x1ul -#define FIEMAP_FLAG_XATTR 0x2ul -#define FIEMAP_FLAG_CACHE 0x4ul -#define FIEMAP_FLAGS_COMPAT 0x3ul -#define FIEMAP_EXTENT_LAST 0x1ul -#define FIEMAP_EXTENT_UNKNOWN 0x2ul -#define FIEMAP_EXTENT_DELALLOC 0x4ul -#define FIEMAP_EXTENT_ENCODED 0x8ul -#define FIEMAP_EXTENT_DATA_ENCRYPTED 0x80ul -#define FIEMAP_EXTENT_NOT_ALIGNED 0x100ul -#define FIEMAP_EXTENT_DATA_INLINE 0x200ul -#define FIEMAP_EXTENT_DATA_TAIL 0x400ul -#define FIEMAP_EXTENT_UNWRITTEN 0x800ul -#define FIEMAP_EXTENT_MERGED 0x1000ul -#define FIEMAP_EXTENT_SHARED 0x2000ul -#define UFFDIO_REGISTER 0xc020aa00ul -#define UFFDIO_UNREGISTER 0x8010aa01ul -#define UFFDIO_WAKE 0x8010aa02ul -#define UFFDIO_COPY 0xc028aa03ul -#define UFFDIO_ZEROPAGE 0xc020aa04ul -#define UFFDIO_WRITEPROTECT 0xc018aa06ul -#define UFFDIO_API 0xc018aa3ful -#define NS_GET_USERNS 0xb701ul -#define NS_GET_PARENT 0xb702ul -#define NS_GET_NSTYPE 0xb703ul -#define KDGETLED 0x4b31ul -#define KDSETLED 0x4b32ul -#define KDGKBLED 0x4b64ul -#define KDSKBLED 0x4b65ul -#define KDGKBTYPE 0x4b33ul -#define KDADDIO 0x4b34ul -#define KDDELIO 0x4b35ul -#define KDENABIO 0x4b36ul -#define KDDISABIO 0x4b37ul -#define KDSETMODE 0x4b3aul -#define KDGETMODE 0x4b3bul -#define KDMKTONE 0x4b30ul -#define KIOCSOUND 0x4b2ful -#define GIO_CMAP 0x4b70ul -#define PIO_CMAP 0x4b71ul -#define GIO_FONT 0x4b60ul -#define GIO_FONTX 0x4b6bul -#define PIO_FONT 0x4b61ul -#define PIO_FONTX 0x4b6cul -#define PIO_FONTRESET 0x4b6dul -#define GIO_SCRNMAP 0x4b40ul -#define GIO_UNISCRNMAP 0x4b69ul -#define PIO_SCRNMAP 0x4b41ul -#define PIO_UNISCRNMAP 0x4b6aul -#define GIO_UNIMAP 0x4b66ul -#define PIO_UNIMAP 0x4b67ul -#define PIO_UNIMAPCLR 0x4b68ul -#define KDGKBMODE 0x4b44ul -#define KDSKBMODE 0x4b45ul -#define KDGKBMETA 0x4b62ul -#define KDSKBMETA 0x4b63ul -#define KDGKBENT 0x4b46ul -#define KDSKBENT 0x4b47ul -#define KDGKBSENT 0x4b48ul -#define KDSKBSENT 0x4b49ul -#define KDGKBDIACR 0x4b4aul -#define KDGETKEYCODE 0x4b4cul -#define KDSETKEYCODE 0x4b4dul -#define KDSIGACCEPT 0x4b4eul -#define VT_OPENQRY 0x5600ul -#define VT_GETMODE 0x5601ul -#define VT_SETMODE 0x5602ul -#define VT_GETSTATE 0x5603ul -#define VT_RELDISP 0x5605ul -#define VT_ACTIVATE 0x5606ul -#define VT_WAITACTIVE 0x5607ul -#define VT_DISALLOCATE 0x5608ul -#define VT_RESIZE 0x5609ul -#define VT_RESIZEX 0x560aul -#define FIOSETOWN 0x8901ul -#define SIOCSPGRP 0x8902ul -#define FIOGETOWN 0x8903ul -#define SIOCGPGRP 0x8904ul -#define SIOCATMARK 0x8905ul -#define SIOCGSTAMP 0x8906ul -#define TIOCINQ 0x541bul -#define SIOCADDRT 0x890bul -#define SIOCDELRT 0x890cul -#define SIOCGIFNAME 0x8910ul -#define SIOCSIFLINK 0x8911ul -#define SIOCGIFCONF 0x8912ul -#define SIOCGIFFLAGS 0x8913ul -#define SIOCSIFFLAGS 0x8914ul -#define SIOCGIFADDR 0x8915ul -#define SIOCSIFADDR 0x8916ul -#define SIOCGIFDSTADDR 0x8917ul -#define SIOCSIFDSTADDR 0x8918ul -#define SIOCGIFBRDADDR 0x8919ul -#define SIOCSIFBRDADDR 0x891aul -#define SIOCGIFNETMASK 0x891bul -#define SIOCSIFNETMASK 0x891cul -#define SIOCGIFMETRIC 0x891dul -#define SIOCSIFMETRIC 0x891eul -#define SIOCGIFMEM 0x891ful -#define SIOCSIFMEM 0x8920ul -#define SIOCGIFMTU 0x8921ul -#define SIOCSIFMTU 0x8922ul -#define SIOCSIFHWADDR 0x8924ul -#define SIOCGIFENCAP 0x8925ul -#define SIOCSIFENCAP 0x8926ul -#define SIOCGIFHWADDR 0x8927ul -#define SIOCGIFSLAVE 0x8929ul -#define SIOCSIFSLAVE 0x8930ul -#define SIOCADDMULTI 0x8931ul -#define SIOCDELMULTI 0x8932ul -#define SIOCDARP 0x8953ul -#define SIOCGARP 0x8954ul -#define SIOCSARP 0x8955ul -#define SIOCDRARP 0x8960ul -#define SIOCGRARP 0x8961ul -#define SIOCSRARP 0x8962ul -#define SIOCGIFMAP 0x8970ul -#define SIOCSIFMAP 0x8971ul -#define SIOCRTMSG 0x890dul -#define SIOCSIFNAME 0x8923ul -#define SIOCGIFINDEX 0x8933ul -#define SIOGIFINDEX 0x8933ul -#define SIOCSIFPFLAGS 0x8934ul -#define SIOCGIFPFLAGS 0x8935ul -#define SIOCDIFADDR 0x8936ul -#define SIOCSIFHWBROADCAST 0x8937ul -#define SIOCGIFCOUNT 0x8938ul -#define SIOCGIFBR 0x8940ul -#define SIOCSIFBR 0x8941ul -#define SIOCGIFTXQLEN 0x8942ul -#define SIOCSIFTXQLEN 0x8943ul -#define SIOCADDDLCI 0x8980ul -#define SIOCDELDLCI 0x8981ul -#define SIOCDEVPRIVATE 0x89f0ul -#define SIOCPROTOPRIVATE 0x89e0ul -#define FIBMAP 0x1ul -#define FIGETBSZ 0x2ul -#define FIFREEZE 0xc0045877ul -#define FITHAW 0xc0045878ul -#define FITRIM 0xc0185879ul -#define FICLONE 0x40049409ul -#define FICLONERANGE 0x4020940dul -#define FIDEDUPERANGE 0xc0189436ul -#define FS_IOC_GETFLAGS 0x80046601ul -#define FS_IOC_SETFLAGS 0x40046602ul -#define FS_IOC_GETVERSION 0x80047601ul -#define FS_IOC_SETVERSION 0x40047602ul -#define FS_IOC_FIEMAP 0xc020660bul -#define FS_IOC32_GETFLAGS 0x80046601ul -#define FS_IOC32_SETFLAGS 0x40046602ul -#define FS_IOC32_GETVERSION 0x80047601ul -#define FS_IOC32_SETVERSION 0x40047602ul -#define FS_IOC_FSGETXATTR 0x801c581ful -#define FS_IOC_FSSETXATTR 0x401c5820ul -#define FS_IOC_GETFSLABEL 0x81009431ul -#define FS_IOC_SETFSLABEL 0x41009432ul -#define EXT4_IOC_GETVERSION 0x80046603ul -#define EXT4_IOC_SETVERSION 0x40046604ul -#define EXT4_IOC_GETVERSION_OLD 0x80047601ul -#define EXT4_IOC_SETVERSION_OLD 0x40047602ul -#define EXT4_IOC_GETRSVSZ 0x80046605ul -#define EXT4_IOC_SETRSVSZ 0x40046606ul -#define EXT4_IOC_GROUP_EXTEND 0x40046607ul -#define EXT4_IOC_MIGRATE 0x6609ul -#define EXT4_IOC_ALLOC_DA_BLKS 0x660cul -#define EXT4_IOC_RESIZE_FS 0x40086610ul -#define EXT4_IOC_SWAP_BOOT 0x6611ul -#define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul -#define EXT4_IOC_CLEAR_ES_CACHE 0x6628ul -#define EXT4_IOC_GETSTATE 0x40046629ul -#define EXT4_IOC_GET_ES_CACHE 0xc020662aul -#define EXT4_IOC_CHECKPOINT 0x4004662bul -#define EXT4_IOC_SHUTDOWN 0x8004587dul -#define EXT4_IOC32_GETVERSION 0x80046603ul -#define EXT4_IOC32_SETVERSION 0x40046604ul -#define EXT4_IOC32_GETRSVSZ 0x80046605ul -#define EXT4_IOC32_SETRSVSZ 0x40046606ul -#define EXT4_IOC32_GROUP_EXTEND 0x40046607ul -#define EXT4_IOC32_GETVERSION_OLD 0x80047601ul -#define EXT4_IOC32_SETVERSION_OLD 0x40047602ul -#define VIDIOC_SUBDEV_QUERYSTD 0x8008563ful -#define AUTOFS_DEV_IOCTL_CLOSEMOUNT 0xc0189375ul -#define LIRC_SET_SEND_CARRIER 0x40046913ul -#define AUTOFS_IOC_PROTOSUBVER 0x80049367ul -#define PTP_SYS_OFFSET_PRECISE 0xc0403d08ul -#define FSI_SCOM_WRITE 0xc0207302ul -#define ATM_GETCIRANGE 0x400c618aul -#define DMA_BUF_SET_NAME_B 0x40086201ul -#define RIO_CM_EP_GET_LIST_SIZE 0xc0046301ul -#define TUNSETPERSIST 0x400454cbul -#define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul -#define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80206d01ul -#define ENI_SETMULT 0x400c6167ul -#define RIO_GET_EVENT_MASK 0x80046d0eul -#define LIRC_GET_MAX_TIMEOUT 0x80046909ul -#define USBDEVFS_CLAIMINTERFACE 0x8004550ful -#define CHIOMOVE 0x40146301ul -#define SONYPI_IOCGBATFLAGS 0x80017607ul -#define BTRFS_IOC_SYNC 0x9408ul -#define VIDIOC_TRY_FMT 0xc0cc5640ul -#define LIRC_SET_REC_MODE 0x40046912ul -#define VIDIOC_DQEVENT 0x80805659ul -#define RPMSG_DESTROY_EPT_IOCTL 0xb502ul -#define UVCIOC_CTRL_MAP 0xc0587520ul -#define VHOST_SET_BACKEND_FEATURES 0x4008af25ul -#define VHOST_VSOCK_SET_GUEST_CID 0x4008af60ul -#define UI_SET_KEYBIT 0x40045565ul -#define LIRC_SET_REC_TIMEOUT 0x40046918ul -#define FS_IOC_GET_ENCRYPTION_KEY_STATUS 0xc080661aul -#define BTRFS_IOC_TREE_SEARCH_V2 0xc0709411ul -#define VHOST_SET_VRING_BASE 0x4008af12ul -#define RIO_ENABLE_DOORBELL_RANGE 0x40086d09ul -#define VIDIOC_TRY_EXT_CTRLS 0xc0185649ul -#define LIRC_GET_REC_MODE 0x80046902ul -#define PPGETTIME 0x80087095ul -#define BTRFS_IOC_RM_DEV 0x5000940bul -#define ATM_SETBACKEND 0x400261f2ul -#define FSL_HV_IOCTL_PARTITION_START 0xc010af03ul -#define FBIO_WAITEVENT 0x4688ul -#define SWITCHTEC_IOCTL_PORT_TO_PFF 0xc00c5745ul -#define NVME_IOCTL_IO_CMD 0xc0484e43ul -#define IPMICTL_RECEIVE_MSG_TRUNC 0xc018690bul -#define FDTWADDLE 0x259ul -#define NVME_IOCTL_SUBMIT_IO 0x40304e42ul -#define NILFS_IOCTL_SYNC 0x80086e8aul -#define VIDIOC_SUBDEV_S_DV_TIMINGS 0xc0845657ul -#define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul -#define DM_DEV_STATUS 0xc138fd07ul -#define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc00c6161ul -#define UI_SET_PROPBIT 0x4004556eul -#define TUNSETFILTEREBPF 0x800454e1ul -#define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul -#define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul -#define WDIOC_SETOPTIONS 0x80045704ul -#define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x400c618eul -#define FSL_HV_IOCTL_GETPROP 0xc028af07ul -#define FDGETPRM 0x801c0204ul -#define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x400c6160ul -#define PTP_SYS_OFFSET2 0x43403d0eul -#define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul -#define DMA_BUF_SET_NAME_A 0x40046201ul -#define PTP_PIN_GETFUNC 0xc0603d06ul -#define PTP_SYS_OFFSET_EXTENDED 0xc4c03d09ul -#define DFL_FPGA_PORT_UINT_SET_IRQ 0x4008b648ul -#define RTC_EPOCH_READ 0x8004700dul -#define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul -#define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x400c6190ul -#define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul -#define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul -#define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul -#define HIDIOCGCOLLECTIONINDEX 0x40184810ul -#define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul -#define GPIOHANDLE_GET_LINE_VALUES_IOCTL 0xc040b408ul -#define UI_DEV_SETUP 0x405c5503ul -#define ISST_IF_IO_CMD 0x4004fe02ul -#define RIO_MPORT_MAINT_READ_REMOTE 0x80186d07ul -#define VIDIOC_OMAP3ISP_HIST_CFG 0xc03056c4ul -#define BLKGETNRZONES 0x80041285ul -#define VIDIOC_G_MODULATOR 0xc0445636ul -#define VBG_IOCTL_WRITE_CORE_DUMP 0xc01c5613ul -#define USBDEVFS_SETINTERFACE 0x80085504ul -#define PPPIOCGCHAN 0x80047437ul -#define EVIOCGVERSION 0x80044501ul -#define VHOST_NET_SET_BACKEND 0x4008af30ul -#define USBDEVFS_REAPURBNDELAY 0x4004550dul -#define RNDZAPENTCNT 0x5204ul -#define VIDIOC_G_PARM 0xc0cc5615ul -#define TUNGETDEVNETNS 0x54e3ul -#define LIRC_SET_MEASURE_CARRIER_MODE 0x4004691dul -#define VHOST_SET_VRING_ERR 0x4008af22ul -#define VDUSE_VQ_SETUP 0x40208114ul -#define AUTOFS_IOC_SETTIMEOUT 0xc0049364ul -#define VIDIOC_S_FREQUENCY 0x402c5639ul -#define F2FS_IOC_SEC_TRIM_FILE 0x4018f514ul -#define FS_IOC_REMOVE_ENCRYPTION_KEY 0xc0406618ul -#define WDIOC_GETPRETIMEOUT 0x80045709ul -#define USBDEVFS_DROP_PRIVILEGES 0x4004551eul -#define BTRFS_IOC_SNAP_CREATE_V2 0x50009417ul -#define VHOST_VSOCK_SET_RUNNING 0x4004af61ul -#define STP_SET_OPTIONS 0x40082502ul -#define FBIO_RADEON_GET_MIRROR 0x80044003ul -#define IVTVFB_IOC_DMA_FRAME 0x400c56c0ul -#define IPMICTL_SEND_COMMAND 0x8014690dul -#define VIDIOC_G_ENC_INDEX 0x8818564cul -#define DFL_FPGA_FME_PORT_PR 0xb680ul -#define CHIOSVOLTAG 0x40306312ul -#define ATM_SETESIF 0x400c618dul -#define FW_CDEV_IOC_SEND_RESPONSE 0x40182304ul -#define PMU_IOC_GET_MODEL 0x80044203ul -#define JSIOCGBTNMAP 0x84006a34ul -#define USBDEVFS_HUB_PORTINFO 0x80805513ul -#define VBG_IOCTL_INTERRUPT_ALL_WAIT_FOR_EVENTS 0xc018560bul -#define FDCLRPRM 0x241ul -#define BTRFS_IOC_SCRUB 0xc400941bul -#define USBDEVFS_DISCONNECT 0x5516ul -#define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful -#define VHOST_VDPA_GET_CONFIG 0x8008af73ul -#define PPPIOCGNPMODE 0xc008744cul -#define FDGETDRVPRM 0x80580211ul -#define TUNSETVNETLE 0x400454dcul -#define PHN_SETREG 0x40087006ul -#define PPPIOCDETACH 0x4004743cul -#define MMTIMER_GETRES 0x80046d01ul -#define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul -#define PPGETFLAGS 0x8004709aul -#define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul -#define VIDIOC_G_TUNER 0xc054561dul -#define DM_TABLE_STATUS 0xc138fd0cul -#define DM_DEV_ARM_POLL 0xc138fd10ul -#define NE_CREATE_VM 0x8008ae20ul -#define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul -#define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful -#define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul -#define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul -#define SONYPI_IOCGBLUE 0x80017608ul -#define F2FS_IOC_DECOMPRESS_FILE 0xf517ul -#define I2OHTML 0xc01c6909ul -#define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x400c6133ul -#define I2OPARMSET 0xc0186903ul -#define TEE_IOC_CANCEL 0x8008a404ul -#define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul -#define DFL_FPGA_PORT_RESET 0xb640ul -#define PPPIOCGASYNCMAP 0x80047458ul -#define EVIOCGKEYCODE_V2 0x80284504ul -#define DM_DEV_SET_GEOMETRY 0xc138fd0ful -#define HIDIOCSUSAGE 0x4018480cul -#define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE_ONCE 0x40182310ul -#define PTP_EXTTS_REQUEST 0x40103d02ul -#define SWITCHTEC_IOCTL_EVENT_CTL 0xc0285743ul -#define WDIOC_SETPRETIMEOUT 0xc0045708ul -#define VHOST_SCSI_CLEAR_ENDPOINT 0x40e8af41ul -#define JSIOCGAXES 0x80016a11ul -#define HIDIOCSFLAG 0x4004480ful -#define PTP_PEROUT_REQUEST2 0x40383d0cul -#define PPWDATA 0x40017086ul -#define PTP_CLOCK_GETCAPS 0x80503d01ul -#define FDGETMAXERRS 0x8014020eul -#define TUNSETQUEUE 0x400454d9ul -#define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul -#define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul -#define ND_IOCTL_ARS_CAP 0xc0204e01ul -#define NBD_SET_BLKSIZE 0xab01ul -#define NBD_SET_TIMEOUT 0xab09ul -#define VHOST_SCSI_GET_ABI_VERSION 0x4004af42ul -#define RIO_UNMAP_INBOUND 0x40086d12ul -#define ATM_QUERYLOOP 0x400c6154ul -#define DFL_FPGA_GET_API_VERSION 0xb600ul -#define USBDEVFS_WAIT_FOR_RESUME 0x5523ul -#define FBIO_CURSOR 0xc0484608ul -#define RNDCLEARPOOL 0x5206ul -#define VIDIOC_QUERYSTD 0x8008563ful -#define DMA_BUF_IOCTL_SYNC 0x40086200ul -#define SCIF_RECV 0xc0187307ul -#define PTP_PIN_GETFUNC2 0xc0603d0ful -#define FW_CDEV_IOC_ALLOCATE 0xc0202302ul -#define CEC_ADAP_G_CAPS 0xc04c6100ul -#define VIDIOC_G_FBUF 0x802c560aul -#define PTP_ENABLE_PPS2 0x40043d0dul -#define PCITEST_CLEAR_IRQ 0x5010ul -#define IPMICTL_SET_GETS_EVENTS_CMD 0x80046910ul -#define BTRFS_IOC_DEVICES_READY 0x90009427ul -#define JSIOCGAXMAP 0x80406a32ul -#define FW_CDEV_IOC_GET_CYCLE_TIMER 0x8010230cul -#define FW_CDEV_IOC_SET_ISO_CHANNELS 0x40102317ul -#define RTC_WIE_OFF 0x7010ul -#define PPGETMODE 0x80047098ul -#define VIDIOC_DBG_G_REGISTER 0xc0385650ul -#define PTP_SYS_OFFSET 0x43403d05ul -#define BTRFS_IOC_SPACE_INFO 0xc0109414ul -#define VIDIOC_SUBDEV_ENUM_FRAME_SIZE 0xc040564aul -#define ND_IOCTL_VENDOR 0xc0084e09ul -#define SCIF_VREADFROM 0xc028730cul -#define BTRFS_IOC_TRANS_START 0x9406ul -#define INOTIFY_IOC_SETNEXTWD 0x40044900ul -#define SNAPSHOT_GET_IMAGE_SIZE 0x8008330eul -#define TUNDETACHFILTER 0x400854d6ul -#define ND_IOCTL_CLEAR_ERROR 0xc0204e04ul -#define IOC_PR_CLEAR 0x401070cdul -#define SCIF_READFROM 0xc028730aul -#define PPPIOCGDEBUG 0x80047441ul -#define BLKGETZONESZ 0x80041284ul -#define HIDIOCGUSAGES 0xd01c4813ul -#define SONYPI_IOCGTEMP 0x8001760cul -#define UI_SET_MSCBIT 0x40045568ul -#define APM_IOC_SUSPEND 0x4102ul -#define BTRFS_IOC_TREE_SEARCH 0xd0009411ul -#define RTC_PLL_GET 0x801c7011ul -#define RIO_CM_EP_GET_LIST 0xc0046302ul -#define USBDEVFS_DISCSIGNAL 0x8008550eul -#define LIRC_GET_MIN_TIMEOUT 0x80046908ul -#define SWITCHTEC_IOCTL_EVENT_SUMMARY_LEGACY 0x81985742ul -#define DM_TARGET_MSG 0xc138fd0eul -#define SONYPI_IOCGBAT1REM 0x80027603ul -#define EVIOCSFF 0x402c4580ul -#define TUNSETGROUP 0x400454ceul -#define EVIOCGKEYCODE 0x80084504ul -#define KCOV_REMOTE_ENABLE 0x40186366ul -#define ND_IOCTL_GET_CONFIG_SIZE 0xc00c4e04ul -#define FDEJECT 0x25aul -#define TUNSETOFFLOAD 0x400454d0ul -#define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x400c6188ul -#define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul -#define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul -#define VHOST_VDPA_GET_STATUS 0x8001af71ul -#define CCISS_PASSTHRU 0xc054420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful -#define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul -#define UI_ABS_SETUP 0x401c5504ul -#define UI_DEV_DESTROY 0x5502ul -#define BTRFS_IOC_QUOTA_CTL 0xc0109428ul -#define RTC_AIE_ON 0x7001ul -#define AUTOFS_IOC_EXPIRE 0x810c9365ul -#define PPPIOCSDEBUG 0x40047440ul -#define GPIO_V2_LINE_SET_VALUES_IOCTL 0xc010b40ful -#define PPPIOCSMRU 0x40047452ul -#define CCISS_DEREGDISK 0x420cul -#define UI_DEV_CREATE 0x5501ul -#define FUSE_DEV_IOC_CLONE 0x8004e500ul -#define BTRFS_IOC_START_SYNC 0x80089418ul -#define NILFS_IOCTL_DELETE_CHECKPOINT 0x40086e81ul -#define SNAPSHOT_AVAIL_SWAP_SIZE 0x80083313ul -#define DM_TABLE_CLEAR 0xc138fd0aul -#define CCISS_GETINTINFO 0x80084202ul -#define PPPIOCSASYNCMAP 0x40047457ul -#define I2OEVTGET 0x8068690bul -#define NVME_IOCTL_RESET 0x4e44ul -#define PPYIELD 0x708dul -#define NVME_IOCTL_IO64_CMD 0xc0504e48ul -#define TUNSETCARRIER 0x400454e2ul -#define DM_DEV_WAIT 0xc138fd08ul -#define RTC_WIE_ON 0x700ful -#define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul -#define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40206d00ul -#define RTC_SET_TIME 0x4024700aul -#define VHOST_RESET_OWNER 0xaf02ul -#define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul -#define AUTOFS_DEV_IOCTL_OPENMOUNT 0xc0189374ul -#define UDF_GETEABLOCK 0x80046c41ul -#define VFIO_IOMMU_MAP_DMA 0x3b71ul -#define VIDIOC_SUBSCRIBE_EVENT 0x4020565aul -#define HIDIOCGFLAG 0x8004480eul -#define HIDIOCGUCODE 0xc018480dul -#define VIDIOC_OMAP3ISP_AF_CFG 0xc04c56c5ul -#define DM_REMOVE_ALL 0xc138fd01ul -#define ASPEED_LPC_CTRL_IOCTL_MAP 0x4010b201ul -#define CCISS_GETFIRMVER 0x80044208ul -#define ND_IOCTL_ARS_START 0xc0204e02ul -#define PPPIOCSMRRU 0x4004743bul -#define CEC_ADAP_S_LOG_ADDRS 0xc05c6104ul -#define RPROC_GET_SHUTDOWN_ON_RELEASE 0x8004b702ul -#define DMA_HEAP_IOCTL_ALLOC 0xc0184800ul -#define PPSETTIME 0x40087096ul -#define RTC_ALM_READ 0x80247008ul -#define VDUSE_SET_API_VERSION 0x40088101ul -#define RIO_MPORT_MAINT_WRITE_REMOTE 0x40186d08ul -#define VIDIOC_SUBDEV_S_CROP 0xc038563cul -#define USBDEVFS_CONNECT 0x5517ul -#define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul -#define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul -#define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x400c6187ul -#define NBD_SET_SIZE 0xab02ul -#define UDF_GETVOLIDENT 0x80046c42ul -#define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul -#define FSL_HV_IOCTL_SETPROP 0xc028af08ul -#define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul -#define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul -#define UDF_GETEASIZE 0x80046c40ul -#define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul -#define VHOST_SET_OWNER 0xaf01ul -#define RIO_ALLOC_DMA 0xc0186d13ul -#define RIO_CM_CHAN_ACCEPT 0xc0086307ul -#define I2OHRTGET 0xc00c6901ul -#define ATM_SETCIRANGE 0x400c618bul -#define HPET_IE_ON 0x6801ul -#define PERF_EVENT_IOC_ID 0x80042407ul -#define TUNSETSNDBUF 0x400454d4ul -#define PTP_PIN_SETFUNC 0x40603d07ul -#define PPPIOCDISCONN 0x7439ul -#define VIDIOC_QUERYCTRL 0xc0445624ul -#define PPEXCL 0x708ful -#define PCITEST_MSI 0x40045003ul -#define FDWERRORCLR 0x256ul -#define AUTOFS_IOC_FAIL 0x9361ul -#define USBDEVFS_IOCTL 0xc00c5512ul -#define VIDIOC_S_STD 0x40085618ul -#define F2FS_IOC_RESIZE_FS 0x4008f510ul -#define SONET_SETDIAG 0xc0046112ul -#define BTRFS_IOC_DEFRAG 0x50009402ul -#define CCISS_GETDRIVVER 0x80044209ul -#define IPMICTL_GET_TIMING_PARMS_CMD 0x80086917ul -#define HPET_IRQFREQ 0x40046806ul -#define ATM_GETESI 0x400c6185ul -#define CCISS_GETLUNINFO 0x800c4211ul -#define AUTOFS_DEV_IOCTL_ISMOUNTPOINT 0xc018937eul -#define TEE_IOC_SHM_ALLOC 0xc010a401ul -#define PERF_EVENT_IOC_SET_BPF 0x40042408ul -#define UDMABUF_CREATE_LIST 0x40087543ul -#define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x400c6161ul -#define BR2684_SETFILT 0x401c6190ul -#define RNDGETPOOL 0x80085202ul -#define PPS_GETPARAMS 0x800470a1ul -#define IOC_PR_RESERVE 0x401070c9ul -#define VIDIOC_TRY_DECODER_CMD 0xc0485661ul -#define RIO_CM_CHAN_CLOSE 0x40026304ul -#define VIDIOC_DV_TIMINGS_CAP 0xc0905664ul -#define IOCTL_MEI_CONNECT_CLIENT_VTAG 0xc0144804ul -#define PMU_IOC_GET_BACKLIGHT 0x80044201ul -#define USBDEVFS_GET_CAPABILITIES 0x8004551aul -#define SCIF_WRITETO 0xc028730bul -#define UDF_RELOCATE_BLOCKS 0xc0046c43ul -#define FSL_HV_IOCTL_PARTITION_RESTART 0xc008af01ul -#define CCISS_REGNEWD 0x420eul -#define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul -#define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul -#define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul -#define VFIO_EEH_PE_OP 0x3b79ul -#define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul -#define F2FS_IOC_RELEASE_COMPRESS_BLOCKS 0x8008f512ul -#define NBD_SET_SIZE_BLOCKS 0xab07ul -#define IPMI_BMC_IOCTL_SET_SMS_ATN 0xb100ul -#define ASPEED_P2A_CTRL_IOCTL_GET_MEMORY_CONFIG 0xc010b301ul -#define VIDIOC_S_AUDOUT 0x40345632ul -#define VIDIOC_S_FMT 0xc0cc5605ul -#define PPPIOCATTACH 0x4004743dul -#define VHOST_GET_VRING_BUSYLOOP_TIMEOUT 0x4008af24ul -#define FS_IOC_MEASURE_VERITY 0xc0046686ul -#define CCISS_BIG_PASSTHRU 0xc0584212ul -#define IPMICTL_SET_MY_LUN_CMD 0x80046913ul -#define PCITEST_LEGACY_IRQ 0x5002ul -#define USBDEVFS_SUBMITURB 0x802c550aul -#define AUTOFS_IOC_READY 0x9360ul -#define BTRFS_IOC_SEND 0x40489426ul -#define VIDIOC_G_EXT_CTRLS 0xc0185647ul -#define JSIOCSBTNMAP 0x44006a33ul -#define PPPIOCSFLAGS 0x40047459ul -#define NVRAM_INIT 0x7040ul -#define RFKILL_IOCTL_NOINPUT 0x5201ul -#define BTRFS_IOC_BALANCE 0x5000940cul -#define FS_IOC_GETFSMAP 0xc0c0583bul -#define IPMICTL_GET_MY_CHANNEL_LUN_CMD 0x8004691bul -#define STP_POLICY_ID_GET 0x80102501ul -#define PPSETFLAGS 0x4004709bul -#define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul -#define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul -#define PPPIOCGXASYNCMAP 0x80207450ul -#define VHOST_SET_VRING_CALL 0x4008af21ul -#define LIRC_GET_FEATURES 0x80046900ul -#define GSMIOC_DISABLE_NET 0x4703ul -#define AUTOFS_IOC_CATATONIC 0x9362ul -#define NBD_DO_IT 0xab03ul -#define LIRC_SET_REC_CARRIER_RANGE 0x4004691ful -#define IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD 0x80046919ul -#define EVIOCSCLOCKID 0x400445a0ul -#define USBDEVFS_FREE_STREAMS 0x8008551dul -#define FSI_SCOM_RESET 0x40047303ul -#define PMU_IOC_GRAB_BACKLIGHT 0x80044206ul -#define VIDIOC_SUBDEV_S_FMT 0xc0585605ul -#define FDDEFPRM 0x401c0243ul -#define TEE_IOC_INVOKE 0x8010a403ul -#define USBDEVFS_BULK 0xc0105502ul -#define SCIF_VWRITETO 0xc028730dul -#define SONYPI_IOCSBRT 0x40017600ul -#define BTRFS_IOC_FILE_EXTENT_SAME 0xc0189436ul -#define RTC_PIE_ON 0x7005ul -#define BTRFS_IOC_SCAN_DEV 0x50009404ul -#define PPPIOCXFERUNIT 0x744eul -#define WDIOC_GETTIMEOUT 0x80045707ul -#define BTRFS_IOC_SET_RECEIVED_SUBVOL 0xc0c89425ul -#define DFL_FPGA_PORT_ERR_SET_IRQ 0x4008b646ul -#define FBIO_WAITFORVSYNC 0x40044620ul -#define RTC_PIE_OFF 0x7006ul -#define EVIOCGRAB 0x40044590ul -#define PMU_IOC_SET_BACKLIGHT 0x40044202ul -#define EVIOCGREP 0x80084503ul -#define PERF_EVENT_IOC_MODIFY_ATTRIBUTES 0x4004240bul -#define UFFDIO_CONTINUE 0xc020aa07ul -#define VDUSE_GET_API_VERSION 0x80088100ul -#define RTC_RD_TIME 0x80247009ul -#define FDMSGOFF 0x246ul -#define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul -#define PCITEST_SET_IRQTYPE 0x40045008ul -#define VIDIOC_SUBDEV_S_EDID 0xc0245629ul -#define MATROXFB_SET_OUTPUT_MODE 0x40046efaul -#define RIO_DEV_ADD 0x40206d17ul -#define VIDIOC_ENUM_FREQ_BANDS 0xc0405665ul -#define FBIO_RADEON_SET_MIRROR 0x40044004ul -#define PCITEST_GET_IRQTYPE 0x5009ul -#define JSIOCGVERSION 0x80046a01ul -#define SONYPI_IOCSBLUE 0x40017609ul -#define SNAPSHOT_PREF_IMAGE_SIZE 0x3312ul -#define F2FS_IOC_GET_FEATURES 0x8004f50cul -#define SCIF_REG 0xc0287308ul -#define NILFS_IOCTL_CLEAN_SEGMENTS 0x40786e88ul -#define FW_CDEV_IOC_INITIATE_BUS_RESET 0x40042305ul -#define RIO_WAIT_FOR_ASYNC 0x40086d16ul -#define VHOST_SET_VRING_NUM 0x4008af10ul -#define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul -#define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul -#define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul -#define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul -#define PPPIOCGL2TPSTATS 0x80487436ul -#define PERF_EVENT_IOC_PERIOD 0x40082404ul -#define PTP_PIN_SETFUNC2 0x40603d10ul -#define CHIOEXCHANGE 0x401c6302ul -#define NILFS_IOCTL_GET_SUINFO 0x80186e84ul -#define CEC_DQEVENT 0xc0506107ul -#define UI_SET_SWBIT 0x4004556dul -#define VHOST_VDPA_SET_CONFIG 0x4008af74ul -#define TUNSETIFF 0x400454caul -#define CHIOPOSITION 0x400c6303ul -#define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful -#define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul -#define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul -#define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful -#define MATROXFB_GET_OUTPUT_CONNECTION 0x80046ef8ul -#define EVIOCSMASK 0x40104593ul -#define BTRFS_IOC_FORGET_DEV 0x50009405ul -#define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul -#define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul -#define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul -#define PPSETMODE 0x40047080ul -#define VFIO_DEVICE_SET_IRQS 0x3b6eul -#define VIDIOC_PREPARE_BUF 0xc044565dul -#define CEC_ADAP_G_CONNECTOR_INFO 0x8044610aul -#define IOC_OPAL_WRITE_SHADOW_MBR 0x412070eaul -#define VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL 0xc040564bul -#define UDMABUF_CREATE 0x40187542ul -#define SONET_CLRDIAG 0xc0046113ul -#define PHN_SET_REG 0x40047001ul -#define RNDADDTOENTCNT 0x40045201ul -#define VBG_IOCTL_CHECK_BALLOON 0xc0205611ul -#define VIDIOC_OMAP3ISP_STAT_REQ 0xc01856c6ul -#define PPS_FETCH 0xc00470a4ul -#define RTC_AIE_OFF 0x7002ul -#define VFIO_GROUP_SET_CONTAINER 0x3b68ul -#define FW_CDEV_IOC_RECEIVE_PHY_PACKETS 0x40082316ul -#define VFIO_IOMMU_SPAPR_TCE_REMOVE 0x3b78ul -#define VFIO_IOMMU_GET_INFO 0x3b70ul -#define DM_DEV_SUSPEND 0xc138fd06ul -#define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul -#define FW_CDEV_IOC_STOP_ISO 0x4004230bul -#define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul -#define PPPIOCSXASYNCMAP 0x4020744ful -#define CHIOGSTATUS 0x40086308ul -#define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul -#define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul -#define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul -#define VHOST_SET_MEM_TABLE 0x4008af03ul -#define MATROXFB_SET_OUTPUT_CONNECTION 0x40046ef8ul -#define DFL_FPGA_PORT_GET_REGION_INFO 0xb642ul -#define VHOST_GET_FEATURES 0x8008af00ul -#define LIRC_GET_REC_RESOLUTION 0x80046907ul -#define PACKET_CTRL_CMD 0xc0185801ul -#define LIRC_SET_TRANSMITTER_MASK 0x40046917ul -#define BTRFS_IOC_ADD_DEV 0x5000940aul -#define JSIOCGCORR 0x80246a22ul -#define VIDIOC_G_FMT 0xc0cc5604ul -#define RTC_EPOCH_SET 0x4004700eul -#define CAPI_GET_PROFILE 0xc0404309ul -#define ATM_GETLOOP 0x400c6152ul -#define SCIF_LISTEN 0x40047302ul -#define NBD_CLEAR_QUE 0xab05ul -#define F2FS_IOC_MOVE_RANGE 0xc020f509ul -#define LIRC_GET_LENGTH 0x8004690ful -#define I8K_SET_FAN 0xc0046987ul -#define FDSETMAXERRS 0x4014024cul -#define VIDIOC_SUBDEV_QUERYCAP 0x80405600ul -#define SNAPSHOT_SET_SWAP_AREA 0x400c330dul -#define LIRC_GET_REC_TIMEOUT 0x80046924ul -#define EVIOCRMFF 0x40044581ul -#define GPIO_GET_LINEEVENT_IOCTL 0xc030b404ul -#define PPRDATA 0x80017085ul -#define RIO_MPORT_GET_PROPERTIES 0x80306d04ul -#define TUNSETVNETHDRSZ 0x400454d8ul -#define GPIO_GET_LINEINFO_IOCTL 0xc048b402ul -#define GSMIOC_GETCONF 0x804c4700ul -#define LIRC_GET_SEND_MODE 0x80046901ul -#define PPPIOCSACTIVE 0x40087446ul -#define SIOCGSTAMPNS_NEW 0x80108907ul -#define IPMICTL_RECEIVE_MSG 0xc018690cul -#define LIRC_SET_SEND_DUTY_CYCLE 0x40046915ul -#define UI_END_FF_ERASE 0x400c55cbul -#define SWITCHTEC_IOCTL_FLASH_PART_INFO 0xc0105741ul -#define FW_CDEV_IOC_SEND_PHY_PACKET 0xc0182315ul -#define NBD_SET_FLAGS 0xab0aul -#define VFIO_DEVICE_GET_REGION_INFO 0x3b6cul -#define REISERFS_IOC_UNPACK 0x4004cd01ul -#define FW_CDEV_IOC_REMOVE_DESCRIPTOR 0x40042307ul -#define RIO_SET_EVENT_MASK 0x40046d0dul -#define SNAPSHOT_ALLOC_SWAP_PAGE 0x80083314ul -#define VDUSE_VQ_INJECT_IRQ 0x40048117ul -#define I2OPASSTHRU 0x8008690cul -#define IOC_OPAL_SET_PW 0x422070e0ul -#define FSI_SCOM_READ 0xc0207301ul -#define VHOST_VDPA_GET_DEVICE_ID 0x8004af70ul -#define VIDIOC_QBUF 0xc044560ful -#define VIDIOC_S_TUNER 0x4054561eul -#define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul -#define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul -#define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul -#define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul -#define TEE_IOC_VERSION 0x800ca400ul -#define VIDIOC_LOG_STATUS 0x5646ul -#define IPMICTL_SEND_COMMAND_SETTIME 0x801c6915ul -#define VHOST_SET_LOG_FD 0x4004af07ul -#define SCIF_SEND 0xc0187306ul -#define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul -#define VIDIOC_DBG_S_REGISTER 0x4038564ful -#define NILFS_IOCTL_RESIZE 0x40086e8bul -#define PHN_GETREG 0xc0087005ul -#define I2OSWDL 0xc01c6905ul -#define VBG_IOCTL_VMMDEV_REQUEST_BIG 0x5603ul -#define JSIOCGBUTTONS 0x80016a12ul -#define VFIO_IOMMU_ENABLE 0x3b73ul -#define DM_DEV_RENAME 0xc138fd05ul -#define MEDIA_IOC_SETUP_LINK 0xc0347c03ul -#define VIDIOC_ENUMOUTPUT 0xc0485630ul -#define STP_POLICY_ID_SET 0xc0102500ul -#define VHOST_VDPA_SET_CONFIG_CALL 0x4004af77ul -#define VIDIOC_SUBDEV_G_CROP 0xc038563bul -#define VIDIOC_S_CROP 0x4014563cul -#define WDIOC_GETTEMP 0x80045703ul -#define IOC_OPAL_ADD_USR_TO_LR 0x411870e4ul -#define UI_SET_LEDBIT 0x40045569ul -#define NBD_SET_SOCK 0xab00ul -#define BTRFS_IOC_SNAP_DESTROY_V2 0x5000943ful -#define HIDIOCGCOLLECTIONINFO 0xc0104811ul -#define I2OSWUL 0xc01c6906ul -#define IOCTL_MEI_NOTIFY_GET 0x80044803ul -#define FDFMTTRK 0x400c0248ul -#define MMTIMER_GETBITS 0x6d04ul -#define VIDIOC_ENUMSTD 0xc0485619ul -#define VHOST_GET_VRING_BASE 0xc008af12ul -#define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul -#define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul -#define RTC_VL_READ 0x80047013ul -#define ND_IOCTL_ARS_STATUS 0xc0304e03ul -#define RIO_DEV_DEL 0x40206d18ul -#define VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES 0xc024560dul -#define VIDIOC_SUBDEV_DV_TIMINGS_CAP 0xc0905664ul -#define SONYPI_IOCSFAN 0x4001760bul -#define SPIOCSTYPE 0x40047101ul -#define IPMICTL_REGISTER_FOR_CMD 0x8002690eul -#define I8K_GET_FAN 0xc0046986ul -#define TUNGETVNETBE 0x800454dful -#define AUTOFS_DEV_IOCTL_FAIL 0xc0189377ul -#define UI_END_FF_UPLOAD 0x406055c9ul -#define TOSH_SMM 0xc0187490ul -#define SONYPI_IOCGBAT2REM 0x80027605ul -#define F2FS_IOC_GET_COMPRESS_BLOCKS 0x8008f511ul -#define PPPIOCSNPMODE 0x4008744bul -#define USBDEVFS_CONTROL 0xc0105500ul -#define HIDIOCGUSAGE 0xc018480bul -#define TUNSETTXFILTER 0x400454d1ul -#define TUNGETVNETLE 0x800454ddul -#define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul -#define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul -#define HIDIOCGFIELDINFO 0xc038480aul -#define VIDIOC_SUBDEV_G_STD 0x80085617ul -#define I2OVALIDATE 0x80046908ul -#define VIDIOC_TRY_ENCODER_CMD 0xc028564eul -#define NILFS_IOCTL_GET_CPINFO 0x80186e82ul -#define VIDIOC_G_FREQUENCY 0xc02c5638ul -#define VFAT_IOCTL_READDIR_SHORT 0x82187202ul -#define ND_IOCTL_GET_CONFIG_DATA 0xc00c4e05ul -#define F2FS_IOC_RESERVE_COMPRESS_BLOCKS 0x8008f513ul -#define FDGETDRVSTAT 0x80340212ul -#define SYNC_IOC_MERGE 0xc0303e03ul -#define VIDIOC_S_DV_TIMINGS 0xc0845657ul -#define PPPIOCBRIDGECHAN 0x40047435ul -#define LIRC_SET_SEND_MODE 0x40046911ul -#define RIO_ENABLE_PORTWRITE_RANGE 0x40106d0bul -#define ATM_GETTYPE 0x400c6184ul -#define PHN_GETREGS 0xc0287007ul -#define FDSETEMSGTRESH 0x24aul -#define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul -#define EVIOCGMASK 0x80104592ul -#define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul -#define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul -#define MEDIA_IOC_ENUM_ENTITIES 0xc1007c01ul -#define GSMIOC_GETFIRST 0x80044704ul -#define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul -#define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul -#define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul -#define FDSETDRVPRM 0x40580290ul -#define IOC_OPAL_SAVE 0x411870dcul -#define VIDIOC_G_DV_TIMINGS 0xc0845658ul -#define TUNSETIFINDEX 0x400454daul -#define CCISS_SETINTINFO 0x40084203ul -#define RTC_VL_CLR 0x7014ul -#define VIDIOC_REQBUFS 0xc0145608ul -#define USBDEVFS_REAPURBNDELAY32 0x4004550dul -#define TEE_IOC_SHM_REGISTER 0xc018a409ul -#define USBDEVFS_SETCONFIGURATION 0x80045505ul -#define CCISS_GETNODENAME 0x80104204ul -#define VIDIOC_SUBDEV_S_FRAME_INTERVAL 0xc0305616ul -#define VIDIOC_ENUM_FRAMESIZES 0xc02c564aul -#define VFIO_DEVICE_PCI_HOT_RESET 0x3b71ul -#define FW_CDEV_IOC_SEND_BROADCAST_REQUEST 0x40282312ul -#define LPSETTIMEOUT_NEW 0x4010060ful -#define RIO_CM_MPORT_GET_LIST 0xc004630bul -#define FW_CDEV_IOC_QUEUE_ISO 0xc0182309ul -#define FDRAWCMD 0x258ul -#define SCIF_UNREG 0xc0107309ul -#define PPPIOCGIDLE64 0x8010743ful -#define USBDEVFS_RELEASEINTERFACE 0x80045510ul -#define VIDIOC_CROPCAP 0xc02c563aul -#define DFL_FPGA_PORT_GET_INFO 0xb641ul -#define PHN_SET_REGS 0x40047003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul -#define VIDIOC_S_SELECTION 0xc040565ful -#define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul -#define BTRFS_IOC_LOGICAL_INO 0xc0389424ul -#define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x400c6163ul -#define MTIOCPOS 0x80046d03ul -#define PMU_IOC_SLEEP 0x4200ul -#define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul -#define VBG_IOCTL_CHANGE_FILTER_MASK 0xc020560cul -#define NILFS_IOCTL_GET_SUSTAT 0x80306e85ul -#define VIDIOC_QUERYCAP 0x80685600ul -#define HPET_INFO 0x800c6803ul -#define VIDIOC_AM437X_CCDC_CFG 0x400456c1ul -#define DM_LIST_DEVICES 0xc138fd02ul -#define TUNSETOWNER 0x400454ccul -#define VBG_IOCTL_CHANGE_GUEST_CAPABILITIES 0xc020560eul -#define RNDADDENTROPY 0x40085203ul -#define USBDEVFS_RESET 0x5514ul -#define BTRFS_IOC_SUBVOL_CREATE 0x5000940eul -#define USBDEVFS_FORBID_SUSPEND 0x5521ul -#define FDGETDRVTYP 0x8010020ful -#define PPWCONTROL 0x40017084ul -#define VIDIOC_ENUM_FRAMEINTERVALS 0xc034564bul -#define KCOV_DISABLE 0x6365ul -#define IOC_OPAL_ACTIVATE_LSP 0x411870dful -#define VHOST_VDPA_GET_IOVA_RANGE 0x8010af78ul -#define PPPIOCSPASS 0x40087447ul -#define RIO_CM_CHAN_CONNECT 0x40086308ul -#define I2OSWDEL 0xc01c6907ul -#define FS_IOC_SET_ENCRYPTION_POLICY 0x800c6613ul -#define IOC_OPAL_MBR_DONE 0x411070e9ul -#define PPPIOCSMAXCID 0x40047451ul -#define PPSETPHASE 0x40047094ul -#define VHOST_VDPA_SET_VRING_ENABLE 0x4008af75ul -#define USBDEVFS_GET_SPEED 0x551ful -#define SONET_GETFRAMING 0x80046116ul -#define VIDIOC_QUERYBUF 0xc0445609ul -#define VIDIOC_S_EDID 0xc0245629ul -#define BTRFS_IOC_QGROUP_ASSIGN 0x40189429ul -#define PPS_GETCAP 0x800470a3ul -#define SNAPSHOT_PLATFORM_SUPPORT 0x330ful -#define LIRC_SET_REC_TIMEOUT_REPORTS 0x40046919ul -#define SCIF_GET_NODEIDS 0xc018730eul -#define NBD_DISCONNECT 0xab08ul -#define VIDIOC_SUBDEV_G_FRAME_INTERVAL 0xc0305615ul -#define VFIO_IOMMU_DISABLE 0x3b74ul -#define SNAPSHOT_CREATE_IMAGE 0x40043311ul -#define SNAPSHOT_POWER_OFF 0x3310ul -#define APM_IOC_STANDBY 0x4101ul -#define PPPIOCGUNIT 0x80047456ul -#define AUTOFS_IOC_EXPIRE_MULTI 0x40049366ul -#define SCIF_BIND 0xc0087301ul -#define IOC_WATCH_QUEUE_SET_SIZE 0x5760ul -#define NILFS_IOCTL_CHANGE_CPMODE 0x40106e80ul -#define IOC_OPAL_LOCK_UNLOCK 0x411870ddul -#define F2FS_IOC_SET_PIN_FILE 0x4004f50dul -#define PPPIOCGRASYNCMAP 0x80047455ul -#define MMTIMER_MMAPAVAIL 0x6d06ul -#define I2OPASSTHRU32 0x8008690cul -#define DFL_FPGA_FME_PORT_RELEASE 0x4004b681ul -#define VIDIOC_SUBDEV_QUERY_DV_TIMINGS 0x80845663ul -#define UI_SET_SNDBIT 0x4004556aul -#define VIDIOC_G_AUDOUT 0x80345631ul -#define RTC_PLL_SET 0x401c7012ul -#define VIDIOC_ENUMAUDIO 0xc0345641ul -#define AUTOFS_DEV_IOCTL_TIMEOUT 0xc018937aul -#define VBG_IOCTL_DRIVER_VERSION_INFO 0xc02c5600ul -#define VHOST_SCSI_GET_EVENTS_MISSED 0x4004af44ul -#define VHOST_SET_VRING_ADDR 0x4028af11ul -#define VDUSE_CREATE_DEV 0x41508102ul -#define FDFLUSH 0x24bul -#define VBG_IOCTL_WAIT_FOR_EVENTS 0xc020560aul -#define DFL_FPGA_FME_ERR_SET_IRQ 0x4008b684ul -#define F2FS_IOC_GET_PIN_FILE 0x8004f50eul -#define SCIF_CONNECT 0xc0087303ul -#define BLKREPORTZONE 0xc0101282ul -#define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x400861f4ul -#define FDSETPRM 0x401c0242ul -#define ATM_GETSTATZ 0x400c6151ul -#define ISST_IF_MSR_COMMAND 0xc004fe04ul -#define BTRFS_IOC_GET_SUBVOL_INFO 0x81f8943cul -#define VIDIOC_UNSUBSCRIBE_EVENT 0x4020565bul -#define SEV_ISSUE_CMD 0xc0105300ul -#define GPIOHANDLE_SET_LINE_VALUES_IOCTL 0xc040b409ul -#define PCITEST_COPY 0x40045006ul -#define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul -#define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul -#define CXL_MEM_SEND_COMMAND 0xc030ce02ul -#define PERF_EVENT_IOC_SET_FILTER 0x40042406ul -#define IOC_OPAL_REVERT_TPR 0x410870e2ul -#define CHIOGVPARAMS 0x80706313ul -#define PTP_PEROUT_REQUEST 0x40383d03ul -#define FSI_SCOM_CHECK 0x80047300ul -#define RTC_IRQP_READ 0x8004700bul -#define RIO_MPORT_MAINT_READ_LOCAL 0x80186d05ul -#define HIDIOCGRDESCSIZE 0x80044801ul -#define UI_GET_VERSION 0x8004552dul -#define NILFS_IOCTL_GET_CPSTAT 0x80186e83ul -#define CCISS_GETBUSTYPES 0x80044207ul -#define VFIO_IOMMU_SPAPR_TCE_CREATE 0x3b77ul -#define VIDIOC_EXPBUF 0xc0405610ul -#define UI_SET_RELBIT 0x40045566ul -#define VFIO_SET_IOMMU 0x3b66ul -#define VIDIOC_S_MODULATOR 0x40445637ul -#define TUNGETFILTER 0x800854dbul -#define CCISS_SETNODENAME 0x40104205ul -#define FBIO_GETCONTROL2 0x80044689ul -#define TUNSETDEBUG 0x400454c9ul -#define DM_DEV_REMOVE 0xc138fd04ul -#define HIDIOCSUSAGES 0x501c4814ul -#define FS_IOC_ADD_ENCRYPTION_KEY 0xc0506617ul -#define FBIOGET_VBLANK 0x80204612ul -#define ATM_GETSTAT 0x400c6150ul -#define VIDIOC_G_JPEGCOMP 0x808c563dul -#define TUNATTACHFILTER 0x400854d5ul -#define UI_SET_ABSBIT 0x40045567ul -#define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul -#define USBDEVFS_REAPURB32 0x4004550cul -#define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul -#define F2FS_IOC_COMPRESS_FILE 0xf518ul -#define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x400c6160ul -#define ATM_SETLOOP 0x400c6153ul -#define ATMSIGD_CTRL 0x61f0ul -#define CIOC_KERNEL_VERSION 0xc004630aul -#define BTRFS_IOC_CLONE_RANGE 0x4020940dul -#define SNAPSHOT_UNFREEZE 0x3302ul -#define F2FS_IOC_START_VOLATILE_WRITE 0xf503ul -#define PMU_IOC_HAS_ADB 0x80044204ul -#define I2OGETIOPS 0x80206900ul -#define VIDIOC_S_FBUF 0x402c560bul -#define PPRCONTROL 0x80017083ul -#define CHIOSPICKER 0x40046305ul -#define VFIO_IOMMU_SPAPR_REGISTER_MEMORY 0x3b75ul -#define TUNGETSNDBUF 0x800454d3ul -#define GSMIOC_SETCONF 0x404c4701ul -#define IOC_PR_PREEMPT 0x401870cbul -#define KCOV_INIT_TRACE 0x80046301ul -#define SONYPI_IOCGBAT1CAP 0x80027602ul -#define SWITCHTEC_IOCTL_FLASH_INFO 0x80105740ul -#define MTIOCTOP 0x40086d01ul -#define VHOST_VDPA_SET_STATUS 0x4001af72ul -#define VHOST_SCSI_SET_EVENTS_MISSED 0x4004af43ul -#define VFIO_IOMMU_DIRTY_PAGES 0x3b75ul -#define BTRFS_IOC_SCRUB_PROGRESS 0xc400941dul -#define PPPIOCGMRU 0x80047453ul -#define BTRFS_IOC_DEV_REPLACE 0xca289435ul -#define PPPIOCGFLAGS 0x8004745aul -#define NILFS_IOCTL_SET_SUINFO 0x40186e8dul -#define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x400c618ful -#define FW_CDEV_IOC_GET_SPEED 0x2311ul -#define PPPIOCGIDLE32 0x8008743ful -#define VFIO_DEVICE_RESET 0x3b6ful -#define GPIO_GET_LINEINFO_UNWATCH_IOCTL 0xc004b40cul -#define WDIOC_GETSTATUS 0x80045701ul -#define BTRFS_IOC_SET_FEATURES 0x40309439ul -#define IOCTL_MEI_CONNECT_CLIENT 0xc0104801ul -#define VIDIOC_OMAP3ISP_AEWB_CFG 0xc02056c3ul -#define PCITEST_READ 0x40045005ul -#define VFIO_GROUP_GET_STATUS 0x3b67ul -#define MATROXFB_GET_ALL_OUTPUTS 0x80046efbul -#define USBDEVFS_CLEAR_HALT 0x80045515ul -#define VIDIOC_DECODER_CMD 0xc0485660ul -#define VIDIOC_G_AUDIO 0x80345621ul -#define CCISS_RESCANDISK 0x4210ul -#define RIO_DISABLE_PORTWRITE_RANGE 0x40106d0cul -#define IOC_OPAL_SECURE_ERASE_LR 0x411070e7ul -#define USBDEVFS_REAPURB 0x4004550cul -#define DFL_FPGA_CHECK_EXTENSION 0xb601ul -#define AUTOFS_IOC_PROTOVER 0x80049363ul -#define FSL_HV_IOCTL_MEMCPY 0xc028af05ul -#define BTRFS_IOC_GET_FEATURES 0x80189439ul -#define PCITEST_MSIX 0x40045007ul -#define BTRFS_IOC_DEFRAG_RANGE 0x40309410ul -#define UI_BEGIN_FF_ERASE 0xc00c55caul -#define DM_GET_TARGET_VERSION 0xc138fd11ul -#define PPPIOCGIDLE 0x8008743ful -#define NVRAM_SETCKS 0x7041ul -#define WDIOC_GETSUPPORT 0x80285700ul -#define GSMIOC_ENABLE_NET 0x40344702ul -#define GPIO_GET_CHIPINFO_IOCTL 0x8044b401ul -#define NE_ADD_VCPU 0xc004ae21ul -#define EVIOCSKEYCODE_V2 0x40284504ul -#define PTP_SYS_OFFSET_EXTENDED2 0xc4c03d12ul -#define SCIF_FENCE_WAIT 0xc0047310ul -#define RIO_TRANSFER 0xc0186d15ul -#define FSL_HV_IOCTL_DOORBELL 0xc008af06ul -#define RIO_MPORT_MAINT_WRITE_LOCAL 0x40186d06ul -#define I2OEVTREG 0x400c690aul -#define I2OPARMGET 0xc0186904ul -#define EVIOCGID 0x80084502ul -#define BTRFS_IOC_QGROUP_CREATE 0x4010942aul -#define AUTOFS_DEV_IOCTL_SETPIPEFD 0xc0189378ul -#define VIDIOC_S_PARM 0xc0cc5616ul -#define TUNSETSTEERINGEBPF 0x800454e0ul -#define ATM_GETNAMES 0x40086183ul -#define VIDIOC_QUERYMENU 0xc02c5625ul -#define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul -#define I2OLCTGET 0xc00c6902ul -#define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x400c6162ul -#define BLKCLOSEZONE 0x40101287ul -#define SONET_GETFRSENSE 0x80066117ul -#define UI_SET_EVBIT 0x40045564ul -#define DM_LIST_VERSIONS 0xc138fd0dul -#define HIDIOCGSTRING 0x81044804ul -#define PPPIOCATTCHAN 0x40047438ul -#define VDUSE_DEV_SET_CONFIG 0x40088112ul -#define TUNGETFEATURES 0x800454cful -#define VFIO_GROUP_UNSET_CONTAINER 0x3b69ul -#define IPMICTL_SET_MY_ADDRESS_CMD 0x80046911ul -#define CCISS_REGNEWDISK 0x4004420dul -#define VIDIOC_QUERY_DV_TIMINGS 0x80845663ul -#define PHN_SETREGS 0x40287008ul -#define FAT_IOCTL_GET_ATTRIBUTES 0x80047210ul -#define FSL_MC_SEND_MC_COMMAND 0xc04052e0ul -#define TUNGETIFF 0x800454d2ul -#define PTP_CLOCK_GETCAPS2 0x80503d0aul -#define BTRFS_IOC_RESIZE 0x50009403ul -#define VHOST_SET_VRING_ENDIAN 0x4008af13ul -#define PPS_KC_BIND 0x400470a5ul -#define F2FS_IOC_WRITE_CHECKPOINT 0xf507ul -#define UI_SET_FFBIT 0x4004556bul -#define IPMICTL_GET_MY_LUN_CMD 0x80046914ul -#define CEC_ADAP_G_PHYS_ADDR 0x80026101ul -#define CEC_G_MODE 0x80046108ul -#define USBDEVFS_RESETEP 0x80045503ul -#define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul -#define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul -#define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul -#define PPPIOCUNBRIDGECHAN 0x7434ul -#define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul -#define ISST_IF_GET_PLATFORM_INFO 0x8004fe00ul -#define SCIF_FENCE_MARK 0xc010730ful -#define USBDEVFS_RELEASE_PORT 0x80045519ul -#define VFIO_CHECK_EXTENSION 0x3b65ul -#define BTRFS_IOC_QGROUP_LIMIT 0x8030942bul -#define FAT_IOCTL_GET_VOLUME_ID 0x80047213ul -#define UI_SET_PHYS 0x4004556cul -#define FDWERRORGET 0x80180217ul -#define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x6d07ul -#define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul -#define SIOCGSTAMP_NEW 0x80108906ul -#define RTC_WKALM_RD 0x80287010ul -#define PHN_GET_REG 0xc0047000ul -#define DELL_WMI_SMBIOS_CMD 0xc0345700ul -#define PHN_NOT_OH 0x7004ul -#define PPGETMODES 0x80047097ul -#define CHIOGPARAMS 0x80146306ul -#define VFIO_DEVICE_GET_GFX_DMABUF 0x3b73ul -#define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul -#define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul -#define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul -#define PMU_IOC_CAN_SLEEP 0x80044205ul -#define KCOV_ENABLE 0x6364ul -#define BTRFS_IOC_CLONE 0x40049409ul -#define F2FS_IOC_DEFRAGMENT 0xc010f508ul -#define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul -#define AGPIOC_ALLOCATE 0xc0044106ul -#define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul -#define LIRC_SET_REC_CARRIER 0x40046914ul -#define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul -#define SNAPSHOT_ATOMIC_RESTORE 0x3304ul -#define RTC_UIE_OFF 0x7004ul -#define BT_BMC_IOCTL_SMS_ATN 0xb100ul -#define NVME_IOCTL_ID 0x4e40ul -#define NE_START_ENCLAVE 0xc010ae24ul -#define VIDIOC_STREAMON 0x40045612ul -#define FDPOLLDRVSTAT 0x80340213ul -#define AUTOFS_DEV_IOCTL_READY 0xc0189376ul -#define VIDIOC_ENUMAUDOUT 0xc0345642ul -#define VIDIOC_SUBDEV_S_STD 0x40085618ul -#define WDIOC_GETTIMELEFT 0x8004570aul -#define ATM_GETLINKRATE 0x400c6181ul -#define RTC_WKALM_SET 0x4028700ful -#define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul -#define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul -#define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul -#define NS_GET_OWNER_UID 0xb704ul -#define VIDIOC_OVERLAY 0x4004560eul -#define BTRFS_IOC_WAIT_SYNC 0x40089416ul -#define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul -#define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x400c6186ul -#define PHN_GET_REGS 0xc0047002ul -#define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul -#define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul -#define SNAPSHOT_S2RAM 0x330bul -#define JSIOCSAXMAP 0x40406a31ul -#define F2FS_IOC_SET_COMPRESS_OPTION 0x4002f516ul -#define VBG_IOCTL_HGCM_DISCONNECT 0xc01c5605ul -#define SCIF_FENCE_SIGNAL 0xc0287311ul -#define VFIO_DEVICE_GET_PCI_HOT_RESET_INFO 0x3b70ul -#define VIDIOC_SUBDEV_ENUM_MBUS_CODE 0xc0305602ul -#define MMTIMER_GETOFFSET 0x6d00ul -#define RIO_CM_CHAN_LISTEN 0x40026306ul -#define ATM_SETSC 0x400461f1ul -#define F2FS_IOC_SHUTDOWN 0x8004587dul -#define NVME_IOCTL_RESCAN 0x4e46ul -#define BLKOPENZONE 0x40101286ul -#define DM_VERSION 0xc138fd00ul -#define CEC_TRANSMIT 0xc0386105ul -#define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul -#define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul -#define HIDIOCGVERSION 0x80044801ul -#define VIDIOC_S_INPUT 0xc0045627ul -#define VIDIOC_G_CROP 0xc014563bul -#define LIRC_SET_WIDEBAND_RECEIVER 0x40046923ul -#define EVIOCGEFFECTS 0x80044584ul -#define UVCIOC_CTRL_QUERY 0xc00c7521ul -#define IOC_OPAL_GENERIC_TABLE_RW 0x413870ebul -#define FS_IOC_READ_VERITY_METADATA 0xc0286687ul -#define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul -#define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x400c6132ul -#define HIDIOCINITREPORT 0x4805ul -#define VFIO_DEVICE_GET_INFO 0x3b6bul -#define RIO_CM_CHAN_RECEIVE 0xc010630aul -#define RNDGETENTCNT 0x80045200ul -#define PPPIOCNEWUNIT 0xc004743eul -#define BTRFS_IOC_INO_LOOKUP 0xd0009412ul -#define FDRESET 0x254ul -#define IOC_PR_REGISTER 0x401870c8ul -#define HIDIOCSREPORT 0x400c4808ul -#define TEE_IOC_OPEN_SESSION 0x8010a402ul -#define TEE_IOC_SUPPL_RECV 0x8010a406ul -#define BTRFS_IOC_BALANCE_CTL 0x40049421ul -#define GPIO_GET_LINEINFO_WATCH_IOCTL 0xc048b40bul -#define HIDIOCGRAWINFO 0x80084803ul -#define PPPIOCSCOMPRESS 0x400c744dul -#define USBDEVFS_CONNECTINFO 0x40085511ul -#define BLKRESETZONE 0x40101283ul -#define CHIOINITELEM 0x6311ul -#define NILFS_IOCTL_SET_ALLOC_RANGE 0x40106e8cul -#define AUTOFS_DEV_IOCTL_CATATONIC 0xc0189379ul -#define RIO_MPORT_MAINT_HDID_SET 0x40026d01ul -#define PPGETPHASE 0x80047099ul -#define USBDEVFS_DISCONNECT_CLAIM 0x8108551bul -#define FDMSGON 0x245ul -#define VIDIOC_G_SLICED_VBI_CAP 0xc0745645ul -#define BTRFS_IOC_BALANCE_V2 0xc4009420ul -#define MEDIA_REQUEST_IOC_REINIT 0x7c81ul -#define IOC_OPAL_ERASE_LR 0x411070e6ul -#define FDFMTBEG 0x247ul -#define RNDRESEEDCRNG 0x5207ul -#define ISST_IF_GET_PHY_ID 0xc004fe01ul -#define TUNSETNOCSUM 0x400454c8ul -#define SONET_GETSTAT 0x80246110ul -#define TFD_IOC_SET_TICKS 0x40085400ul -#define PPDATADIR 0x40047090ul -#define IOC_OPAL_ENABLE_DISABLE_MBR 0x411070e5ul -#define GPIO_V2_GET_LINE_IOCTL 0xc250b407ul -#define RIO_CM_CHAN_SEND 0x40106309ul -#define PPWCTLONIRQ 0x40017092ul -#define SONYPI_IOCGBRT 0x80017600ul -#define IOC_PR_RELEASE 0x401070caul -#define PPCLRIRQ 0x80047093ul -#define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul -#define HPET_IE_OFF 0x6802ul -#define IOC_OPAL_ACTIVATE_USR 0x411070e1ul -#define SONET_SETFRAMING 0x40046115ul -#define PERF_EVENT_IOC_PAUSE_OUTPUT 0x40042409ul -#define BTRFS_IOC_LOGICAL_INO_V2 0xc038943bul -#define VBG_IOCTL_HGCM_CONNECT 0xc09c5604ul -#define BLKFINISHZONE 0x40101288ul -#define EVIOCREVOKE 0x40044591ul -#define VFIO_DEVICE_FEATURE 0x3b75ul -#define CCISS_GETPCIINFO 0x80084201ul -#define ISST_IF_MBOX_COMMAND 0xc004fe03ul -#define SCIF_ACCEPTREQ 0xc0107304ul -#define PERF_EVENT_IOC_QUERY_BPF 0xc004240aul -#define VIDIOC_STREAMOFF 0x40045613ul -#define VDUSE_DESTROY_DEV 0x41008103ul -#define FDGETFDCSTAT 0x80200215ul -#define VIDIOC_S_PRIORITY 0x40045644ul -#define SNAPSHOT_FREEZE 0x3301ul -#define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x400c6162ul -#define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul -#define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul -#define VIDIOC_G_STD 0x80085617ul -#define USBDEVFS_ALLOW_SUSPEND 0x5522ul -#define SONET_GETSTATZ 0x80246111ul -#define SCIF_ACCEPTREG 0xc0087305ul -#define VIDIOC_ENCODER_CMD 0xc028564dul -#define PPPIOCSRASYNCMAP 0x40047454ul -#define IOCTL_MEI_NOTIFY_SET 0x40044802ul -#define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul -#define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul -#define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80046ef9ul -#define DM_DEV_CREATE 0xc138fd03ul -#define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul -#define VIDIOC_G_CTRL 0xc008561bul -#define NBD_CLEAR_SOCK 0xab04ul -#define VFIO_DEVICE_QUERY_GFX_PLANE 0x3b72ul -#define WDIOC_KEEPALIVE 0x80045705ul -#define NVME_IOCTL_SUBSYS_RESET 0x4e45ul -#define PTP_EXTTS_REQUEST2 0x40103d0bul -#define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul -#define EVIOCSREP 0x40084503ul -#define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul -#define HPET_DPI 0x6805ul -#define VDUSE_VQ_SETUP_KICKFD 0x40088116ul -#define ND_IOCTL_CALL 0xc0404e0aul -#define HIDIOCGDEVINFO 0x801c4803ul -#define DM_TABLE_DEPS 0xc138fd0bul -#define BTRFS_IOC_DEV_INFO 0xd000941eul -#define VDUSE_IOTLB_GET_FD 0xc0208110ul -#define FW_CDEV_IOC_GET_INFO 0xc0282300ul -#define VIDIOC_G_PRIORITY 0x80045643ul -#define ATM_NEWBACKENDIF 0x400261f3ul -#define VIDIOC_S_EXT_CTRLS 0xc0185648ul -#define VIDIOC_SUBDEV_ENUM_DV_TIMINGS 0xc0945662ul -#define VIDIOC_OMAP3ISP_CCDC_CFG 0xc02056c1ul -#define VIDIOC_S_HW_FREQ_SEEK 0x40305652ul -#define DM_TABLE_LOAD 0xc138fd09ul -#define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul -#define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul -#define CHIOGELEM 0x406c6310ul -#define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul -#define EVIOCSKEYCODE 0x40084504ul -#define NE_GET_IMAGE_LOAD_INFO 0xc010ae22ul -#define TUNSETLINK 0x400454cdul -#define FW_CDEV_IOC_ADD_DESCRIPTOR 0xc0182306ul -#define BTRFS_IOC_SCRUB_CANCEL 0x941cul -#define PPS_SETPARAMS 0x400470a2ul -#define IOC_OPAL_LR_SETUP 0x412870e3ul -#define FW_CDEV_IOC_DEALLOCATE 0x40042303ul -#define WDIOC_SETTIMEOUT 0xc0045706ul -#define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul -#define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul -#define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul -#define VIDIOC_G_EDID 0xc0245628ul -#define F2FS_IOC_GARBAGE_COLLECT_RANGE 0x4018f50bul -#define RIO_MAP_INBOUND 0xc0286d11ul -#define IOC_OPAL_TAKE_OWNERSHIP 0x410870deul -#define USBDEVFS_CLAIM_PORT 0x80045518ul -#define VIDIOC_S_AUDIO 0x40345622ul -#define FS_IOC_GET_ENCRYPTION_NONCE 0x8010661bul -#define FW_CDEV_IOC_SEND_STREAM_PACKET 0x40282313ul -#define BTRFS_IOC_SNAP_DESTROY 0x5000940ful -#define SNAPSHOT_FREE 0x3305ul -#define I8K_GET_SPEED 0xc0046985ul -#define HIDIOCGREPORT 0x400c4807ul -#define HPET_EPI 0x6804ul -#define JSIOCSCORR 0x40246a21ul -#define IOC_PR_PREEMPT_ABORT 0x401870ccul -#define RIO_MAP_OUTBOUND 0xc0286d0ful -#define ATM_SETESI 0x400c618cul -#define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x400c6189ul -#define PPFCONTROL 0x4002708eul -#define SONYPI_IOCGFAN 0x8001760aul -#define RTC_IRQP_SET 0x4004700cul -#define PCITEST_WRITE 0x40045004ul -#define PPCLAIM 0x708bul -#define VIDIOC_S_JPEGCOMP 0x408c563eul -#define IPMICTL_UNREGISTER_FOR_CMD 0x8002690ful -#define VHOST_SET_FEATURES 0x4008af00ul -#define TOSHIBA_ACPI_SCI 0xc0187491ul -#define VIDIOC_DQBUF 0xc0445611ul -#define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul -#define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul -#define MMTIMER_GETFREQ 0x80046d02ul -#define VIDIOC_G_SELECTION 0xc040565eul -#define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4004b100ul -#define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul -#define FS_IOC_ENABLE_VERITY 0x40806685ul -#define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul -#define FDFMTEND 0x249ul -#define DMA_BUF_SET_NAME 0x40046201ul -#define UI_BEGIN_FF_UPLOAD 0xc06055c8ul -#define RTC_UIE_ON 0x7003ul -#define PPRELEASE 0x708cul -#define VFIO_IOMMU_UNMAP_DMA 0x3b72ul -#define VIDIOC_OMAP3ISP_PRV_CFG 0xc03c56c2ul -#define GPIO_GET_LINEHANDLE_IOCTL 0xc16cb403ul -#define VFAT_IOCTL_READDIR_BOTH 0x82187201ul -#define NVME_IOCTL_ADMIN_CMD 0xc0484e41ul -#define VHOST_SET_VRING_KICK 0x4008af20ul -#define BTRFS_IOC_SUBVOL_CREATE_V2 0x50009418ul -#define BTRFS_IOC_SNAP_CREATE 0x50009401ul -#define SONYPI_IOCGBAT2CAP 0x80027604ul -#define PPNEGOT 0x40047091ul -#define NBD_PRINT_DEBUG 0xab06ul -#define BTRFS_IOC_INO_LOOKUP_USER 0xd000943eul -#define BTRFS_IOC_GET_SUBVOL_ROOTREF 0xd000943dul -#define FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS 0xc0406619ul -#define BTRFS_IOC_FS_INFO 0x8400941ful -#define VIDIOC_ENUM_FMT 0xc0405602ul -#define VIDIOC_G_INPUT 0x80045626ul -#define VTPM_PROXY_IOC_NEW_DEV 0xc014a100ul -#define DFL_FPGA_FME_ERR_GET_IRQ_NUM 0x8004b683ul -#define ND_IOCTL_DIMM_FLAGS 0xc0084e03ul -#define BTRFS_IOC_QUOTA_RESCAN 0x4040942cul -#define MMTIMER_GETCOUNTER 0x80046d09ul -#define MATROXFB_GET_OUTPUT_MODE 0xc0046efaul -#define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul -#define RIO_CM_CHAN_BIND 0x40086305ul -#define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul -#define VIDIOC_S_OUTPUT 0xc004562ful -#define HIDIOCGREPORTINFO 0xc00c4809ul -#define WDIOC_GETBOOTSTATUS 0x80045702ul -#define VDUSE_VQ_GET_INFO 0xc0308115ul -#define ACRN_IOCTL_ASSIGN_PCIDEV 0x4024a255ul -#define BLKGETDISKSEQ 0x80081280ul -#define ACRN_IOCTL_PM_GET_CPU_STATE 0xc008a260ul -#define ACRN_IOCTL_DESTROY_VM 0xa211ul -#define ACRN_IOCTL_SET_PTDEV_INTR 0x4014a253ul -#define ACRN_IOCTL_CREATE_IOREQ_CLIENT 0xa232ul -#define ACRN_IOCTL_IRQFD 0x4018a271ul -#define ACRN_IOCTL_CREATE_VM 0xc030a210ul -#define ACRN_IOCTL_INJECT_MSI 0x4010a223ul -#define ACRN_IOCTL_ATTACH_IOREQ_CLIENT 0xa233ul -#define ACRN_IOCTL_RESET_PTDEV_INTR 0x4014a254ul -#define ACRN_IOCTL_NOTIFY_REQUEST_FINISH 0x4008a231ul -#define ACRN_IOCTL_SET_IRQLINE 0x4008a225ul -#define ACRN_IOCTL_START_VM 0xa212ul -#define ACRN_IOCTL_SET_VCPU_REGS 0x4128a216ul -#define ACRN_IOCTL_SET_MEMSEG 0x4020a241ul -#define ACRN_IOCTL_PAUSE_VM 0xa213ul -#define ACRN_IOCTL_CLEAR_VM_IOREQ 0xa235ul -#define ACRN_IOCTL_UNSET_MEMSEG 0x4020a242ul -#define ACRN_IOCTL_IOEVENTFD 0x4020a270ul -#define ACRN_IOCTL_DEASSIGN_PCIDEV 0x4024a256ul -#define ACRN_IOCTL_RESET_VM 0xa215ul -#define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul -#define ACRN_IOCTL_VM_INTR_MONITOR 0x4004a224ul -#endif diff --git a/gen/modules/general.h b/gen/modules/general.h index 4c9f81677..fe4cc1eae 100644 --- a/gen/modules/general.h +++ b/gen/modules/general.h @@ -51,6 +51,14 @@ #include #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0) +#include +#endif + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0) +#include +#endif + #define DT_UNKNOWN 0 #define DT_FIFO 1 #define DT_CHR 2 diff --git a/gen/modules/ioctl.h b/gen/modules/ioctl.h index 320b7ceea..2da15d995 100644 --- a/gen/modules/ioctl.h +++ b/gen/modules/ioctl.h @@ -268,8 +268,10 @@ #define EXT4_IOC_GETRSVSZ 0x80046605ul #define EXT4_IOC_SETRSVSZ 0x40046606ul #define EXT4_IOC_GROUP_EXTEND 0x40046607ul +#define EXT4_IOC_GROUP_ADD 0x40246608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -277,6 +279,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -297,8 +301,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80206d01ul -#define ENI_SETMULT 0x400c6167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -335,19 +337,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc00c6161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x400c618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x801c0204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x400c6160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -357,10 +355,8 @@ #define RTC_EPOCH_READ 0x8004700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x400c6190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -408,7 +404,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80580211ul @@ -419,7 +414,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0405619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -427,13 +421,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40242301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc01c6909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x400c6133ul #define I2OPARMSET 0xc0186903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -455,7 +447,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -518,14 +509,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x400c6188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc054420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -552,7 +540,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40206d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -578,18 +565,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x400c6187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80046c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -622,7 +605,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x400c6161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800470a1ul @@ -639,7 +621,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d45742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc01c2308ul @@ -669,7 +650,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -707,7 +687,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0245629ul #define MATROXFB_SET_OUTPUT_MODE 0x40046efaul @@ -726,7 +705,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -742,14 +720,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80046ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -773,12 +749,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40086308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40046ef8ul @@ -791,7 +765,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0cc5604ul #define RTC_EPOCH_SET 0x4004700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x400c6152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -830,7 +803,6 @@ #define VIDIOC_QBUF 0xc044560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -840,7 +812,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0147306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -868,9 +839,7 @@ #define VIDIOC_ENUMSTD 0xc0405619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -893,7 +862,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -913,8 +881,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -923,7 +889,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40580290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -949,13 +914,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40047003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x400c6163ul #define MTIOCPOS 0x80046d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -1028,7 +990,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x400861f4ul #define FDSETPRM 0x401c0242ul #define ATM_GETSTATZ 0x400c6151ul #define ISST_IF_MSR_COMMAND 0xc004fe04ul @@ -1039,7 +1000,6 @@ #define PCITEST_COPY 0x40045006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40042406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -1072,12 +1032,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x400c6160ul #define ATM_SETLOOP 0x400c6153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc004630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -1104,7 +1061,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0142314ul -#define ATM_DELLECSADDR 0x400c618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -1155,7 +1111,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc00c6902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x400c6162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -1184,7 +1139,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -1197,7 +1151,6 @@ #define UI_SET_PHYS 0x4004556cul #define FDWERRORGET 0x80180217ul #define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -1210,7 +1163,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80044205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -1218,8 +1170,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0044106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -1236,8 +1186,6 @@ #define ATM_GETLINKRATE 0x400c6181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -1245,7 +1193,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x400c6186ul #define PHN_GET_REGS 0xc0047002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -1265,7 +1212,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -1277,7 +1223,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x400c6132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -1321,7 +1266,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -1341,7 +1285,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc04c561aul -#define ZATM_GETPOOLZ 0x400c6162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -1353,7 +1296,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80046ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -1364,7 +1306,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -1384,7 +1325,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -1397,7 +1337,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0245628ul @@ -1418,7 +1357,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x400c618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x400c6189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4004700cul @@ -1431,11 +1369,9 @@ #define VIDIOC_DQBUF 0xc0445611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80046d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4004b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -1470,7 +1406,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -1499,6 +1434,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4004a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #ifdef __x86_64__ #define FIONREAD 0x541bul @@ -1769,8 +1715,10 @@ #define EXT4_IOC_GETRSVSZ 0x80086605ul #define EXT4_IOC_SETRSVSZ 0x40086606ul #define EXT4_IOC_GROUP_EXTEND 0x40086607ul +#define EXT4_IOC_GROUP_ADD 0x40286608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -1778,6 +1726,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -1798,8 +1748,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80306d01ul -#define ENI_SETMULT 0x40106167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -1836,19 +1784,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc0106161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x4010618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x80200204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x40106160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -1858,10 +1802,8 @@ #define RTC_EPOCH_READ 0x8008700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x40106190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -1909,7 +1851,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80800211ul @@ -1920,7 +1861,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0104320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -1928,13 +1868,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc0287c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc0306909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x40106133ul #define I2OPARMSET 0xc0286903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -1956,7 +1894,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -2019,14 +1956,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x40106188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc058420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -2053,7 +1987,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40306d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -2079,18 +2012,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x40106187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80086c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -2123,7 +2052,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x40106161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800870a1ul @@ -2140,7 +2068,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc100565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -2170,7 +2097,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -2208,7 +2134,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0285629ul #define MATROXFB_SET_OUTPUT_MODE 0x40086efaul @@ -2227,7 +2152,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -2243,14 +2167,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80086ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -2274,12 +2196,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40106308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40086ef8ul @@ -2292,7 +2212,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0d05604ul #define RTC_EPOCH_SET 0x4008700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x40106152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -2331,7 +2250,6 @@ #define VIDIOC_QBUF 0xc058560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00856c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -2341,7 +2259,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -2369,9 +2286,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -2394,7 +2309,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -2414,8 +2328,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -2424,7 +2336,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40800290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -2450,13 +2361,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40087003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x40106163ul #define MTIOCPOS 0x80086d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -2529,7 +2437,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x401061f4ul #define FDSETPRM 0x40200242ul #define ATM_GETSTATZ 0x40106151ul #define ISST_IF_MSR_COMMAND 0xc008fe04ul @@ -2540,7 +2447,6 @@ #define PCITEST_COPY 0x40085006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40082406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -2573,12 +2479,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x40106160ul #define ATM_SETLOOP 0x40106153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc008630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -2605,7 +2508,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x4010618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -2656,7 +2558,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc0186902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x40106162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -2685,7 +2586,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -2698,7 +2598,6 @@ #define UI_SET_PHYS 0x4008556cul #define FDWERRORGET 0x80280217ul #define VIDIOC_SUBDEV_G_EDID 0xc0285628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -2711,7 +2610,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80084205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -2719,8 +2617,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0084106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -2737,8 +2633,6 @@ #define ATM_GETLINKRATE 0x40106181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -2746,7 +2640,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x40106186ul #define PHN_GET_REGS 0xc0087002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -2766,7 +2659,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -2778,7 +2670,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x40106132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -2822,7 +2713,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -2842,7 +2732,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x40106162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -2854,7 +2743,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80086ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -2865,7 +2753,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -2885,7 +2772,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -2898,7 +2784,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0285628ul @@ -2919,7 +2804,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x4010618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x40106189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4008700cul @@ -2932,11 +2816,9 @@ #define VIDIOC_DQBUF 0xc0585611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80086d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4008b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -2971,7 +2853,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -3000,6 +2881,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4008a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #ifdef __aarch64__ #define FIONREAD 0x541bul @@ -3270,8 +3162,10 @@ #define EXT4_IOC_GETRSVSZ 0x80086605ul #define EXT4_IOC_SETRSVSZ 0x40086606ul #define EXT4_IOC_GROUP_EXTEND 0x40086607ul +#define EXT4_IOC_GROUP_ADD 0x40286608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -3279,6 +3173,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -3299,8 +3195,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80306d01ul -#define ENI_SETMULT 0x40106167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -3337,19 +3231,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc0106161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x4010618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x80200204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x40106160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -3359,10 +3249,8 @@ #define RTC_EPOCH_READ 0x8008700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x40106190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -3410,7 +3298,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80800211ul @@ -3421,7 +3308,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0104320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -3429,13 +3315,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc0287c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc0306909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x40106133ul #define I2OPARMSET 0xc0286903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -3457,7 +3341,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -3520,14 +3403,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x40106188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc058420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -3554,7 +3434,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40306d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -3580,18 +3459,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x40106187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80086c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -3624,7 +3499,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x40106161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800870a1ul @@ -3641,7 +3515,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc100565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -3671,7 +3544,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -3709,7 +3581,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0285629ul #define MATROXFB_SET_OUTPUT_MODE 0x40086efaul @@ -3728,7 +3599,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -3744,14 +3614,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80086ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -3775,12 +3643,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40106308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40086ef8ul @@ -3793,7 +3659,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0d05604ul #define RTC_EPOCH_SET 0x4008700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x40106152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -3832,7 +3697,6 @@ #define VIDIOC_QBUF 0xc058560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00856c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -3842,7 +3706,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -3870,9 +3733,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -3895,7 +3756,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -3915,8 +3775,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -3925,7 +3783,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40800290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -3951,13 +3808,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40087003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x40106163ul #define MTIOCPOS 0x80086d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -4030,7 +3884,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x401061f4ul #define FDSETPRM 0x40200242ul #define ATM_GETSTATZ 0x40106151ul #define ISST_IF_MSR_COMMAND 0xc008fe04ul @@ -4041,7 +3894,6 @@ #define PCITEST_COPY 0x40085006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40082406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -4074,12 +3926,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x40106160ul #define ATM_SETLOOP 0x40106153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc008630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -4106,7 +3955,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x4010618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -4157,7 +4005,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc0186902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x40106162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -4186,7 +4033,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -4199,7 +4045,6 @@ #define UI_SET_PHYS 0x4008556cul #define FDWERRORGET 0x80280217ul #define VIDIOC_SUBDEV_G_EDID 0xc0285628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -4212,7 +4057,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80084205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -4220,8 +4064,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0084106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -4238,8 +4080,6 @@ #define ATM_GETLINKRATE 0x40106181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -4247,7 +4087,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x40106186ul #define PHN_GET_REGS 0xc0087002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -4267,7 +4106,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -4279,7 +4117,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x40106132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -4323,7 +4160,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -4343,7 +4179,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x40106162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -4355,7 +4190,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80086ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -4366,7 +4200,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -4386,7 +4219,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -4399,7 +4231,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0285628ul @@ -4420,7 +4251,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x4010618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x40106189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4008700cul @@ -4433,11 +4263,9 @@ #define VIDIOC_DQBUF 0xc0585611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80086d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4008b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -4472,7 +4300,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -4501,6 +4328,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4008a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #ifdef __arm__ #define FIONREAD 0x541bul @@ -4771,8 +4609,10 @@ #define EXT4_IOC_GETRSVSZ 0x80046605ul #define EXT4_IOC_SETRSVSZ 0x40046606ul #define EXT4_IOC_GROUP_EXTEND 0x40046607ul +#define EXT4_IOC_GROUP_ADD 0x40286608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -4780,6 +4620,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -4800,8 +4642,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80206d01ul -#define ENI_SETMULT 0x400c6167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -4838,19 +4678,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc00c6161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x400c618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x801c0204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x400c6160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -4860,10 +4696,8 @@ #define RTC_EPOCH_READ 0x8004700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x400c6190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -4911,7 +4745,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80580211ul @@ -4922,7 +4755,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -4930,13 +4762,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc01c6909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x400c6133ul #define I2OPARMSET 0xc0186903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -4958,7 +4788,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -5021,14 +4850,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x400c6188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc054420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -5055,7 +4881,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40206d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -5081,18 +4906,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x400c6187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80046c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -5125,7 +4946,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x400c6161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800470a1ul @@ -5142,7 +4962,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -5172,7 +4991,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -5210,7 +5028,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0245629ul #define MATROXFB_SET_OUTPUT_MODE 0x40046efaul @@ -5229,7 +5046,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -5245,14 +5061,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80046ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -5276,12 +5090,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40086308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40046ef8ul @@ -5294,7 +5106,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0cc5604ul #define RTC_EPOCH_SET 0x4004700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x400c6152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -5333,7 +5144,6 @@ #define VIDIOC_QBUF 0xc044560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -5343,7 +5153,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -5371,9 +5180,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -5396,7 +5203,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -5416,8 +5222,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -5426,7 +5230,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40580290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -5452,13 +5255,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40047003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x400c6163ul #define MTIOCPOS 0x80046d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -5531,7 +5331,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x400861f4ul #define FDSETPRM 0x401c0242ul #define ATM_GETSTATZ 0x400c6151ul #define ISST_IF_MSR_COMMAND 0xc004fe04ul @@ -5542,7 +5341,6 @@ #define PCITEST_COPY 0x40045006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40042406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -5575,12 +5373,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x400c6160ul #define ATM_SETLOOP 0x400c6153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc004630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -5607,7 +5402,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x400c618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -5658,7 +5452,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc00c6902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x400c6162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -5687,7 +5480,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -5700,7 +5492,6 @@ #define UI_SET_PHYS 0x4004556cul #define FDWERRORGET 0x80180217ul #define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -5713,7 +5504,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80044205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -5721,8 +5511,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0044106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -5739,8 +5527,6 @@ #define ATM_GETLINKRATE 0x400c6181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -5748,7 +5534,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x400c6186ul #define PHN_GET_REGS 0xc0047002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -5768,7 +5553,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -5780,7 +5564,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x400c6132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -5824,7 +5607,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -5844,7 +5626,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x400c6162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -5856,7 +5637,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80046ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -5867,7 +5647,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -5887,7 +5666,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -5900,7 +5678,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0245628ul @@ -5921,7 +5698,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x400c618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x400c6189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4004700cul @@ -5934,11 +5710,9 @@ #define VIDIOC_DQBUF 0xc0445611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80046d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4004b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -5973,7 +5747,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -6002,6 +5775,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4004a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #ifdef __powerpc64__ #define FIONREAD 0x4004667ful @@ -6267,8 +6051,10 @@ #define EXT4_IOC_GETRSVSZ 0x40086605ul #define EXT4_IOC_SETRSVSZ 0x80086606ul #define EXT4_IOC_GROUP_EXTEND 0x80086607ul +#define EXT4_IOC_GROUP_ADD 0x80286608ul #define EXT4_IOC_MIGRATE 0x20006609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x2000660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x80086610ul #define EXT4_IOC_SWAP_BOOT 0x20006611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x20006612ul @@ -6276,6 +6062,8 @@ #define EXT4_IOC_GETSTATE 0x80046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x8004662bul +#define EXT4_IOC_GETFSUUID 0x4008662cul +#define EXT4_IOC_SETFSUUID 0x8008662cul #define EXT4_IOC_SHUTDOWN 0x4004587dul #define EXT4_IOC32_GETVERSION 0x40046603ul #define EXT4_IOC32_SETVERSION 0x80046604ul @@ -6296,8 +6084,6 @@ #define TUNSETPERSIST 0x800454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x800c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x40306d01ul -#define ENI_SETMULT 0x80106167ul #define RIO_GET_EVENT_MASK 0x40046d0eul #define LIRC_GET_MAX_TIMEOUT 0x40046909ul #define USBDEVFS_CLAIMINTERFACE 0x4004550ful @@ -6334,19 +6120,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x4004a405ul -#define NS_GETPSTAT 0xc0106161ul #define UI_SET_PROPBIT 0x8004556eul #define TUNSETFILTEREBPF 0x400454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x80046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x40045704ul #define VHOST_SCSI_SET_ENDPOINT 0x80e8af40ul -#define MGSL_IOCGTXIDLE 0x20006d03ul -#define ATM_ADDLECSADDR 0x8010618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x40200204ul #define HIDIOCAPPLICATION 0x20004802ul -#define ENI_MEMDUMP 0x80106160ul #define PTP_SYS_OFFSET2 0x83403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x80046201ul @@ -6356,10 +6138,8 @@ #define RTC_EPOCH_READ 0x4008700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x80106190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x40046114ul -#define ATMMPC_DATA 0x200061d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x400c691dul #define HIDIOCGCOLLECTIONINDEX 0x80184810ul #define RPMSG_CREATE_EPT_IOCTL 0x8028b501ul @@ -6407,7 +6187,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x20005516ul #define TUNSETVNETBE 0x800454deul -#define ATMTCP_REMOVE 0x2000618ful #define VHOST_VDPA_GET_CONFIG 0x4008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x40800211ul @@ -6418,7 +6197,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x4004709aul #define VDUSE_DEV_GET_FEATURES 0x40088111ul -#define CAPI_MANUFACTURER_CMD 0xc0104320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -6426,13 +6204,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc0287c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0x2000f50ful #define DFL_FPGA_PORT_DMA_MAP 0x2000b643ul -#define MGSL_IOCGXCTRL 0x20006d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x80282301ul #define SONYPI_IOCGBLUE 0x40017608ul #define F2FS_IOC_DECOMPRESS_FILE 0x2000f517ul #define I2OHTML 0xc0306909ul #define VFIO_GET_API_VERSION 0x20003b64ul -#define IDT77105_GETSTATZ 0x80106133ul #define I2OPARMSET 0xc0286903ul #define TEE_IOC_CANCEL 0x4008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -6454,7 +6230,6 @@ #define FDGETMAXERRS 0x4014020eul #define TUNSETQUEUE 0x800454d9ul #define PTP_ENABLE_PPS 0x80043d04ul -#define SIOCSIFATMTCP 0x20006180ul #define CEC_ADAP_G_LOG_ADDRS 0x405c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0x2000ab01ul @@ -6517,14 +6292,11 @@ #define FDEJECT 0x2000025aul #define TUNSETOFFLOAD 0x800454d0ul #define PPPIOCCONNECT 0x8004743aul -#define ATM_ADDADDR 0x80106188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x20008113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x4001af71ul #define CCISS_PASSTHRU 0xc058420bul -#define MGSL_IOCCLRMODCOUNT 0x20006d0ful #define TEE_IOC_SUPPL_SEND 0x4010a407ul -#define ATMARPD_CTRL 0x200061e1ul #define UI_ABS_SETUP 0x801c5504ul #define UI_DEV_DESTROY 0x20005502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -6551,7 +6323,6 @@ #define RTC_WIE_ON 0x2000700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x80306d00ul #define RTC_SET_TIME 0x8024700aul #define VHOST_RESET_OWNER 0x2000af02ul #define IOC_OPAL_PSID_REVERT_TPR 0x810870e8ul @@ -6577,18 +6348,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x20005517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x200061e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x20003b70ul #define CCISS_GETHEARTBEAT 0x40044206ul -#define ATM_RSTADDR 0x80106187ul #define NBD_SET_SIZE 0x2000ab02ul #define UDF_GETVOLIDENT 0x40086c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x20006d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x40017081ul -#define MGSL_IOCTXENABLE 0x20006d04ul #define UDF_GETEASIZE 0x40046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0x2000af01ul @@ -6621,7 +6388,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x80042408ul #define UDMABUF_CREATE_LIST 0x80087543ul #define VHOST_SET_LOG_BASE 0x8008af04ul -#define ZATM_GETPOOL 0x80106161ul #define BR2684_SETFILT 0x801c6190ul #define RNDGETPOOL 0x40085202ul #define PPS_GETPARAMS 0x400870a1ul @@ -6638,7 +6404,6 @@ #define CCISS_REGNEWD 0x2000420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x80047211ul #define VIDIOC_CREATE_BUFS 0xc100565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x44d85742ul #define VFIO_EEH_PE_OP 0x20003b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -6668,7 +6433,6 @@ #define STP_POLICY_ID_GET 0x40102501ul #define PPSETFLAGS 0x8004709bul #define CEC_ADAP_S_PHYS_ADDR 0x80026102ul -#define ATMTCP_CREATE 0x2000618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0x2000b102ul #define PPPIOCGXASYNCMAP 0x40207450ul #define VHOST_SET_VRING_CALL 0x8008af21ul @@ -6706,7 +6470,6 @@ #define RTC_RD_TIME 0x40247009ul #define FDMSGOFF 0x20000246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x400c691cul -#define CAPI_GET_ERRCODE 0x40024321ul #define PCITEST_SET_IRQTYPE 0x80045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0285629ul #define MATROXFB_SET_OUTPUT_MODE 0x80086efaul @@ -6725,7 +6488,6 @@ #define VHOST_SET_VRING_NUM 0x8008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x80086d14ul -#define MGSL_IOCRXENABLE 0x20006d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x200007b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x40086916ul #define PPPIOCGL2TPSTATS 0x40487436ul @@ -6741,14 +6503,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x8004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x80089413ul #define RIO_UNMAP_OUTBOUND 0x80286d10ul -#define CAPI_CLR_FLAGS 0x40044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x8018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x40086ef8ul #define EVIOCSMASK 0x80104593ul #define BTRFS_IOC_FORGET_DEV 0x90009405ul #define CXL_MEM_QUERY_COMMANDS 0x4008ce01ul #define CEC_S_MODE 0x80046109ul -#define MGSL_IOCSIF 0x20006d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x80047080ul #define VFIO_DEVICE_SET_IRQS 0x20003b6eul @@ -6772,12 +6532,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x4002f515ul #define FW_CDEV_IOC_STOP_ISO 0x8004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x200061d8ul #define PPPIOCSXASYNCMAP 0x8020744ful #define CHIOGSTATUS 0x80106308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x40046d03ul -#define CAPI_SET_FLAGS 0x40044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x20003b6aul #define VHOST_SET_MEM_TABLE 0x8008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x80086ef8ul @@ -6790,7 +6548,6 @@ #define JSIOCGCORR 0x40246a22ul #define VIDIOC_G_FMT 0xc0d05604ul #define RTC_EPOCH_SET 0x8008700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x80106152ul #define SCIF_LISTEN 0x80047302ul #define NBD_CLEAR_QUE 0x2000ab05ul @@ -6829,7 +6586,6 @@ #define VIDIOC_QBUF 0xc058560ful #define VIDIOC_S_TUNER 0x8054561eul #define TUNGETVNETHDRSZ 0x400454d7ul -#define CAPI_NCCI_GETUNIT 0x40044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x4004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00856c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -6839,7 +6595,6 @@ #define VHOST_SET_LOG_FD 0x8004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x20006163ul #define VIDIOC_DBG_S_REGISTER 0x8038564ful #define NILFS_IOCTL_RESIZE 0x80086e8bul #define PHN_GETREG 0xc0087005ul @@ -6867,9 +6622,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x20003b74ul -#define ATMARP_SETENTRY 0x200061e3ul #define CCISS_REVALIDVOLS 0x2000420aul -#define MGSL_IOCLOOPTXDONE 0x20006d09ul #define RTC_VL_READ 0x40047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x80206d18ul @@ -6892,7 +6645,6 @@ #define TUNGETVNETLE 0x400454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x20006d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x40085617ul #define I2OVALIDATE 0x40046908ul @@ -6912,8 +6664,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x2000024aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x40024322ul #define EVIOCGMASK 0x40104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x40089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -6922,7 +6672,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x80042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0x2000f504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x80800290ul #define IOC_OPAL_SAVE 0x811870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -6948,13 +6697,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0x2000b641ul #define PHN_SET_REGS 0x80087003ul -#define ATMLEC_DATA 0x200061d1ul -#define PPPOEIOCDFWD 0x2000b101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x20003309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x80106163ul #define MTIOCPOS 0x40086d03ul #define PMU_IOC_SLEEP 0x20004200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -7027,7 +6773,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x40049370ul -#define ATM_ADDPARTY 0x801061f4ul #define FDSETPRM 0x80200242ul #define ATM_GETSTATZ 0x80106151ul #define ISST_IF_MSR_COMMAND 0xc008fe04ul @@ -7038,7 +6783,6 @@ #define PCITEST_COPY 0x80085006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x40046912ul #define CHIOGPICKER 0x40046304ul -#define CAPI_NCCI_OPENCOUNT 0x40044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x80082406ul #define IOC_OPAL_REVERT_TPR 0x810870e2ul @@ -7071,12 +6815,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x4004b645ul #define USBDEVFS_REAPURB32 0x8004550cul #define BTRFS_IOC_TRANS_END 0x20009407ul -#define CAPI_REGISTER 0x800c4301ul #define F2FS_IOC_COMPRESS_FILE 0x2000f518ul #define USBDEVFS_DISCARDURB 0x2000550bul -#define HE_GET_REG 0x80106160ul #define ATM_SETLOOP 0x80106153ul -#define ATMSIGD_CTRL 0x200061f0ul #define CIOC_KERNEL_VERSION 0xc008630aul #define BTRFS_IOC_CLONE_RANGE 0x8020940dul #define SNAPSHOT_UNFREEZE 0x20003302ul @@ -7103,7 +6844,6 @@ #define PPPIOCGFLAGS 0x4004745aul #define NILFS_IOCTL_SET_SUINFO 0x80186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x8010618ful #define FW_CDEV_IOC_GET_SPEED 0x20002311ul #define PPPIOCGIDLE32 0x4008743ful #define VFIO_DEVICE_RESET 0x20003b6ful @@ -7154,7 +6894,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0x2000b644ul #define I2OLCTGET 0xc0186902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x80106614ul -#define NS_SETBUFLEV 0x80106162ul #define BLKCLOSEZONE 0x80101287ul #define SONET_GETFRSENSE 0x40066117ul #define UI_SET_EVBIT 0x80045564ul @@ -7183,7 +6922,6 @@ #define USBDEVFS_RESETEP 0x40045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x20007c80ul #define USBDEVFS_ALLOC_STREAMS 0x4008551cul -#define MGSL_IOCSXCTRL 0x20006d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x20007434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0x2000f502ul @@ -7196,7 +6934,6 @@ #define UI_SET_PHYS 0x8008556cul #define FDWERRORGET 0x40280217ul #define VIDIOC_SUBDEV_G_EDID 0xc0285628ul -#define MGSL_IOCGSTATS 0x20006d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x8004b701ul #define SIOCGSTAMP_NEW 0x40108906ul #define RTC_WKALM_RD 0x40287010ul @@ -7209,7 +6946,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x8008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x9000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x40084205ul #define KCOV_ENABLE 0x20006364ul #define BTRFS_IOC_CLONE 0x80049409ul @@ -7217,8 +6953,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x8004230eul #define AGPIOC_ALLOCATE 0xc0084106ul #define NE_SET_USER_MEMORY_REGION 0x8018ae23ul -#define MGSL_IOCTXABORT 0x20006d06ul -#define MGSL_IOCSGPIO 0x80106d10ul #define LIRC_SET_REC_CARRIER 0x80046914ul #define F2FS_IOC_FLUSH_DEVICE 0x8008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x20003304ul @@ -7235,8 +6969,6 @@ #define ATM_GETLINKRATE 0x80106181ul #define RTC_WKALM_SET 0x8028700ful #define VHOST_GET_BACKEND_FEATURES 0x4008af26ul -#define ATMARP_ENCAP 0x200061e5ul -#define CAPI_GET_FLAGS 0x40044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x40046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x8004b682ul #define NS_GET_OWNER_UID 0x2000b704ul @@ -7244,7 +6976,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x80089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x8008af14ul -#define ATM_GETADDR 0x80106186ul #define PHN_GET_REGS 0xc0087002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -7264,7 +6995,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x200061e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0x2000b101ul #define HIDIOCGVERSION 0x40044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -7276,7 +7006,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x81045508ul -#define IDT77105_GETSTAT 0x80106132ul #define HIDIOCINITREPORT 0x20004805ul #define VFIO_DEVICE_GET_INFO 0x20003b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -7320,7 +7049,6 @@ #define IOC_PR_RELEASE 0x801070caul #define PPCLRIRQ 0x40047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x4004691aul -#define MGSL_IOCSXSYNC 0x20006d13ul #define HPET_IE_OFF 0x20006802ul #define IOC_OPAL_ACTIVATE_USR 0x811070e1ul #define SONET_SETFRAMING 0x80046115ul @@ -7340,7 +7068,6 @@ #define VIDIOC_S_PRIORITY 0x80045644ul #define SNAPSHOT_FREEZE 0x20003301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x80106162ul #define RIO_DISABLE_DOORBELL_RANGE 0x80086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x40085617ul @@ -7352,7 +7079,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x80044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x4040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x8004f506ul -#define ATMLEC_CTRL 0x200061d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x40086ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x4002af76ul @@ -7363,7 +7089,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x20004e45ul #define PTP_EXTTS_REQUEST2 0x80103d0bul #define PCITEST_BAR 0x20005001ul -#define MGSL_IOCGGPIO 0x40106d11ul #define EVIOCSREP 0x80084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x20003b6dul #define HPET_DPI 0x20006805ul @@ -7383,7 +7108,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0x2000f501ul #define VIDIOC_G_OUTPUT 0x4004562eul -#define ATM_DROPPARTY 0x800461f5ul #define CHIOGELEM 0x806c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x40489439ul #define EVIOCSKEYCODE 0x80084504ul @@ -7396,7 +7120,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x80042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x20005761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x20003b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x8010b300ul #define VIDIOC_G_EDID 0xc0285628ul @@ -7417,7 +7140,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x8010618cul #define FW_CDEV_IOC_START_ISO 0x8010230aul -#define ATM_DELADDR 0x80106189ul #define PPFCONTROL 0x8002708eul #define SONYPI_IOCGFAN 0x4001760aul #define RTC_IRQP_SET 0x8008700cul @@ -7430,11 +7152,9 @@ #define VIDIOC_DQBUF 0xc0585611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x44009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x8008941aul -#define ATMLEC_MCAST 0x200061d2ul #define MMTIMER_GETFREQ 0x40086d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x80247007ul -#define PPPOEIOCSFWD 0x8008b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x4004691eul #define FS_IOC_ENABLE_VERITY 0x80806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -7469,7 +7189,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x2000942eul #define RIO_CM_CHAN_BIND 0x80086305ul #define HIDIOCGRDESC 0x50044802ul -#define MGSL_IOCGIF 0x20006d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x40045702ul @@ -7498,6 +7217,17 @@ #define ACRN_IOCTL_RESET_VM 0x2000a215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0x2000a234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x8008a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0x2000ff01ul +#define PIDFD_GET_IPC_NAMESPACE 0x2000ff02ul +#define PIDFD_GET_MNT_NAMESPACE 0x2000ff03ul +#define PIDFD_GET_NET_NAMESPACE 0x2000ff04ul +#define PIDFD_GET_PID_NAMESPACE 0x2000ff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0x2000ff06ul +#define PIDFD_GET_TIME_NAMESPACE 0x2000ff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0x2000ff08ul +#define PIDFD_GET_USER_NAMESPACE 0x2000ff09ul +#define PIDFD_GET_UTS_NAMESPACE 0x2000ff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #if defined(__powerpc__) && !defined(__powerpc64__) #define FIONREAD 0x4004667ful @@ -7763,8 +7493,10 @@ #define EXT4_IOC_GETRSVSZ 0x40046605ul #define EXT4_IOC_SETRSVSZ 0x80046606ul #define EXT4_IOC_GROUP_EXTEND 0x80046607ul +#define EXT4_IOC_GROUP_ADD 0x80286608ul #define EXT4_IOC_MIGRATE 0x20006609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x2000660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x80086610ul #define EXT4_IOC_SWAP_BOOT 0x20006611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x20006612ul @@ -7772,6 +7504,8 @@ #define EXT4_IOC_GETSTATE 0x80046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x8004662bul +#define EXT4_IOC_GETFSUUID 0x4008662cul +#define EXT4_IOC_SETFSUUID 0x8008662cul #define EXT4_IOC_SHUTDOWN 0x4004587dul #define EXT4_IOC32_GETVERSION 0x40046603ul #define EXT4_IOC32_SETVERSION 0x80046604ul @@ -7792,8 +7526,6 @@ #define TUNSETPERSIST 0x800454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x800c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x40206d01ul -#define ENI_SETMULT 0x800c6167ul #define RIO_GET_EVENT_MASK 0x40046d0eul #define LIRC_GET_MAX_TIMEOUT 0x40046909ul #define USBDEVFS_CLAIMINTERFACE 0x4004550ful @@ -7830,19 +7562,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x4004a405ul -#define NS_GETPSTAT 0xc00c6161ul #define UI_SET_PROPBIT 0x8004556eul #define TUNSETFILTEREBPF 0x400454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x80046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x40045704ul #define VHOST_SCSI_SET_ENDPOINT 0x80e8af40ul -#define MGSL_IOCGTXIDLE 0x20006d03ul -#define ATM_ADDLECSADDR 0x800c618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x401c0204ul #define HIDIOCAPPLICATION 0x20004802ul -#define ENI_MEMDUMP 0x800c6160ul #define PTP_SYS_OFFSET2 0x83403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x80046201ul @@ -7852,10 +7580,8 @@ #define RTC_EPOCH_READ 0x4004700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x800c6190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x40046114ul -#define ATMMPC_DATA 0x200061d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x400c691dul #define HIDIOCGCOLLECTIONINDEX 0x80184810ul #define RPMSG_CREATE_EPT_IOCTL 0x8028b501ul @@ -7903,7 +7629,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x20005516ul #define TUNSETVNETBE 0x800454deul -#define ATMTCP_REMOVE 0x2000618ful #define VHOST_VDPA_GET_CONFIG 0x4008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x40580211ul @@ -7914,7 +7639,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x4004709aul #define VDUSE_DEV_GET_FEATURES 0x40088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -7922,13 +7646,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0x2000f50ful #define DFL_FPGA_PORT_DMA_MAP 0x2000b643ul -#define MGSL_IOCGXCTRL 0x20006d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x80282301ul #define SONYPI_IOCGBLUE 0x40017608ul #define F2FS_IOC_DECOMPRESS_FILE 0x2000f517ul #define I2OHTML 0xc01c6909ul #define VFIO_GET_API_VERSION 0x20003b64ul -#define IDT77105_GETSTATZ 0x800c6133ul #define I2OPARMSET 0xc0186903ul #define TEE_IOC_CANCEL 0x4008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -7950,7 +7672,6 @@ #define FDGETMAXERRS 0x4014020eul #define TUNSETQUEUE 0x800454d9ul #define PTP_ENABLE_PPS 0x80043d04ul -#define SIOCSIFATMTCP 0x20006180ul #define CEC_ADAP_G_LOG_ADDRS 0x405c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0x2000ab01ul @@ -8013,14 +7734,11 @@ #define FDEJECT 0x2000025aul #define TUNSETOFFLOAD 0x800454d0ul #define PPPIOCCONNECT 0x8004743aul -#define ATM_ADDADDR 0x800c6188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x20008113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x4001af71ul #define CCISS_PASSTHRU 0xc054420bul -#define MGSL_IOCCLRMODCOUNT 0x20006d0ful #define TEE_IOC_SUPPL_SEND 0x4010a407ul -#define ATMARPD_CTRL 0x200061e1ul #define UI_ABS_SETUP 0x801c5504ul #define UI_DEV_DESTROY 0x20005502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -8047,7 +7765,6 @@ #define RTC_WIE_ON 0x2000700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x80206d00ul #define RTC_SET_TIME 0x8024700aul #define VHOST_RESET_OWNER 0x2000af02ul #define IOC_OPAL_PSID_REVERT_TPR 0x810870e8ul @@ -8073,18 +7790,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x20005517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x200061e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x20003b70ul #define CCISS_GETHEARTBEAT 0x40044206ul -#define ATM_RSTADDR 0x800c6187ul #define NBD_SET_SIZE 0x2000ab02ul #define UDF_GETVOLIDENT 0x40046c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x20006d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x40017081ul -#define MGSL_IOCTXENABLE 0x20006d04ul #define UDF_GETEASIZE 0x40046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0x2000af01ul @@ -8117,7 +7830,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x80042408ul #define UDMABUF_CREATE_LIST 0x80087543ul #define VHOST_SET_LOG_BASE 0x8008af04ul -#define ZATM_GETPOOL 0x800c6161ul #define BR2684_SETFILT 0x801c6190ul #define RNDGETPOOL 0x40085202ul #define PPS_GETPARAMS 0x400470a1ul @@ -8134,7 +7846,6 @@ #define CCISS_REGNEWD 0x2000420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x80047211ul #define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x44d85742ul #define VFIO_EEH_PE_OP 0x20003b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -8164,7 +7875,6 @@ #define STP_POLICY_ID_GET 0x40102501ul #define PPSETFLAGS 0x8004709bul #define CEC_ADAP_S_PHYS_ADDR 0x80026102ul -#define ATMTCP_CREATE 0x2000618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0x2000b102ul #define PPPIOCGXASYNCMAP 0x40207450ul #define VHOST_SET_VRING_CALL 0x8008af21ul @@ -8202,7 +7912,6 @@ #define RTC_RD_TIME 0x40247009ul #define FDMSGOFF 0x20000246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x400c691cul -#define CAPI_GET_ERRCODE 0x40024321ul #define PCITEST_SET_IRQTYPE 0x80045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0245629ul #define MATROXFB_SET_OUTPUT_MODE 0x80046efaul @@ -8221,7 +7930,6 @@ #define VHOST_SET_VRING_NUM 0x8008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x80086d14ul -#define MGSL_IOCRXENABLE 0x20006d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x200007b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x40086916ul #define PPPIOCGL2TPSTATS 0x40487436ul @@ -8237,14 +7945,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x8004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x80089413ul #define RIO_UNMAP_OUTBOUND 0x80286d10ul -#define CAPI_CLR_FLAGS 0x40044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x8018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x40046ef8ul #define EVIOCSMASK 0x80104593ul #define BTRFS_IOC_FORGET_DEV 0x90009405ul #define CXL_MEM_QUERY_COMMANDS 0x4008ce01ul #define CEC_S_MODE 0x80046109ul -#define MGSL_IOCSIF 0x20006d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x80047080ul #define VFIO_DEVICE_SET_IRQS 0x20003b6eul @@ -8268,12 +7974,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x4002f515ul #define FW_CDEV_IOC_STOP_ISO 0x8004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x200061d8ul #define PPPIOCSXASYNCMAP 0x8020744ful #define CHIOGSTATUS 0x80086308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x40046d03ul -#define CAPI_SET_FLAGS 0x40044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x20003b6aul #define VHOST_SET_MEM_TABLE 0x8008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x80046ef8ul @@ -8286,7 +7990,6 @@ #define JSIOCGCORR 0x40246a22ul #define VIDIOC_G_FMT 0xc0cc5604ul #define RTC_EPOCH_SET 0x8004700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x800c6152ul #define SCIF_LISTEN 0x80047302ul #define NBD_CLEAR_QUE 0x2000ab05ul @@ -8325,7 +8028,6 @@ #define VIDIOC_QBUF 0xc044560ful #define VIDIOC_S_TUNER 0x8054561eul #define TUNGETVNETHDRSZ 0x400454d7ul -#define CAPI_NCCI_GETUNIT 0x40044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x4004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -8335,7 +8037,6 @@ #define VHOST_SET_LOG_FD 0x8004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x20006163ul #define VIDIOC_DBG_S_REGISTER 0x8038564ful #define NILFS_IOCTL_RESIZE 0x80086e8bul #define PHN_GETREG 0xc0087005ul @@ -8363,9 +8064,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x20003b74ul -#define ATMARP_SETENTRY 0x200061e3ul #define CCISS_REVALIDVOLS 0x2000420aul -#define MGSL_IOCLOOPTXDONE 0x20006d09ul #define RTC_VL_READ 0x40047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x80206d18ul @@ -8388,7 +8087,6 @@ #define TUNGETVNETLE 0x400454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x20006d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x40085617ul #define I2OVALIDATE 0x40046908ul @@ -8408,8 +8106,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x2000024aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x40024322ul #define EVIOCGMASK 0x40104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x40089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -8418,7 +8114,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x80042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0x2000f504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x80580290ul #define IOC_OPAL_SAVE 0x811870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -8444,13 +8139,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0x2000b641ul #define PHN_SET_REGS 0x80047003ul -#define ATMLEC_DATA 0x200061d1ul -#define PPPOEIOCDFWD 0x2000b101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x20003309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x800c6163ul #define MTIOCPOS 0x40046d03ul #define PMU_IOC_SLEEP 0x20004200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -8523,7 +8215,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x40049370ul -#define ATM_ADDPARTY 0x800861f4ul #define FDSETPRM 0x801c0242ul #define ATM_GETSTATZ 0x800c6151ul #define ISST_IF_MSR_COMMAND 0xc004fe04ul @@ -8534,7 +8225,6 @@ #define PCITEST_COPY 0x80045006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x40046912ul #define CHIOGPICKER 0x40046304ul -#define CAPI_NCCI_OPENCOUNT 0x40044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x80042406ul #define IOC_OPAL_REVERT_TPR 0x810870e2ul @@ -8567,12 +8257,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x4004b645ul #define USBDEVFS_REAPURB32 0x8004550cul #define BTRFS_IOC_TRANS_END 0x20009407ul -#define CAPI_REGISTER 0x800c4301ul #define F2FS_IOC_COMPRESS_FILE 0x2000f518ul #define USBDEVFS_DISCARDURB 0x2000550bul -#define HE_GET_REG 0x800c6160ul #define ATM_SETLOOP 0x800c6153ul -#define ATMSIGD_CTRL 0x200061f0ul #define CIOC_KERNEL_VERSION 0xc004630aul #define BTRFS_IOC_CLONE_RANGE 0x8020940dul #define SNAPSHOT_UNFREEZE 0x20003302ul @@ -8599,7 +8286,6 @@ #define PPPIOCGFLAGS 0x4004745aul #define NILFS_IOCTL_SET_SUINFO 0x80186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x800c618ful #define FW_CDEV_IOC_GET_SPEED 0x20002311ul #define PPPIOCGIDLE32 0x4008743ful #define VFIO_DEVICE_RESET 0x20003b6ful @@ -8650,7 +8336,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0x2000b644ul #define I2OLCTGET 0xc00c6902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x80106614ul -#define NS_SETBUFLEV 0x800c6162ul #define BLKCLOSEZONE 0x80101287ul #define SONET_GETFRSENSE 0x40066117ul #define UI_SET_EVBIT 0x80045564ul @@ -8679,7 +8364,6 @@ #define USBDEVFS_RESETEP 0x40045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x20007c80ul #define USBDEVFS_ALLOC_STREAMS 0x4008551cul -#define MGSL_IOCSXCTRL 0x20006d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x20007434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0x2000f502ul @@ -8692,7 +8376,6 @@ #define UI_SET_PHYS 0x8004556cul #define FDWERRORGET 0x40180217ul #define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x20006d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x8004b701ul #define SIOCGSTAMP_NEW 0x40108906ul #define RTC_WKALM_RD 0x40287010ul @@ -8705,7 +8388,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x8008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x9000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x40044205ul #define KCOV_ENABLE 0x20006364ul #define BTRFS_IOC_CLONE 0x80049409ul @@ -8713,8 +8395,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x8004230eul #define AGPIOC_ALLOCATE 0xc0044106ul #define NE_SET_USER_MEMORY_REGION 0x8018ae23ul -#define MGSL_IOCTXABORT 0x20006d06ul -#define MGSL_IOCSGPIO 0x80106d10ul #define LIRC_SET_REC_CARRIER 0x80046914ul #define F2FS_IOC_FLUSH_DEVICE 0x8008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x20003304ul @@ -8731,8 +8411,6 @@ #define ATM_GETLINKRATE 0x800c6181ul #define RTC_WKALM_SET 0x8028700ful #define VHOST_GET_BACKEND_FEATURES 0x4008af26ul -#define ATMARP_ENCAP 0x200061e5ul -#define CAPI_GET_FLAGS 0x40044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x40046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x8004b682ul #define NS_GET_OWNER_UID 0x2000b704ul @@ -8740,7 +8418,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x80089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x8008af14ul -#define ATM_GETADDR 0x800c6186ul #define PHN_GET_REGS 0xc0047002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -8760,7 +8437,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x200061e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0x2000b101ul #define HIDIOCGVERSION 0x40044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -8772,7 +8448,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x81045508ul -#define IDT77105_GETSTAT 0x800c6132ul #define HIDIOCINITREPORT 0x20004805ul #define VFIO_DEVICE_GET_INFO 0x20003b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -8816,7 +8491,6 @@ #define IOC_PR_RELEASE 0x801070caul #define PPCLRIRQ 0x40047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x4004691aul -#define MGSL_IOCSXSYNC 0x20006d13ul #define HPET_IE_OFF 0x20006802ul #define IOC_OPAL_ACTIVATE_USR 0x811070e1ul #define SONET_SETFRAMING 0x80046115ul @@ -8836,7 +8510,6 @@ #define VIDIOC_S_PRIORITY 0x80045644ul #define SNAPSHOT_FREEZE 0x20003301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x800c6162ul #define RIO_DISABLE_DOORBELL_RANGE 0x80086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x40085617ul @@ -8848,7 +8521,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x80044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x4040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x8004f506ul -#define ATMLEC_CTRL 0x200061d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x40046ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x4002af76ul @@ -8859,7 +8531,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x20004e45ul #define PTP_EXTTS_REQUEST2 0x80103d0bul #define PCITEST_BAR 0x20005001ul -#define MGSL_IOCGGPIO 0x40106d11ul #define EVIOCSREP 0x80084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x20003b6dul #define HPET_DPI 0x20006805ul @@ -8879,7 +8550,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0x2000f501ul #define VIDIOC_G_OUTPUT 0x4004562eul -#define ATM_DROPPARTY 0x800461f5ul #define CHIOGELEM 0x806c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x40489439ul #define EVIOCSKEYCODE 0x80084504ul @@ -8892,7 +8562,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x80042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x20005761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x20003b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x8010b300ul #define VIDIOC_G_EDID 0xc0245628ul @@ -8913,7 +8582,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x800c618cul #define FW_CDEV_IOC_START_ISO 0x8010230aul -#define ATM_DELADDR 0x800c6189ul #define PPFCONTROL 0x8002708eul #define SONYPI_IOCGFAN 0x4001760aul #define RTC_IRQP_SET 0x8004700cul @@ -8926,11 +8594,9 @@ #define VIDIOC_DQBUF 0xc0445611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x44009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x8008941aul -#define ATMLEC_MCAST 0x200061d2ul #define MMTIMER_GETFREQ 0x40046d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x80247007ul -#define PPPOEIOCSFWD 0x8004b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x4004691eul #define FS_IOC_ENABLE_VERITY 0x80806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -8965,7 +8631,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x2000942eul #define RIO_CM_CHAN_BIND 0x80086305ul #define HIDIOCGRDESC 0x50044802ul -#define MGSL_IOCGIF 0x20006d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x40045702ul @@ -8994,6 +8659,17 @@ #define ACRN_IOCTL_RESET_VM 0x2000a215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0x2000a234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x8004a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0x2000ff01ul +#define PIDFD_GET_IPC_NAMESPACE 0x2000ff02ul +#define PIDFD_GET_MNT_NAMESPACE 0x2000ff03ul +#define PIDFD_GET_NET_NAMESPACE 0x2000ff04ul +#define PIDFD_GET_PID_NAMESPACE 0x2000ff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0x2000ff06ul +#define PIDFD_GET_TIME_NAMESPACE 0x2000ff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0x2000ff08ul +#define PIDFD_GET_USER_NAMESPACE 0x2000ff09ul +#define PIDFD_GET_UTS_NAMESPACE 0x2000ff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #if __mips == 64 #define FIONREAD 0x467ful @@ -9258,8 +8934,10 @@ #define EXT4_IOC_GETRSVSZ 0x40086605ul #define EXT4_IOC_SETRSVSZ 0x80086606ul #define EXT4_IOC_GROUP_EXTEND 0x80086607ul +#define EXT4_IOC_GROUP_ADD 0x80286608ul #define EXT4_IOC_MIGRATE 0x20006609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x2000660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x80086610ul #define EXT4_IOC_SWAP_BOOT 0x20006611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x20006612ul @@ -9267,6 +8945,8 @@ #define EXT4_IOC_GETSTATE 0x80046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x8004662bul +#define EXT4_IOC_GETFSUUID 0x4008662cul +#define EXT4_IOC_SETFSUUID 0x8008662cul #define EXT4_IOC_SHUTDOWN 0x4004587dul #define EXT4_IOC32_GETVERSION 0x40046603ul #define EXT4_IOC32_SETVERSION 0x80046604ul @@ -9287,8 +8967,6 @@ #define TUNSETPERSIST 0x800454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x800c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x40306d01ul -#define ENI_SETMULT 0x80106167ul #define RIO_GET_EVENT_MASK 0x40046d0eul #define LIRC_GET_MAX_TIMEOUT 0x40046909ul #define USBDEVFS_CLAIMINTERFACE 0x4004550ful @@ -9325,19 +9003,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x4004a405ul -#define NS_GETPSTAT 0xc0106161ul #define UI_SET_PROPBIT 0x8004556eul #define TUNSETFILTEREBPF 0x400454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x80046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x40045704ul #define VHOST_SCSI_SET_ENDPOINT 0x80e8af40ul -#define MGSL_IOCGTXIDLE 0x20006d03ul -#define ATM_ADDLECSADDR 0x8010618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x40200204ul #define HIDIOCAPPLICATION 0x20004802ul -#define ENI_MEMDUMP 0x80106160ul #define PTP_SYS_OFFSET2 0x83403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x80046201ul @@ -9347,10 +9021,8 @@ #define RTC_EPOCH_READ 0x4008700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x80106190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x40046114ul -#define ATMMPC_DATA 0x200061d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x400c691dul #define HIDIOCGCOLLECTIONINDEX 0x80184810ul #define RPMSG_CREATE_EPT_IOCTL 0x8028b501ul @@ -9398,7 +9070,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x20005516ul #define TUNSETVNETBE 0x800454deul -#define ATMTCP_REMOVE 0x2000618ful #define VHOST_VDPA_GET_CONFIG 0x4008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x40800211ul @@ -9409,7 +9080,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x4004709aul #define VDUSE_DEV_GET_FEATURES 0x40088111ul -#define CAPI_MANUFACTURER_CMD 0xc0104320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -9417,13 +9087,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc0287c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0x2000f50ful #define DFL_FPGA_PORT_DMA_MAP 0x2000b643ul -#define MGSL_IOCGXCTRL 0x20006d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x80282301ul #define SONYPI_IOCGBLUE 0x40017608ul #define F2FS_IOC_DECOMPRESS_FILE 0x2000f517ul #define I2OHTML 0xc0306909ul #define VFIO_GET_API_VERSION 0x20003b64ul -#define IDT77105_GETSTATZ 0x80106133ul #define I2OPARMSET 0xc0286903ul #define TEE_IOC_CANCEL 0x4008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -9445,7 +9113,6 @@ #define FDGETMAXERRS 0x4014020eul #define TUNSETQUEUE 0x800454d9ul #define PTP_ENABLE_PPS 0x80043d04ul -#define SIOCSIFATMTCP 0x20006180ul #define CEC_ADAP_G_LOG_ADDRS 0x405c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0x2000ab01ul @@ -9508,14 +9175,11 @@ #define FDEJECT 0x2000025aul #define TUNSETOFFLOAD 0x800454d0ul #define PPPIOCCONNECT 0x8004743aul -#define ATM_ADDADDR 0x80106188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x20008113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x4001af71ul #define CCISS_PASSTHRU 0xc058420bul -#define MGSL_IOCCLRMODCOUNT 0x20006d0ful #define TEE_IOC_SUPPL_SEND 0x4010a407ul -#define ATMARPD_CTRL 0x200061e1ul #define UI_ABS_SETUP 0x801c5504ul #define UI_DEV_DESTROY 0x20005502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -9542,7 +9206,6 @@ #define RTC_WIE_ON 0x2000700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x80306d00ul #define RTC_SET_TIME 0x8024700aul #define VHOST_RESET_OWNER 0x2000af02ul #define IOC_OPAL_PSID_REVERT_TPR 0x810870e8ul @@ -9568,18 +9231,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x20005517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x200061e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x20003b70ul #define CCISS_GETHEARTBEAT 0x40044206ul -#define ATM_RSTADDR 0x80106187ul #define NBD_SET_SIZE 0x2000ab02ul #define UDF_GETVOLIDENT 0x40086c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x20006d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x40017081ul -#define MGSL_IOCTXENABLE 0x20006d04ul #define UDF_GETEASIZE 0x40046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0x2000af01ul @@ -9612,7 +9271,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x80042408ul #define UDMABUF_CREATE_LIST 0x80087543ul #define VHOST_SET_LOG_BASE 0x8008af04ul -#define ZATM_GETPOOL 0x80106161ul #define BR2684_SETFILT 0x801c6190ul #define RNDGETPOOL 0x40085202ul #define PPS_GETPARAMS 0x400870a1ul @@ -9629,7 +9287,6 @@ #define CCISS_REGNEWD 0x2000420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x80047211ul #define VIDIOC_CREATE_BUFS 0xc100565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x44d85742ul #define VFIO_EEH_PE_OP 0x20003b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -9659,7 +9316,6 @@ #define STP_POLICY_ID_GET 0x40102501ul #define PPSETFLAGS 0x8004709bul #define CEC_ADAP_S_PHYS_ADDR 0x80026102ul -#define ATMTCP_CREATE 0x2000618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0x2000b102ul #define PPPIOCGXASYNCMAP 0x40207450ul #define VHOST_SET_VRING_CALL 0x8008af21ul @@ -9697,7 +9353,6 @@ #define RTC_RD_TIME 0x40247009ul #define FDMSGOFF 0x20000246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x400c691cul -#define CAPI_GET_ERRCODE 0x40024321ul #define PCITEST_SET_IRQTYPE 0x80045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0285629ul #define MATROXFB_SET_OUTPUT_MODE 0x80086efaul @@ -9716,7 +9371,6 @@ #define VHOST_SET_VRING_NUM 0x8008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x80086d14ul -#define MGSL_IOCRXENABLE 0x20006d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x200007b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x40086916ul #define PPPIOCGL2TPSTATS 0x40487436ul @@ -9732,14 +9386,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x8004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x80089413ul #define RIO_UNMAP_OUTBOUND 0x80286d10ul -#define CAPI_CLR_FLAGS 0x40044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x8018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x40086ef8ul #define EVIOCSMASK 0x80104593ul #define BTRFS_IOC_FORGET_DEV 0x90009405ul #define CXL_MEM_QUERY_COMMANDS 0x4008ce01ul #define CEC_S_MODE 0x80046109ul -#define MGSL_IOCSIF 0x20006d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x80047080ul #define VFIO_DEVICE_SET_IRQS 0x20003b6eul @@ -9763,12 +9415,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x4002f515ul #define FW_CDEV_IOC_STOP_ISO 0x8004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x200061d8ul #define PPPIOCSXASYNCMAP 0x8020744ful #define CHIOGSTATUS 0x80106308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x40046d03ul -#define CAPI_SET_FLAGS 0x40044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x20003b6aul #define VHOST_SET_MEM_TABLE 0x8008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x80086ef8ul @@ -9781,7 +9431,6 @@ #define JSIOCGCORR 0x40246a22ul #define VIDIOC_G_FMT 0xc0d05604ul #define RTC_EPOCH_SET 0x8008700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x80106152ul #define SCIF_LISTEN 0x80047302ul #define NBD_CLEAR_QUE 0x2000ab05ul @@ -9820,7 +9469,6 @@ #define VIDIOC_QBUF 0xc058560ful #define VIDIOC_S_TUNER 0x8054561eul #define TUNGETVNETHDRSZ 0x400454d7ul -#define CAPI_NCCI_GETUNIT 0x40044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x4004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00856c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -9830,7 +9478,6 @@ #define VHOST_SET_LOG_FD 0x8004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x20006163ul #define VIDIOC_DBG_S_REGISTER 0x8038564ful #define NILFS_IOCTL_RESIZE 0x80086e8bul #define PHN_GETREG 0xc0087005ul @@ -9858,9 +9505,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x20003b74ul -#define ATMARP_SETENTRY 0x200061e3ul #define CCISS_REVALIDVOLS 0x2000420aul -#define MGSL_IOCLOOPTXDONE 0x20006d09ul #define RTC_VL_READ 0x40047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x80206d18ul @@ -9883,7 +9528,6 @@ #define TUNGETVNETLE 0x400454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x20006d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x40085617ul #define I2OVALIDATE 0x40046908ul @@ -9903,8 +9547,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x2000024aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x40024322ul #define EVIOCGMASK 0x40104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x40089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -9913,7 +9555,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x80042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0x2000f504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x80800290ul #define IOC_OPAL_SAVE 0x811870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -9939,13 +9580,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0x2000b641ul #define PHN_SET_REGS 0x80087003ul -#define ATMLEC_DATA 0x200061d1ul -#define PPPOEIOCDFWD 0x2000b101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x20003309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x80106163ul #define MTIOCPOS 0x40086d03ul #define PMU_IOC_SLEEP 0x20004200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -10018,7 +9656,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x40049370ul -#define ATM_ADDPARTY 0x801061f4ul #define FDSETPRM 0x80200242ul #define ATM_GETSTATZ 0x80106151ul #define ISST_IF_MSR_COMMAND 0xc008fe04ul @@ -10029,7 +9666,6 @@ #define PCITEST_COPY 0x80085006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x40046912ul #define CHIOGPICKER 0x40046304ul -#define CAPI_NCCI_OPENCOUNT 0x40044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x80082406ul #define IOC_OPAL_REVERT_TPR 0x810870e2ul @@ -10062,12 +9698,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x4004b645ul #define USBDEVFS_REAPURB32 0x8004550cul #define BTRFS_IOC_TRANS_END 0x20009407ul -#define CAPI_REGISTER 0x800c4301ul #define F2FS_IOC_COMPRESS_FILE 0x2000f518ul #define USBDEVFS_DISCARDURB 0x2000550bul -#define HE_GET_REG 0x80106160ul #define ATM_SETLOOP 0x80106153ul -#define ATMSIGD_CTRL 0x200061f0ul #define CIOC_KERNEL_VERSION 0xc008630aul #define BTRFS_IOC_CLONE_RANGE 0x8020940dul #define SNAPSHOT_UNFREEZE 0x20003302ul @@ -10094,7 +9727,6 @@ #define PPPIOCGFLAGS 0x4004745aul #define NILFS_IOCTL_SET_SUINFO 0x80186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x8010618ful #define FW_CDEV_IOC_GET_SPEED 0x20002311ul #define PPPIOCGIDLE32 0x4008743ful #define VFIO_DEVICE_RESET 0x20003b6ful @@ -10145,7 +9777,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0x2000b644ul #define I2OLCTGET 0xc0186902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x80106614ul -#define NS_SETBUFLEV 0x80106162ul #define BLKCLOSEZONE 0x80101287ul #define SONET_GETFRSENSE 0x40066117ul #define UI_SET_EVBIT 0x80045564ul @@ -10174,7 +9805,6 @@ #define USBDEVFS_RESETEP 0x40045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x20007c80ul #define USBDEVFS_ALLOC_STREAMS 0x4008551cul -#define MGSL_IOCSXCTRL 0x20006d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x20007434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0x2000f502ul @@ -10187,7 +9817,6 @@ #define UI_SET_PHYS 0x8008556cul #define FDWERRORGET 0x40280217ul #define VIDIOC_SUBDEV_G_EDID 0xc0285628ul -#define MGSL_IOCGSTATS 0x20006d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x8004b701ul #define SIOCGSTAMP_NEW 0x40108906ul #define RTC_WKALM_RD 0x40287010ul @@ -10200,7 +9829,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x8008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x9000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x40084205ul #define KCOV_ENABLE 0x20006364ul #define BTRFS_IOC_CLONE 0x80049409ul @@ -10208,8 +9836,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x8004230eul #define AGPIOC_ALLOCATE 0xc0084106ul #define NE_SET_USER_MEMORY_REGION 0x8018ae23ul -#define MGSL_IOCTXABORT 0x20006d06ul -#define MGSL_IOCSGPIO 0x80106d10ul #define LIRC_SET_REC_CARRIER 0x80046914ul #define F2FS_IOC_FLUSH_DEVICE 0x8008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x20003304ul @@ -10226,8 +9852,6 @@ #define ATM_GETLINKRATE 0x80106181ul #define RTC_WKALM_SET 0x8028700ful #define VHOST_GET_BACKEND_FEATURES 0x4008af26ul -#define ATMARP_ENCAP 0x200061e5ul -#define CAPI_GET_FLAGS 0x40044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x40046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x8004b682ul #define NS_GET_OWNER_UID 0x2000b704ul @@ -10235,7 +9859,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x80089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x8008af14ul -#define ATM_GETADDR 0x80106186ul #define PHN_GET_REGS 0xc0087002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -10255,7 +9878,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x200061e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0x2000b101ul #define HIDIOCGVERSION 0x40044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -10267,7 +9889,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x81045508ul -#define IDT77105_GETSTAT 0x80106132ul #define HIDIOCINITREPORT 0x20004805ul #define VFIO_DEVICE_GET_INFO 0x20003b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -10311,7 +9932,6 @@ #define IOC_PR_RELEASE 0x801070caul #define PPCLRIRQ 0x40047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x4004691aul -#define MGSL_IOCSXSYNC 0x20006d13ul #define HPET_IE_OFF 0x20006802ul #define IOC_OPAL_ACTIVATE_USR 0x811070e1ul #define SONET_SETFRAMING 0x80046115ul @@ -10331,7 +9951,6 @@ #define VIDIOC_S_PRIORITY 0x80045644ul #define SNAPSHOT_FREEZE 0x20003301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x80106162ul #define RIO_DISABLE_DOORBELL_RANGE 0x80086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x40085617ul @@ -10343,7 +9962,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x80044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x4040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x8004f506ul -#define ATMLEC_CTRL 0x200061d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x40086ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x4002af76ul @@ -10354,7 +9972,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x20004e45ul #define PTP_EXTTS_REQUEST2 0x80103d0bul #define PCITEST_BAR 0x20005001ul -#define MGSL_IOCGGPIO 0x40106d11ul #define EVIOCSREP 0x80084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x20003b6dul #define HPET_DPI 0x20006805ul @@ -10374,7 +9991,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0x2000f501ul #define VIDIOC_G_OUTPUT 0x4004562eul -#define ATM_DROPPARTY 0x800461f5ul #define CHIOGELEM 0x806c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x40489439ul #define EVIOCSKEYCODE 0x80084504ul @@ -10387,7 +10003,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x80042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x20005761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x20003b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x8010b300ul #define VIDIOC_G_EDID 0xc0285628ul @@ -10408,7 +10023,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x8010618cul #define FW_CDEV_IOC_START_ISO 0x8010230aul -#define ATM_DELADDR 0x80106189ul #define PPFCONTROL 0x8002708eul #define SONYPI_IOCGFAN 0x4001760aul #define RTC_IRQP_SET 0x8008700cul @@ -10421,11 +10035,9 @@ #define VIDIOC_DQBUF 0xc0585611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x44009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x8008941aul -#define ATMLEC_MCAST 0x200061d2ul #define MMTIMER_GETFREQ 0x40086d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x80247007ul -#define PPPOEIOCSFWD 0x8008b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x4004691eul #define FS_IOC_ENABLE_VERITY 0x80806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -10460,7 +10072,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x2000942eul #define RIO_CM_CHAN_BIND 0x80086305ul #define HIDIOCGRDESC 0x50044802ul -#define MGSL_IOCGIF 0x20006d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x40045702ul @@ -10489,6 +10100,17 @@ #define ACRN_IOCTL_RESET_VM 0x2000a215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0x2000a234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x8008a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0x2000ff01ul +#define PIDFD_GET_IPC_NAMESPACE 0x2000ff02ul +#define PIDFD_GET_MNT_NAMESPACE 0x2000ff03ul +#define PIDFD_GET_NET_NAMESPACE 0x2000ff04ul +#define PIDFD_GET_PID_NAMESPACE 0x2000ff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0x2000ff06ul +#define PIDFD_GET_TIME_NAMESPACE 0x2000ff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0x2000ff08ul +#define PIDFD_GET_USER_NAMESPACE 0x2000ff09ul +#define PIDFD_GET_UTS_NAMESPACE 0x2000ff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #if __mips == 32 #define FIONREAD 0x467ful @@ -10753,8 +10375,10 @@ #define EXT4_IOC_GETRSVSZ 0x40046605ul #define EXT4_IOC_SETRSVSZ 0x80046606ul #define EXT4_IOC_GROUP_EXTEND 0x80046607ul +#define EXT4_IOC_GROUP_ADD 0x80286608ul #define EXT4_IOC_MIGRATE 0x20006609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x2000660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x80086610ul #define EXT4_IOC_SWAP_BOOT 0x20006611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x20006612ul @@ -10762,6 +10386,8 @@ #define EXT4_IOC_GETSTATE 0x80046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x8004662bul +#define EXT4_IOC_GETFSUUID 0x4008662cul +#define EXT4_IOC_SETFSUUID 0x8008662cul #define EXT4_IOC_SHUTDOWN 0x4004587dul #define EXT4_IOC32_GETVERSION 0x40046603ul #define EXT4_IOC32_SETVERSION 0x80046604ul @@ -10782,8 +10408,6 @@ #define TUNSETPERSIST 0x800454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x800c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x40206d01ul -#define ENI_SETMULT 0x800c6167ul #define RIO_GET_EVENT_MASK 0x40046d0eul #define LIRC_GET_MAX_TIMEOUT 0x40046909ul #define USBDEVFS_CLAIMINTERFACE 0x4004550ful @@ -10820,19 +10444,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x4004a405ul -#define NS_GETPSTAT 0xc00c6161ul #define UI_SET_PROPBIT 0x8004556eul #define TUNSETFILTEREBPF 0x400454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x80046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x40045704ul #define VHOST_SCSI_SET_ENDPOINT 0x80e8af40ul -#define MGSL_IOCGTXIDLE 0x20006d03ul -#define ATM_ADDLECSADDR 0x800c618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x401c0204ul #define HIDIOCAPPLICATION 0x20004802ul -#define ENI_MEMDUMP 0x800c6160ul #define PTP_SYS_OFFSET2 0x83403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x80046201ul @@ -10842,10 +10462,8 @@ #define RTC_EPOCH_READ 0x4004700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x800c6190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x40046114ul -#define ATMMPC_DATA 0x200061d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x400c691dul #define HIDIOCGCOLLECTIONINDEX 0x80184810ul #define RPMSG_CREATE_EPT_IOCTL 0x8028b501ul @@ -10893,7 +10511,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x20005516ul #define TUNSETVNETBE 0x800454deul -#define ATMTCP_REMOVE 0x2000618ful #define VHOST_VDPA_GET_CONFIG 0x4008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x40580211ul @@ -10904,7 +10521,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x4004709aul #define VDUSE_DEV_GET_FEATURES 0x40088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -10912,13 +10528,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0x2000f50ful #define DFL_FPGA_PORT_DMA_MAP 0x2000b643ul -#define MGSL_IOCGXCTRL 0x20006d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x80282301ul #define SONYPI_IOCGBLUE 0x40017608ul #define F2FS_IOC_DECOMPRESS_FILE 0x2000f517ul #define I2OHTML 0xc01c6909ul #define VFIO_GET_API_VERSION 0x20003b64ul -#define IDT77105_GETSTATZ 0x800c6133ul #define I2OPARMSET 0xc0186903ul #define TEE_IOC_CANCEL 0x4008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -10940,7 +10554,6 @@ #define FDGETMAXERRS 0x4014020eul #define TUNSETQUEUE 0x800454d9ul #define PTP_ENABLE_PPS 0x80043d04ul -#define SIOCSIFATMTCP 0x20006180ul #define CEC_ADAP_G_LOG_ADDRS 0x405c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0x2000ab01ul @@ -11003,14 +10616,11 @@ #define FDEJECT 0x2000025aul #define TUNSETOFFLOAD 0x800454d0ul #define PPPIOCCONNECT 0x8004743aul -#define ATM_ADDADDR 0x800c6188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x20008113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x4001af71ul #define CCISS_PASSTHRU 0xc054420bul -#define MGSL_IOCCLRMODCOUNT 0x20006d0ful #define TEE_IOC_SUPPL_SEND 0x4010a407ul -#define ATMARPD_CTRL 0x200061e1ul #define UI_ABS_SETUP 0x801c5504ul #define UI_DEV_DESTROY 0x20005502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -11037,7 +10647,6 @@ #define RTC_WIE_ON 0x2000700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x80206d00ul #define RTC_SET_TIME 0x8024700aul #define VHOST_RESET_OWNER 0x2000af02ul #define IOC_OPAL_PSID_REVERT_TPR 0x810870e8ul @@ -11063,18 +10672,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x20005517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x200061e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x20003b70ul #define CCISS_GETHEARTBEAT 0x40044206ul -#define ATM_RSTADDR 0x800c6187ul #define NBD_SET_SIZE 0x2000ab02ul #define UDF_GETVOLIDENT 0x40046c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x20006d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x40017081ul -#define MGSL_IOCTXENABLE 0x20006d04ul #define UDF_GETEASIZE 0x40046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0x2000af01ul @@ -11107,7 +10712,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x80042408ul #define UDMABUF_CREATE_LIST 0x80087543ul #define VHOST_SET_LOG_BASE 0x8008af04ul -#define ZATM_GETPOOL 0x800c6161ul #define BR2684_SETFILT 0x801c6190ul #define RNDGETPOOL 0x40085202ul #define PPS_GETPARAMS 0x400470a1ul @@ -11124,7 +10728,6 @@ #define CCISS_REGNEWD 0x2000420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x80047211ul #define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x44d85742ul #define VFIO_EEH_PE_OP 0x20003b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -11154,7 +10757,6 @@ #define STP_POLICY_ID_GET 0x40102501ul #define PPSETFLAGS 0x8004709bul #define CEC_ADAP_S_PHYS_ADDR 0x80026102ul -#define ATMTCP_CREATE 0x2000618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0x2000b102ul #define PPPIOCGXASYNCMAP 0x40207450ul #define VHOST_SET_VRING_CALL 0x8008af21ul @@ -11192,7 +10794,6 @@ #define RTC_RD_TIME 0x40247009ul #define FDMSGOFF 0x20000246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x400c691cul -#define CAPI_GET_ERRCODE 0x40024321ul #define PCITEST_SET_IRQTYPE 0x80045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0245629ul #define MATROXFB_SET_OUTPUT_MODE 0x80046efaul @@ -11211,7 +10812,6 @@ #define VHOST_SET_VRING_NUM 0x8008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x80086d14ul -#define MGSL_IOCRXENABLE 0x20006d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x200007b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x40086916ul #define PPPIOCGL2TPSTATS 0x40487436ul @@ -11227,14 +10827,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x8004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x80089413ul #define RIO_UNMAP_OUTBOUND 0x80286d10ul -#define CAPI_CLR_FLAGS 0x40044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x8018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x40046ef8ul #define EVIOCSMASK 0x80104593ul #define BTRFS_IOC_FORGET_DEV 0x90009405ul #define CXL_MEM_QUERY_COMMANDS 0x4008ce01ul #define CEC_S_MODE 0x80046109ul -#define MGSL_IOCSIF 0x20006d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x80047080ul #define VFIO_DEVICE_SET_IRQS 0x20003b6eul @@ -11258,12 +10856,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x4002f515ul #define FW_CDEV_IOC_STOP_ISO 0x8004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x200061d8ul #define PPPIOCSXASYNCMAP 0x8020744ful #define CHIOGSTATUS 0x80086308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x40046d03ul -#define CAPI_SET_FLAGS 0x40044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x20003b6aul #define VHOST_SET_MEM_TABLE 0x8008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x80046ef8ul @@ -11276,7 +10872,6 @@ #define JSIOCGCORR 0x40246a22ul #define VIDIOC_G_FMT 0xc0cc5604ul #define RTC_EPOCH_SET 0x8004700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x800c6152ul #define SCIF_LISTEN 0x80047302ul #define NBD_CLEAR_QUE 0x2000ab05ul @@ -11315,7 +10910,6 @@ #define VIDIOC_QBUF 0xc044560ful #define VIDIOC_S_TUNER 0x8054561eul #define TUNGETVNETHDRSZ 0x400454d7ul -#define CAPI_NCCI_GETUNIT 0x40044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x4004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -11325,7 +10919,6 @@ #define VHOST_SET_LOG_FD 0x8004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x20006163ul #define VIDIOC_DBG_S_REGISTER 0x8038564ful #define NILFS_IOCTL_RESIZE 0x80086e8bul #define PHN_GETREG 0xc0087005ul @@ -11353,9 +10946,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x20003b74ul -#define ATMARP_SETENTRY 0x200061e3ul #define CCISS_REVALIDVOLS 0x2000420aul -#define MGSL_IOCLOOPTXDONE 0x20006d09ul #define RTC_VL_READ 0x40047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x80206d18ul @@ -11378,7 +10969,6 @@ #define TUNGETVNETLE 0x400454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x20006d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x40085617ul #define I2OVALIDATE 0x40046908ul @@ -11398,8 +10988,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x2000024aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x40024322ul #define EVIOCGMASK 0x40104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x40089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -11408,7 +10996,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x80042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0x2000f504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x80580290ul #define IOC_OPAL_SAVE 0x811870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -11434,13 +11021,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0x2000b641ul #define PHN_SET_REGS 0x80047003ul -#define ATMLEC_DATA 0x200061d1ul -#define PPPOEIOCDFWD 0x2000b101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x20003309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x800c6163ul #define MTIOCPOS 0x40046d03ul #define PMU_IOC_SLEEP 0x20004200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -11513,7 +11097,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x40049370ul -#define ATM_ADDPARTY 0x800861f4ul #define FDSETPRM 0x801c0242ul #define ATM_GETSTATZ 0x800c6151ul #define ISST_IF_MSR_COMMAND 0xc004fe04ul @@ -11524,7 +11107,6 @@ #define PCITEST_COPY 0x80045006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x40046912ul #define CHIOGPICKER 0x40046304ul -#define CAPI_NCCI_OPENCOUNT 0x40044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x80042406ul #define IOC_OPAL_REVERT_TPR 0x810870e2ul @@ -11557,12 +11139,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x4004b645ul #define USBDEVFS_REAPURB32 0x8004550cul #define BTRFS_IOC_TRANS_END 0x20009407ul -#define CAPI_REGISTER 0x800c4301ul #define F2FS_IOC_COMPRESS_FILE 0x2000f518ul #define USBDEVFS_DISCARDURB 0x2000550bul -#define HE_GET_REG 0x800c6160ul #define ATM_SETLOOP 0x800c6153ul -#define ATMSIGD_CTRL 0x200061f0ul #define CIOC_KERNEL_VERSION 0xc004630aul #define BTRFS_IOC_CLONE_RANGE 0x8020940dul #define SNAPSHOT_UNFREEZE 0x20003302ul @@ -11589,7 +11168,6 @@ #define PPPIOCGFLAGS 0x4004745aul #define NILFS_IOCTL_SET_SUINFO 0x80186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x800c618ful #define FW_CDEV_IOC_GET_SPEED 0x20002311ul #define PPPIOCGIDLE32 0x4008743ful #define VFIO_DEVICE_RESET 0x20003b6ful @@ -11640,7 +11218,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0x2000b644ul #define I2OLCTGET 0xc00c6902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x80106614ul -#define NS_SETBUFLEV 0x800c6162ul #define BLKCLOSEZONE 0x80101287ul #define SONET_GETFRSENSE 0x40066117ul #define UI_SET_EVBIT 0x80045564ul @@ -11669,7 +11246,6 @@ #define USBDEVFS_RESETEP 0x40045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x20007c80ul #define USBDEVFS_ALLOC_STREAMS 0x4008551cul -#define MGSL_IOCSXCTRL 0x20006d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x20007434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0x2000f502ul @@ -11682,7 +11258,6 @@ #define UI_SET_PHYS 0x8004556cul #define FDWERRORGET 0x40180217ul #define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x20006d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x8004b701ul #define SIOCGSTAMP_NEW 0x40108906ul #define RTC_WKALM_RD 0x40287010ul @@ -11695,7 +11270,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x8008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x9000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x40044205ul #define KCOV_ENABLE 0x20006364ul #define BTRFS_IOC_CLONE 0x80049409ul @@ -11703,8 +11277,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x8004230eul #define AGPIOC_ALLOCATE 0xc0044106ul #define NE_SET_USER_MEMORY_REGION 0x8018ae23ul -#define MGSL_IOCTXABORT 0x20006d06ul -#define MGSL_IOCSGPIO 0x80106d10ul #define LIRC_SET_REC_CARRIER 0x80046914ul #define F2FS_IOC_FLUSH_DEVICE 0x8008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x20003304ul @@ -11721,8 +11293,6 @@ #define ATM_GETLINKRATE 0x800c6181ul #define RTC_WKALM_SET 0x8028700ful #define VHOST_GET_BACKEND_FEATURES 0x4008af26ul -#define ATMARP_ENCAP 0x200061e5ul -#define CAPI_GET_FLAGS 0x40044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x40046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x8004b682ul #define NS_GET_OWNER_UID 0x2000b704ul @@ -11730,7 +11300,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x80089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x8008af14ul -#define ATM_GETADDR 0x800c6186ul #define PHN_GET_REGS 0xc0047002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -11750,7 +11319,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x200061e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0x2000b101ul #define HIDIOCGVERSION 0x40044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -11762,7 +11330,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x81045508ul -#define IDT77105_GETSTAT 0x800c6132ul #define HIDIOCINITREPORT 0x20004805ul #define VFIO_DEVICE_GET_INFO 0x20003b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -11806,7 +11373,6 @@ #define IOC_PR_RELEASE 0x801070caul #define PPCLRIRQ 0x40047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x4004691aul -#define MGSL_IOCSXSYNC 0x20006d13ul #define HPET_IE_OFF 0x20006802ul #define IOC_OPAL_ACTIVATE_USR 0x811070e1ul #define SONET_SETFRAMING 0x80046115ul @@ -11826,7 +11392,6 @@ #define VIDIOC_S_PRIORITY 0x80045644ul #define SNAPSHOT_FREEZE 0x20003301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x800c6162ul #define RIO_DISABLE_DOORBELL_RANGE 0x80086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x40085617ul @@ -11838,7 +11403,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x80044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x4040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x8004f506ul -#define ATMLEC_CTRL 0x200061d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x40046ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x4002af76ul @@ -11849,7 +11413,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x20004e45ul #define PTP_EXTTS_REQUEST2 0x80103d0bul #define PCITEST_BAR 0x20005001ul -#define MGSL_IOCGGPIO 0x40106d11ul #define EVIOCSREP 0x80084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x20003b6dul #define HPET_DPI 0x20006805ul @@ -11869,7 +11432,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0x2000f501ul #define VIDIOC_G_OUTPUT 0x4004562eul -#define ATM_DROPPARTY 0x800461f5ul #define CHIOGELEM 0x806c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x40489439ul #define EVIOCSKEYCODE 0x80084504ul @@ -11882,7 +11444,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x80042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x20005761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x20003b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x8010b300ul #define VIDIOC_G_EDID 0xc0245628ul @@ -11903,7 +11464,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x800c618cul #define FW_CDEV_IOC_START_ISO 0x8010230aul -#define ATM_DELADDR 0x800c6189ul #define PPFCONTROL 0x8002708eul #define SONYPI_IOCGFAN 0x4001760aul #define RTC_IRQP_SET 0x8004700cul @@ -11916,11 +11476,9 @@ #define VIDIOC_DQBUF 0xc0445611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x44009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x8008941aul -#define ATMLEC_MCAST 0x200061d2ul #define MMTIMER_GETFREQ 0x40046d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x80247007ul -#define PPPOEIOCSFWD 0x8004b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x4004691eul #define FS_IOC_ENABLE_VERITY 0x80806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -11955,7 +11513,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x2000942eul #define RIO_CM_CHAN_BIND 0x80086305ul #define HIDIOCGRDESC 0x50044802ul -#define MGSL_IOCGIF 0x20006d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x40045702ul @@ -11984,6 +11541,17 @@ #define ACRN_IOCTL_RESET_VM 0x2000a215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0x2000a234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x8004a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0x2000ff01ul +#define PIDFD_GET_IPC_NAMESPACE 0x2000ff02ul +#define PIDFD_GET_MNT_NAMESPACE 0x2000ff03ul +#define PIDFD_GET_NET_NAMESPACE 0x2000ff04ul +#define PIDFD_GET_PID_NAMESPACE 0x2000ff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0x2000ff06ul +#define PIDFD_GET_TIME_NAMESPACE 0x2000ff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0x2000ff08ul +#define PIDFD_GET_USER_NAMESPACE 0x2000ff09ul +#define PIDFD_GET_UTS_NAMESPACE 0x2000ff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #if defined(__riscv) && __riscv_xlen == 32 #define FIONREAD 0x541bul @@ -12254,8 +11822,10 @@ #define EXT4_IOC_GETRSVSZ 0x80046605ul #define EXT4_IOC_SETRSVSZ 0x40046606ul #define EXT4_IOC_GROUP_EXTEND 0x40046607ul +#define EXT4_IOC_GROUP_ADD 0x40286608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -12263,6 +11833,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -12283,8 +11855,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80206d01ul -#define ENI_SETMULT 0x400c6167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -12321,19 +11891,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc00c6161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x400c618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x801c0204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x400c6160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -12343,10 +11909,8 @@ #define RTC_EPOCH_READ 0x8004700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x400c6190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -12394,7 +11958,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80580211ul @@ -12405,7 +11968,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -12413,13 +11975,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc01c6909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x400c6133ul #define I2OPARMSET 0xc0186903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -12441,7 +12001,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -12504,14 +12063,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x400c6188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc054420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -12538,7 +12094,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40206d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -12564,18 +12119,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x400c6187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80046c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -12608,7 +12159,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x400c6161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800470a1ul @@ -12625,7 +12175,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -12655,7 +12204,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -12693,7 +12241,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0245629ul #define MATROXFB_SET_OUTPUT_MODE 0x40046efaul @@ -12712,7 +12259,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -12728,14 +12274,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80046ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -12759,12 +12303,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40086308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40046ef8ul @@ -12777,7 +12319,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0cc5604ul #define RTC_EPOCH_SET 0x4004700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x400c6152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -12805,7 +12346,6 @@ #define FW_CDEV_IOC_SEND_PHY_PACKET 0xc0182315ul #define NBD_SET_FLAGS 0xab0aul #define VFIO_DEVICE_GET_REGION_INFO 0x3b6cul -#define REISERFS_IOC_UNPACK 0x4004cd01ul #define FW_CDEV_IOC_REMOVE_DESCRIPTOR 0x40042307ul #define RIO_SET_EVENT_MASK 0x40046d0dul #define SNAPSHOT_ALLOC_SWAP_PAGE 0x80083314ul @@ -12817,7 +12357,6 @@ #define VIDIOC_QBUF 0xc044560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -12827,7 +12366,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -12855,9 +12393,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -12880,7 +12416,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -12900,8 +12435,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -12910,7 +12443,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40580290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -12936,13 +12468,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40047003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x400c6163ul #define MTIOCPOS 0x80046d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -13015,7 +12544,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x400861f4ul #define FDSETPRM 0x401c0242ul #define ATM_GETSTATZ 0x400c6151ul #define ISST_IF_MSR_COMMAND 0xc004fe04ul @@ -13026,7 +12554,6 @@ #define PCITEST_COPY 0x40045006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40042406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -13059,12 +12586,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x400c6160ul #define ATM_SETLOOP 0x400c6153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc004630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -13091,7 +12615,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x400c618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -13142,7 +12665,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc00c6902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x400c6162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -13171,7 +12693,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -13184,7 +12705,6 @@ #define UI_SET_PHYS 0x4004556cul #define FDWERRORGET 0x80180217ul #define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -13197,7 +12717,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80044205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -13205,8 +12724,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0044106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -13223,8 +12740,6 @@ #define ATM_GETLINKRATE 0x400c6181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -13232,7 +12747,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x400c6186ul #define PHN_GET_REGS 0xc0047002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -13252,7 +12766,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -13264,7 +12777,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x400c6132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -13308,7 +12820,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -13328,7 +12839,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x400c6162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -13340,7 +12850,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80046ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -13351,7 +12860,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -13371,7 +12879,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -13384,7 +12891,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0245628ul @@ -13405,7 +12911,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x400c618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x400c6189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4004700cul @@ -13418,11 +12923,9 @@ #define VIDIOC_DQBUF 0xc0445611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80046d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4004b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -13457,7 +12960,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -13486,6 +12988,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4004a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #if defined(__riscv) && __riscv_xlen == 64 #define FIONREAD 0x541bul @@ -13756,8 +13269,10 @@ #define EXT4_IOC_GETRSVSZ 0x80086605ul #define EXT4_IOC_SETRSVSZ 0x40086606ul #define EXT4_IOC_GROUP_EXTEND 0x40086607ul +#define EXT4_IOC_GROUP_ADD 0x40286608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -13765,6 +13280,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -13785,8 +13302,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80306d01ul -#define ENI_SETMULT 0x40106167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -13823,19 +13338,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc0106161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x4010618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x80200204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x40106160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -13845,10 +13356,8 @@ #define RTC_EPOCH_READ 0x8008700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x40106190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -13896,7 +13405,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80800211ul @@ -13907,7 +13415,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0104320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -13915,13 +13422,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc0287c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc0306909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x40106133ul #define I2OPARMSET 0xc0286903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -13943,7 +13448,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -14006,14 +13510,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x40106188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc058420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -14040,7 +13541,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40306d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -14066,18 +13566,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x40106187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80086c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -14110,7 +13606,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x40106161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800870a1ul @@ -14127,7 +13622,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc100565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -14157,7 +13651,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -14195,7 +13688,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0285629ul #define MATROXFB_SET_OUTPUT_MODE 0x40086efaul @@ -14214,7 +13706,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -14230,14 +13721,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80086ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -14261,12 +13750,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40106308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40086ef8ul @@ -14279,7 +13766,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0d05604ul #define RTC_EPOCH_SET 0x4008700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x40106152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -14318,7 +13804,6 @@ #define VIDIOC_QBUF 0xc058560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00856c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -14328,7 +13813,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -14356,9 +13840,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -14381,7 +13863,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -14401,8 +13882,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -14411,7 +13890,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40800290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -14437,13 +13915,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40087003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x40106163ul #define MTIOCPOS 0x80086d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -14516,7 +13991,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x401061f4ul #define FDSETPRM 0x40200242ul #define ATM_GETSTATZ 0x40106151ul #define ISST_IF_MSR_COMMAND 0xc008fe04ul @@ -14527,7 +14001,6 @@ #define PCITEST_COPY 0x40085006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40082406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -14560,12 +14033,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x40106160ul #define ATM_SETLOOP 0x40106153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc008630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -14592,7 +14062,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x4010618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -14643,7 +14112,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc0186902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x40106162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -14672,7 +14140,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -14685,7 +14152,6 @@ #define UI_SET_PHYS 0x4008556cul #define FDWERRORGET 0x80280217ul #define VIDIOC_SUBDEV_G_EDID 0xc0285628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -14698,7 +14164,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80084205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -14706,8 +14171,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0084106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -14724,8 +14187,6 @@ #define ATM_GETLINKRATE 0x40106181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -14733,7 +14194,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x40106186ul #define PHN_GET_REGS 0xc0087002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -14753,7 +14213,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -14765,7 +14224,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x40106132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -14809,7 +14267,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -14829,7 +14286,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x40106162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -14841,7 +14297,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80086ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -14852,7 +14307,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -14872,7 +14326,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -14885,7 +14338,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0285628ul @@ -14906,7 +14358,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x4010618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x40106189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4008700cul @@ -14919,11 +14370,9 @@ #define VIDIOC_DQBUF 0xc0585611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80086d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4008b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -14958,7 +14407,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -14987,6 +14435,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4008a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #if defined(__s390x__) #define FIONREAD 0x541bul @@ -15257,8 +14716,10 @@ #define EXT4_IOC_GETRSVSZ 0x80086605ul #define EXT4_IOC_SETRSVSZ 0x40086606ul #define EXT4_IOC_GROUP_EXTEND 0x40086607ul +#define EXT4_IOC_GROUP_ADD 0x40286608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -15266,6 +14727,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -15286,8 +14749,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80306d01ul -#define ENI_SETMULT 0x40106167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -15324,19 +14785,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc0106161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x4010618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x80200204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x40106160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -15346,10 +14803,8 @@ #define RTC_EPOCH_READ 0x8008700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x40106190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -15397,7 +14852,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80800211ul @@ -15408,7 +14862,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0104320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -15416,13 +14869,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc0287c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc0306909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x40106133ul #define I2OPARMSET 0xc0286903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -15444,7 +14895,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -15507,14 +14957,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x40106188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc058420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -15541,7 +14988,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40306d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -15567,18 +15013,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x40106187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80086c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -15611,7 +15053,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x40106161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800870a1ul @@ -15628,7 +15069,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc100565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -15658,7 +15098,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -15696,7 +15135,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0285629ul #define MATROXFB_SET_OUTPUT_MODE 0x40086efaul @@ -15715,7 +15153,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -15731,14 +15168,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80086ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -15762,12 +15197,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40106308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40086ef8ul @@ -15780,7 +15213,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0d05604ul #define RTC_EPOCH_SET 0x4008700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x40106152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -15819,7 +15251,6 @@ #define VIDIOC_QBUF 0xc058560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00856c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -15829,7 +15260,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -15857,9 +15287,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -15882,7 +15310,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -15902,8 +15329,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -15912,7 +15337,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40800290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -15938,13 +15362,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40087003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x40106163ul #define MTIOCPOS 0x80086d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -16017,7 +15438,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x401061f4ul #define FDSETPRM 0x40200242ul #define ATM_GETSTATZ 0x40106151ul #define ISST_IF_MSR_COMMAND 0xc008fe04ul @@ -16028,7 +15448,6 @@ #define PCITEST_COPY 0x40085006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40082406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -16061,12 +15480,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x40106160ul #define ATM_SETLOOP 0x40106153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc008630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -16093,7 +15509,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x4010618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -16144,7 +15559,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc0186902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x40106162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -16173,7 +15587,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -16186,7 +15599,6 @@ #define UI_SET_PHYS 0x4008556cul #define FDWERRORGET 0x80280217ul #define VIDIOC_SUBDEV_G_EDID 0xc0285628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -16199,7 +15611,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80084205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -16207,8 +15618,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0084106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -16225,8 +15634,6 @@ #define ATM_GETLINKRATE 0x40106181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -16234,7 +15641,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x40106186ul #define PHN_GET_REGS 0xc0087002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -16254,7 +15660,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -16266,7 +15671,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x40106132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -16310,7 +15714,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -16330,7 +15733,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x40106162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -16342,7 +15744,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80086ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -16353,7 +15754,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -16373,7 +15773,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -16386,7 +15785,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0285628ul @@ -16407,7 +15805,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x4010618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x40106189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4008700cul @@ -16420,11 +15817,9 @@ #define VIDIOC_DQBUF 0xc0585611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80086d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4008b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -16459,7 +15854,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -16488,6 +15882,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4008a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #ifdef __loongarch__ #define FIONREAD 0x541bul @@ -16594,6 +15999,22 @@ #define BLKSECDISCARD 0x127dul #define BLKROTATIONAL 0x127eul #define BLKZEROOUT 0x127ful +#define FIEMAP_MAX_OFFSET 0xfffffffffffffffful +#define FIEMAP_FLAG_SYNC 0x1ul +#define FIEMAP_FLAG_XATTR 0x2ul +#define FIEMAP_FLAG_CACHE 0x4ul +#define FIEMAP_FLAGS_COMPAT 0x3ul +#define FIEMAP_EXTENT_LAST 0x1ul +#define FIEMAP_EXTENT_UNKNOWN 0x2ul +#define FIEMAP_EXTENT_DELALLOC 0x4ul +#define FIEMAP_EXTENT_ENCODED 0x8ul +#define FIEMAP_EXTENT_DATA_ENCRYPTED 0x80ul +#define FIEMAP_EXTENT_NOT_ALIGNED 0x100ul +#define FIEMAP_EXTENT_DATA_INLINE 0x200ul +#define FIEMAP_EXTENT_DATA_TAIL 0x400ul +#define FIEMAP_EXTENT_UNWRITTEN 0x800ul +#define FIEMAP_EXTENT_MERGED 0x1000ul +#define FIEMAP_EXTENT_SHARED 0x2000ul #define UFFDIO_REGISTER 0xc020aa00ul #define UFFDIO_UNREGISTER 0x8010aa01ul #define UFFDIO_WAKE 0x8010aa02ul @@ -16742,8 +16163,10 @@ #define EXT4_IOC_GETRSVSZ 0x80086605ul #define EXT4_IOC_SETRSVSZ 0x40086606ul #define EXT4_IOC_GROUP_EXTEND 0x40086607ul +#define EXT4_IOC_GROUP_ADD 0x40286608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -16751,6 +16174,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -16771,8 +16196,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80306d01ul -#define ENI_SETMULT 0x40106167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -16809,19 +16232,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc0106161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x4010618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x80200204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x40106160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -16831,10 +16250,8 @@ #define RTC_EPOCH_READ 0x8008700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x40106190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -16882,7 +16299,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80800211ul @@ -16893,7 +16309,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0485619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0104320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -16901,13 +16316,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc0287c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40282301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc0306909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x40106133ul #define I2OPARMSET 0xc0286903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -16929,7 +16342,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -16992,14 +16404,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x40106188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc058420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -17026,7 +16435,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40306d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -17052,18 +16460,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x40106187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80086c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -17096,7 +16500,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x40106161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800870a1ul @@ -17113,7 +16516,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc100565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d85742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc0202308ul @@ -17143,7 +16545,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -17181,7 +16582,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0285629ul #define MATROXFB_SET_OUTPUT_MODE 0x40086efaul @@ -17200,7 +16600,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -17216,14 +16615,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80086ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -17247,12 +16644,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40106308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40086ef8ul @@ -17265,7 +16660,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0d05604ul #define RTC_EPOCH_SET 0x4008700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x40106152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -17293,7 +16687,6 @@ #define FW_CDEV_IOC_SEND_PHY_PACKET 0xc0182315ul #define NBD_SET_FLAGS 0xab0aul #define VFIO_DEVICE_GET_REGION_INFO 0x3b6cul -#define REISERFS_IOC_UNPACK 0x4008cd01ul #define FW_CDEV_IOC_REMOVE_DESCRIPTOR 0x40042307ul #define RIO_SET_EVENT_MASK 0x40046d0dul #define SNAPSHOT_ALLOC_SWAP_PAGE 0x80083314ul @@ -17305,7 +16698,6 @@ #define VIDIOC_QBUF 0xc058560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00856c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -17315,7 +16707,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0187306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -17343,9 +16734,7 @@ #define VIDIOC_ENUMSTD 0xc0485619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -17368,7 +16757,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -17388,8 +16776,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -17398,13 +16784,11 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40800290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul #define TUNSETIFINDEX 0x400454daul #define CCISS_SETINTINFO 0x40084203ul -#define CM_IOSDBGLVL 0x400863faul #define RTC_VL_CLR 0x7014ul #define VIDIOC_REQBUFS 0xc0145608ul #define USBDEVFS_REAPURBNDELAY32 0x4004550dul @@ -17425,13 +16809,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40087003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x40106163ul #define MTIOCPOS 0x80086d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -17504,7 +16885,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x401061f4ul #define FDSETPRM 0x40200242ul #define ATM_GETSTATZ 0x40106151ul #define ISST_IF_MSR_COMMAND 0xc008fe04ul @@ -17515,7 +16895,6 @@ #define PCITEST_COPY 0x40085006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40082406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -17534,7 +16913,6 @@ #define VFIO_SET_IOMMU 0x3b66ul #define VIDIOC_S_MODULATOR 0x40445637ul #define TUNGETFILTER 0x801054dbul -#define MEYEIOC_SYNC 0xc00476c3ul #define CCISS_SETNODENAME 0x40104205ul #define FBIO_GETCONTROL2 0x80084689ul #define TUNSETDEBUG 0x400454c9ul @@ -17549,12 +16927,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x40106160ul #define ATM_SETLOOP 0x40106153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc008630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -17581,7 +16956,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0182314ul -#define ATM_DELLECSADDR 0x4010618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -17632,7 +17006,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc0186902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x40106162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -17661,7 +17034,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -17674,7 +17046,6 @@ #define UI_SET_PHYS 0x4008556cul #define FDWERRORGET 0x80280217ul #define VIDIOC_SUBDEV_G_EDID 0xc0285628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -17687,7 +17058,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80084205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -17695,8 +17065,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0084106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -17713,8 +17081,6 @@ #define ATM_GETLINKRATE 0x40106181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -17722,7 +17088,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x40106186ul #define PHN_GET_REGS 0xc0087002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -17742,7 +17107,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -17754,7 +17118,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x40106132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -17798,7 +17161,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -17815,11 +17177,9 @@ #define VIDIOC_STREAMOFF 0x40045613ul #define VDUSE_DESTROY_DEV 0x41008103ul #define FDGETFDCSTAT 0x80280215ul -#define CM_IOCGATR 0xc0086301ul #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc050561aul -#define ZATM_GETPOOLZ 0x40106162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -17831,7 +17191,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80086ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -17842,7 +17201,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -17862,7 +17220,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -17875,7 +17232,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0285628ul @@ -17896,7 +17252,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x4010618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x40106189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4008700cul @@ -17909,11 +17264,9 @@ #define VIDIOC_DQBUF 0xc0585611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80086d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4008b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -17948,7 +17301,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -17977,6 +17329,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4008a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #ifdef __csky__ #define FIONREAD 0x541bul @@ -18247,8 +17610,10 @@ #define EXT4_IOC_GETRSVSZ 0x80046605ul #define EXT4_IOC_SETRSVSZ 0x40046606ul #define EXT4_IOC_GROUP_EXTEND 0x40046607ul +#define EXT4_IOC_GROUP_ADD 0x40246608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -18256,6 +17621,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -18276,8 +17643,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x80206d01ul -#define ENI_SETMULT 0x400c6167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -18314,19 +17679,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc00c6161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x400c618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x801c0204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x400c6160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -18336,10 +17697,8 @@ #define RTC_EPOCH_READ 0x8004700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x400c6190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -18387,7 +17746,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80580211ul @@ -18398,7 +17756,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0405619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -18406,13 +17763,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40242301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc01c6909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x400c6133ul #define I2OPARMSET 0xc0186903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -18434,7 +17789,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -18497,14 +17851,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x400c6188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc054420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401c5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -18531,7 +17882,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x40206d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -18557,18 +17907,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x400c6187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80046c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -18601,7 +17947,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x400c6161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800470a1ul @@ -18618,7 +17963,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d45742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc01c2308ul @@ -18648,7 +17992,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -18686,7 +18029,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0245629ul #define MATROXFB_SET_OUTPUT_MODE 0x40046efaul @@ -18705,7 +18047,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -18721,14 +18062,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80046ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -18752,12 +18091,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40086308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40046ef8ul @@ -18770,7 +18107,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0cc5604ul #define RTC_EPOCH_SET 0x4004700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x400c6152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -18798,7 +18134,6 @@ #define FW_CDEV_IOC_SEND_PHY_PACKET 0xc0142315ul #define NBD_SET_FLAGS 0xab0aul #define VFIO_DEVICE_GET_REGION_INFO 0x3b6cul -#define REISERFS_IOC_UNPACK 0x4004cd01ul #define FW_CDEV_IOC_REMOVE_DESCRIPTOR 0x40042307ul #define RIO_SET_EVENT_MASK 0x40046d0dul #define SNAPSHOT_ALLOC_SWAP_PAGE 0x80083314ul @@ -18810,7 +18145,6 @@ #define VIDIOC_QBUF 0xc044560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -18820,7 +18154,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0147306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -18848,9 +18181,7 @@ #define VIDIOC_ENUMSTD 0xc0405619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x40206d18ul @@ -18873,7 +18204,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -18893,8 +18223,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -18903,7 +18231,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40580290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -18929,13 +18256,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40047003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x400c6163ul #define MTIOCPOS 0x80046d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -19008,7 +18332,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x400861f4ul #define FDSETPRM 0x401c0242ul #define ATM_GETSTATZ 0x400c6151ul #define ISST_IF_MSR_COMMAND 0xc004fe04ul @@ -19019,7 +18342,6 @@ #define PCITEST_COPY 0x40045006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40042406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -19052,12 +18374,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x400c6160ul #define ATM_SETLOOP 0x400c6153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc004630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -19084,7 +18403,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0142314ul -#define ATM_DELLECSADDR 0x400c618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -19135,7 +18453,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc00c6902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x400c6162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -19164,7 +18481,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -19177,7 +18493,6 @@ #define UI_SET_PHYS 0x4004556cul #define FDWERRORGET 0x80180217ul #define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80287010ul @@ -19190,7 +18505,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80044205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -19198,8 +18512,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0044106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -19216,8 +18528,6 @@ #define ATM_GETLINKRATE 0x400c6181ul #define RTC_WKALM_SET 0x4028700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -19225,7 +18535,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x400c6186ul #define PHN_GET_REGS 0xc0047002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -19245,7 +18554,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -19257,7 +18565,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x400c6132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -19301,7 +18608,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -19321,7 +18627,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc04c561aul -#define ZATM_GETPOOLZ 0x400c6162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -19333,7 +18638,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80046ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -19344,7 +18648,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -19364,7 +18667,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -19377,7 +18679,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0245628ul @@ -19398,7 +18699,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x400c618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x400c6189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4004700cul @@ -19411,11 +18711,9 @@ #define VIDIOC_DQBUF 0xc0445611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80046d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4004b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -19450,7 +18748,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -19479,6 +18776,17 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4004a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #ifdef __m68k__ #define FIONREAD 0x541bul @@ -19749,8 +19057,10 @@ #define EXT4_IOC_GETRSVSZ 0x80046605ul #define EXT4_IOC_SETRSVSZ 0x40046606ul #define EXT4_IOC_GROUP_EXTEND 0x40046607ul +#define EXT4_IOC_GROUP_ADD 0x40246608ul #define EXT4_IOC_MIGRATE 0x6609ul #define EXT4_IOC_ALLOC_DA_BLKS 0x660cul +#define EXT4_IOC_MOVE_EXT 0xc028660ful #define EXT4_IOC_RESIZE_FS 0x40086610ul #define EXT4_IOC_SWAP_BOOT 0x6611ul #define EXT4_IOC_PRECACHE_EXTENTS 0x6612ul @@ -19758,6 +19068,8 @@ #define EXT4_IOC_GETSTATE 0x40046629ul #define EXT4_IOC_GET_ES_CACHE 0xc020662aul #define EXT4_IOC_CHECKPOINT 0x4004662bul +#define EXT4_IOC_GETFSUUID 0x8008662cul +#define EXT4_IOC_SETFSUUID 0x4008662cul #define EXT4_IOC_SHUTDOWN 0x8004587dul #define EXT4_IOC32_GETVERSION 0x80046603ul #define EXT4_IOC32_SETVERSION 0x40046604ul @@ -19778,8 +19090,6 @@ #define TUNSETPERSIST 0x400454cbul #define FS_IOC_GET_ENCRYPTION_POLICY 0x400c6615ul #define CEC_RECEIVE 0xc0386106ul -#define MGSL_IOCGPARAMS 0x801c6d01ul -#define ENI_SETMULT 0x400c6167ul #define RIO_GET_EVENT_MASK 0x80046d0eul #define LIRC_GET_MAX_TIMEOUT 0x80046909ul #define USBDEVFS_CLAIMINTERFACE 0x8004550ful @@ -19816,19 +19126,15 @@ #define ASPEED_LPC_CTRL_IOCTL_GET_SIZE 0xc010b200ul #define DM_DEV_STATUS 0xc138fd07ul #define TEE_IOC_CLOSE_SESSION 0x8004a405ul -#define NS_GETPSTAT 0xc00c6161ul #define UI_SET_PROPBIT 0x4004556eul #define TUNSETFILTEREBPF 0x800454e1ul #define RIO_MPORT_MAINT_COMPTAG_SET 0x40046d02ul #define AUTOFS_DEV_IOCTL_VERSION 0xc0189371ul #define WDIOC_SETOPTIONS 0x80045704ul #define VHOST_SCSI_SET_ENDPOINT 0x40e8af40ul -#define MGSL_IOCGTXIDLE 0x6d03ul -#define ATM_ADDLECSADDR 0x400c618eul #define FSL_HV_IOCTL_GETPROP 0xc028af07ul #define FDGETPRM 0x801c0204ul #define HIDIOCAPPLICATION 0x4802ul -#define ENI_MEMDUMP 0x400c6160ul #define PTP_SYS_OFFSET2 0x43403d0eul #define VIDIOC_SUBDEV_G_DV_TIMINGS 0xc0845658ul #define DMA_BUF_SET_NAME_A 0x40046201ul @@ -19838,10 +19144,8 @@ #define RTC_EPOCH_READ 0x8004700dul #define VIDIOC_SUBDEV_S_SELECTION 0xc040563eul #define VIDIOC_QUERY_EXT_CTRL 0xc0e85667ul -#define ATM_GETLECSADDR 0x400c6190ul #define FSL_HV_IOCTL_PARTITION_STOP 0xc008af04ul #define SONET_GETDIAG 0x80046114ul -#define ATMMPC_DATA 0x61d9ul #define IPMICTL_UNREGISTER_FOR_CMD_CHANS 0x800c691dul #define HIDIOCGCOLLECTIONINDEX 0x40184810ul #define RPMSG_CREATE_EPT_IOCTL 0x4028b501ul @@ -19889,7 +19193,6 @@ #define BTRFS_IOC_SCRUB 0xc400941bul #define USBDEVFS_DISCONNECT 0x5516ul #define TUNSETVNETBE 0x400454deul -#define ATMTCP_REMOVE 0x618ful #define VHOST_VDPA_GET_CONFIG 0x8008af73ul #define PPPIOCGNPMODE 0xc008744cul #define FDGETDRVPRM 0x80520211ul @@ -19900,7 +19203,6 @@ #define VIDIOC_SUBDEV_ENUMSTD 0xc0405619ul #define PPGETFLAGS 0x8004709aul #define VDUSE_DEV_GET_FEATURES 0x80088111ul -#define CAPI_MANUFACTURER_CMD 0xc0084320ul #define VIDIOC_G_TUNER 0xc054561dul #define DM_TABLE_STATUS 0xc138fd0cul #define DM_DEV_ARM_POLL 0xc138fd10ul @@ -19908,13 +19210,11 @@ #define MEDIA_IOC_ENUM_LINKS 0xc01c7c02ul #define F2FS_IOC_PRECACHE_EXTENTS 0xf50ful #define DFL_FPGA_PORT_DMA_MAP 0xb643ul -#define MGSL_IOCGXCTRL 0x6d16ul #define FW_CDEV_IOC_SEND_REQUEST 0x40242301ul #define SONYPI_IOCGBLUE 0x80017608ul #define F2FS_IOC_DECOMPRESS_FILE 0xf517ul #define I2OHTML 0xc01c6909ul #define VFIO_GET_API_VERSION 0x3b64ul -#define IDT77105_GETSTATZ 0x400c6133ul #define I2OPARMSET 0xc0186903ul #define TEE_IOC_CANCEL 0x8008a404ul #define PTP_SYS_OFFSET_PRECISE2 0xc0403d11ul @@ -19936,7 +19236,6 @@ #define FDGETMAXERRS 0x8014020eul #define TUNSETQUEUE 0x400454d9ul #define PTP_ENABLE_PPS 0x40043d04ul -#define SIOCSIFATMTCP 0x6180ul #define CEC_ADAP_G_LOG_ADDRS 0x805c6103ul #define ND_IOCTL_ARS_CAP 0xc0204e01ul #define NBD_SET_BLKSIZE 0xab01ul @@ -19999,14 +19298,11 @@ #define FDEJECT 0x25aul #define TUNSETOFFLOAD 0x400454d0ul #define PPPIOCCONNECT 0x4004743aul -#define ATM_ADDADDR 0x400c6188ul #define VDUSE_DEV_INJECT_CONFIG_IRQ 0x8113ul #define AUTOFS_DEV_IOCTL_ASKUMOUNT 0xc018937dul #define VHOST_VDPA_GET_STATUS 0x8001af71ul #define CCISS_PASSTHRU 0xc052420bul -#define MGSL_IOCCLRMODCOUNT 0x6d0ful #define TEE_IOC_SUPPL_SEND 0x8010a407ul -#define ATMARPD_CTRL 0x61e1ul #define UI_ABS_SETUP 0x401a5504ul #define UI_DEV_DESTROY 0x5502ul #define BTRFS_IOC_QUOTA_CTL 0xc0109428ul @@ -20033,7 +19329,6 @@ #define RTC_WIE_ON 0x700ful #define MEDIA_IOC_DEVICE_INFO 0xc1007c00ul #define RIO_CM_CHAN_CREATE 0xc0026303ul -#define MGSL_IOCSPARAMS 0x401c6d00ul #define RTC_SET_TIME 0x4024700aul #define VHOST_RESET_OWNER 0xaf02ul #define IOC_OPAL_PSID_REVERT_TPR 0x410870e8ul @@ -20059,18 +19354,14 @@ #define VIDIOC_SUBDEV_S_CROP 0xc038563cul #define USBDEVFS_CONNECT 0x5517ul #define SYNC_IOC_FILE_INFO 0xc0383e04ul -#define ATMARP_MKIP 0x61e2ul #define VFIO_IOMMU_SPAPR_TCE_GET_INFO 0x3b70ul #define CCISS_GETHEARTBEAT 0x80044206ul -#define ATM_RSTADDR 0x400c6187ul #define NBD_SET_SIZE 0xab02ul #define UDF_GETVOLIDENT 0x80046c42ul #define GPIO_V2_LINE_GET_VALUES_IOCTL 0xc010b40eul -#define MGSL_IOCSTXIDLE 0x6d02ul #define FSL_HV_IOCTL_SETPROP 0xc028af08ul #define BTRFS_IOC_GET_DEV_STATS 0xc4089434ul #define PPRSTATUS 0x80017081ul -#define MGSL_IOCTXENABLE 0x6d04ul #define UDF_GETEASIZE 0x80046c40ul #define NVME_IOCTL_ADMIN64_CMD 0xc0504e47ul #define VHOST_SET_OWNER 0xaf01ul @@ -20103,7 +19394,6 @@ #define PERF_EVENT_IOC_SET_BPF 0x40042408ul #define UDMABUF_CREATE_LIST 0x40087543ul #define VHOST_SET_LOG_BASE 0x4008af04ul -#define ZATM_GETPOOL 0x400c6161ul #define BR2684_SETFILT 0x401c6190ul #define RNDGETPOOL 0x80085202ul #define PPS_GETPARAMS 0x800470a1ul @@ -20120,7 +19410,6 @@ #define CCISS_REGNEWD 0x420eul #define FAT_IOCTL_SET_ATTRIBUTES 0x40047211ul #define VIDIOC_CREATE_BUFS 0xc0f8565cul -#define CAPI_GET_VERSION 0xc0104307ul #define SWITCHTEC_IOCTL_EVENT_SUMMARY 0x84d45742ul #define VFIO_EEH_PE_OP 0x3b79ul #define FW_CDEV_IOC_CREATE_ISO_CONTEXT 0xc01c2308ul @@ -20150,7 +19439,6 @@ #define STP_POLICY_ID_GET 0x80102501ul #define PPSETFLAGS 0x4004709bul #define CEC_ADAP_S_PHYS_ADDR 0x40026102ul -#define ATMTCP_CREATE 0x618eul #define IPMI_BMC_IOCTL_FORCE_ABORT 0xb102ul #define PPPIOCGXASYNCMAP 0x80207450ul #define VHOST_SET_VRING_CALL 0x4008af21ul @@ -20188,7 +19476,6 @@ #define RTC_RD_TIME 0x80247009ul #define FDMSGOFF 0x246ul #define IPMICTL_REGISTER_FOR_CMD_CHANS 0x800c691cul -#define CAPI_GET_ERRCODE 0x80024321ul #define PCITEST_SET_IRQTYPE 0x40045008ul #define VIDIOC_SUBDEV_S_EDID 0xc0245629ul #define MATROXFB_SET_OUTPUT_MODE 0x40046efaul @@ -20207,7 +19494,6 @@ #define VHOST_SET_VRING_NUM 0x4008af10ul #define AUTOFS_DEV_IOCTL_PROTOVER 0xc0189372ul #define RIO_FREE_DMA 0x40086d14ul -#define MGSL_IOCRXENABLE 0x6d05ul #define IOCTL_VM_SOCKETS_GET_LOCAL_CID 0x7b9ul #define IPMICTL_SET_TIMING_PARMS_CMD 0x80086916ul #define PPPIOCGL2TPSTATS 0x80487436ul @@ -20223,14 +19509,12 @@ #define IPMICTL_SET_MAINTENANCE_MODE_CMD 0x4004691ful #define BTRFS_IOC_DEFAULT_SUBVOL 0x40089413ul #define RIO_UNMAP_OUTBOUND 0x40286d10ul -#define CAPI_CLR_FLAGS 0x80044325ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE 0x4018230ful #define MATROXFB_GET_OUTPUT_CONNECTION 0x80046ef8ul #define EVIOCSMASK 0x40104593ul #define BTRFS_IOC_FORGET_DEV 0x50009405ul #define CXL_MEM_QUERY_COMMANDS 0x8008ce01ul #define CEC_S_MODE 0x40046109ul -#define MGSL_IOCSIF 0x6d0aul #define SWITCHTEC_IOCTL_PFF_TO_PORT 0xc00c5744ul #define PPSETMODE 0x40047080ul #define VFIO_DEVICE_SET_IRQS 0x3b6eul @@ -20254,12 +19538,10 @@ #define F2FS_IOC_GET_COMPRESS_OPTION 0x8002f515ul #define FW_CDEV_IOC_STOP_ISO 0x4004230bul #define GPIO_V2_GET_LINEINFO_IOCTL 0xc100b405ul -#define ATMMPC_CTRL 0x61d8ul #define PPPIOCSXASYNCMAP 0x4020744ful #define CHIOGSTATUS 0x40086308ul #define FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE 0xc018230dul #define RIO_MPORT_MAINT_PORT_IDX_GET 0x80046d03ul -#define CAPI_SET_FLAGS 0x80044324ul #define VFIO_GROUP_GET_DEVICE_FD 0x3b6aul #define VHOST_SET_MEM_TABLE 0x4008af03ul #define MATROXFB_SET_OUTPUT_CONNECTION 0x40046ef8ul @@ -20272,7 +19554,6 @@ #define JSIOCGCORR 0x80246a22ul #define VIDIOC_G_FMT 0xc0cc5604ul #define RTC_EPOCH_SET 0x4004700eul -#define CAPI_GET_PROFILE 0xc0404309ul #define ATM_GETLOOP 0x400c6152ul #define SCIF_LISTEN 0x40047302ul #define NBD_CLEAR_QUE 0xab05ul @@ -20311,7 +19592,6 @@ #define VIDIOC_QBUF 0xc044560ful #define VIDIOC_S_TUNER 0x4054561eul #define TUNGETVNETHDRSZ 0x800454d7ul -#define CAPI_NCCI_GETUNIT 0x80044327ul #define DFL_FPGA_PORT_UINT_GET_IRQ_NUM 0x8004b647ul #define VIDIOC_OMAP3ISP_STAT_EN 0xc00456c7ul #define GPIO_V2_LINE_SET_CONFIG_IOCTL 0xc110b40dul @@ -20321,7 +19601,6 @@ #define VHOST_SET_LOG_FD 0x4004af07ul #define SCIF_SEND 0xc0147306ul #define VIDIOC_SUBDEV_G_FMT 0xc0585604ul -#define NS_ADJBUFLEV 0x6163ul #define VIDIOC_DBG_S_REGISTER 0x4038564ful #define NILFS_IOCTL_RESIZE 0x40086e8bul #define PHN_GETREG 0xc0087005ul @@ -20349,9 +19628,7 @@ #define VIDIOC_ENUMSTD 0xc0405619ul #define VHOST_GET_VRING_BASE 0xc008af12ul #define VFIO_DEVICE_IOEVENTFD 0x3b74ul -#define ATMARP_SETENTRY 0x61e3ul #define CCISS_REVALIDVOLS 0x420aul -#define MGSL_IOCLOOPTXDONE 0x6d09ul #define RTC_VL_READ 0x80047013ul #define ND_IOCTL_ARS_STATUS 0xc0304e03ul #define RIO_DEV_DEL 0x401e6d18ul @@ -20374,7 +19651,6 @@ #define TUNGETVNETLE 0x800454ddul #define VIDIOC_ENUM_DV_TIMINGS 0xc0945662ul #define BTRFS_IOC_INO_PATHS 0xc0389423ul -#define MGSL_IOCGXSYNC 0x6d14ul #define HIDIOCGFIELDINFO 0xc038480aul #define VIDIOC_SUBDEV_G_STD 0x80085617ul #define I2OVALIDATE 0x80046908ul @@ -20394,8 +19670,6 @@ #define PHN_GETREGS 0xc0287007ul #define FDSETEMSGTRESH 0x24aul #define NILFS_IOCTL_GET_VINFO 0xc0186e86ul -#define MGSL_IOCWAITEVENT 0xc0046d08ul -#define CAPI_INSTALLED 0x80024322ul #define EVIOCGMASK 0x80104592ul #define BTRFS_IOC_SUBVOL_GETFLAGS 0x80089419ul #define FSL_HV_IOCTL_PARTITION_GET_STATUS 0xc00caf02ul @@ -20404,7 +19678,6 @@ #define FW_CDEV_IOC_FLUSH_ISO 0x40042318ul #define VIDIOC_DBG_G_CHIP_INFO 0xc0c85666ul #define F2FS_IOC_RELEASE_VOLATILE_WRITE 0xf504ul -#define CAPI_GET_SERIAL 0xc0044308ul #define FDSETDRVPRM 0x40520290ul #define IOC_OPAL_SAVE 0x411870dcul #define VIDIOC_G_DV_TIMINGS 0xc0845658ul @@ -20430,13 +19703,10 @@ #define VIDIOC_CROPCAP 0xc02c563aul #define DFL_FPGA_PORT_GET_INFO 0xb641ul #define PHN_SET_REGS 0x40047003ul -#define ATMLEC_DATA 0x61d1ul -#define PPPOEIOCDFWD 0xb101ul #define VIDIOC_S_SELECTION 0xc040565ful #define SNAPSHOT_FREE_SWAP_PAGES 0x3309ul #define BTRFS_IOC_LOGICAL_INO 0xc0389424ul #define VIDIOC_S_CTRL 0xc008561cul -#define ZATM_SETPOOL 0x400c6163ul #define MTIOCPOS 0x80046d03ul #define PMU_IOC_SLEEP 0x4200ul #define AUTOFS_DEV_IOCTL_PROTOSUBVER 0xc0189373ul @@ -20509,7 +19779,6 @@ #define SCIF_CONNECT 0xc0087303ul #define BLKREPORTZONE 0xc0101282ul #define AUTOFS_IOC_ASKUMOUNT 0x80049370ul -#define ATM_ADDPARTY 0x400861f4ul #define FDSETPRM 0x401c0242ul #define ATM_GETSTATZ 0x400c6151ul #define ISST_IF_MSR_COMMAND 0xc004fe04ul @@ -20520,7 +19789,6 @@ #define PCITEST_COPY 0x40045006ul #define IPMICTL_GET_MY_ADDRESS_CMD 0x80046912ul #define CHIOGPICKER 0x80046304ul -#define CAPI_NCCI_OPENCOUNT 0x80044326ul #define CXL_MEM_SEND_COMMAND 0xc030ce02ul #define PERF_EVENT_IOC_SET_FILTER 0x40042406ul #define IOC_OPAL_REVERT_TPR 0x410870e2ul @@ -20553,12 +19821,9 @@ #define DFL_FPGA_PORT_ERR_GET_IRQ_NUM 0x8004b645ul #define USBDEVFS_REAPURB32 0x4004550cul #define BTRFS_IOC_TRANS_END 0x9407ul -#define CAPI_REGISTER 0x400c4301ul #define F2FS_IOC_COMPRESS_FILE 0xf518ul #define USBDEVFS_DISCARDURB 0x550bul -#define HE_GET_REG 0x400c6160ul #define ATM_SETLOOP 0x400c6153ul -#define ATMSIGD_CTRL 0x61f0ul #define CIOC_KERNEL_VERSION 0xc004630aul #define BTRFS_IOC_CLONE_RANGE 0x4020940dul #define SNAPSHOT_UNFREEZE 0x3302ul @@ -20585,7 +19850,6 @@ #define PPPIOCGFLAGS 0x8004745aul #define NILFS_IOCTL_SET_SUINFO 0x40186e8dul #define FW_CDEV_IOC_GET_CYCLE_TIMER2 0xc0142314ul -#define ATM_DELLECSADDR 0x400c618ful #define FW_CDEV_IOC_GET_SPEED 0x2311ul #define PPPIOCGIDLE32 0x8008743ful #define VFIO_DEVICE_RESET 0x3b6ful @@ -20636,7 +19900,6 @@ #define DFL_FPGA_PORT_DMA_UNMAP 0xb644ul #define I2OLCTGET 0xc00c6902ul #define FS_IOC_GET_ENCRYPTION_PWSALT 0x40106614ul -#define NS_SETBUFLEV 0x400c6162ul #define BLKCLOSEZONE 0x40101287ul #define SONET_GETFRSENSE 0x80066117ul #define UI_SET_EVBIT 0x40045564ul @@ -20665,7 +19928,6 @@ #define USBDEVFS_RESETEP 0x80045503ul #define MEDIA_REQUEST_IOC_QUEUE 0x7c80ul #define USBDEVFS_ALLOC_STREAMS 0x8008551cul -#define MGSL_IOCSXCTRL 0x6d15ul #define MEDIA_IOC_G_TOPOLOGY 0xc0487c04ul #define PPPIOCUNBRIDGECHAN 0x7434ul #define F2FS_IOC_COMMIT_ATOMIC_WRITE 0xf502ul @@ -20678,7 +19940,6 @@ #define UI_SET_PHYS 0x4004556cul #define FDWERRORGET 0x80180217ul #define VIDIOC_SUBDEV_G_EDID 0xc0245628ul -#define MGSL_IOCGSTATS 0x6d07ul #define RPROC_SET_SHUTDOWN_ON_RELEASE 0x4004b701ul #define SIOCGSTAMP_NEW 0x80108906ul #define RTC_WKALM_RD 0x80267010ul @@ -20691,7 +19952,6 @@ #define VHOST_SET_VRING_BUSYLOOP_TIMEOUT 0x4008af23ul #define VIDIOC_SUBDEV_G_SELECTION 0xc040563dul #define BTRFS_IOC_RM_DEV_V2 0x5000943aul -#define MGSL_IOCWAITGPIO 0xc0106d12ul #define PMU_IOC_CAN_SLEEP 0x80044205ul #define KCOV_ENABLE 0x6364ul #define BTRFS_IOC_CLONE 0x40049409ul @@ -20699,8 +19959,6 @@ #define FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE 0x4004230eul #define AGPIOC_ALLOCATE 0xc0044106ul #define NE_SET_USER_MEMORY_REGION 0x4018ae23ul -#define MGSL_IOCTXABORT 0x6d06ul -#define MGSL_IOCSGPIO 0x40106d10ul #define LIRC_SET_REC_CARRIER 0x40046914ul #define F2FS_IOC_FLUSH_DEVICE 0x4008f50aul #define SNAPSHOT_ATOMIC_RESTORE 0x3304ul @@ -20717,8 +19975,6 @@ #define ATM_GETLINKRATE 0x400c6181ul #define RTC_WKALM_SET 0x4026700ful #define VHOST_GET_BACKEND_FEATURES 0x8008af26ul -#define ATMARP_ENCAP 0x61e5ul -#define CAPI_GET_FLAGS 0x80044323ul #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD 0x80046918ul #define DFL_FPGA_FME_PORT_ASSIGN 0x4004b682ul #define NS_GET_OWNER_UID 0xb704ul @@ -20726,7 +19982,6 @@ #define BTRFS_IOC_WAIT_SYNC 0x40089416ul #define GPIOHANDLE_SET_CONFIG_IOCTL 0xc054b40aul #define VHOST_GET_VRING_ENDIAN 0x4008af14ul -#define ATM_GETADDR 0x400c6186ul #define PHN_GET_REGS 0xc0047002ul #define AUTOFS_DEV_IOCTL_REQUESTER 0xc018937bul #define AUTOFS_DEV_IOCTL_EXPIRE 0xc018937cul @@ -20746,7 +20001,6 @@ #define DM_VERSION 0xc138fd00ul #define CEC_TRANSMIT 0xc0386105ul #define FS_IOC_GET_ENCRYPTION_POLICY_EX 0xc0096616ul -#define SIOCMKCLIP 0x61e0ul #define IPMI_BMC_IOCTL_CLEAR_SMS_ATN 0xb101ul #define HIDIOCGVERSION 0x80044801ul #define VIDIOC_S_INPUT 0xc0045627ul @@ -20758,7 +20012,6 @@ #define FS_IOC_READ_VERITY_METADATA 0xc0286687ul #define ND_IOCTL_SET_CONFIG_DATA 0xc0084e06ul #define USBDEVFS_GETDRIVER 0x41045508ul -#define IDT77105_GETSTAT 0x400c6132ul #define HIDIOCINITREPORT 0x4805ul #define VFIO_DEVICE_GET_INFO 0x3b6bul #define RIO_CM_CHAN_RECEIVE 0xc010630aul @@ -20802,7 +20055,6 @@ #define IOC_PR_RELEASE 0x401070caul #define PPCLRIRQ 0x80047093ul #define IPMICTL_SET_MY_CHANNEL_LUN_CMD 0x8004691aul -#define MGSL_IOCSXSYNC 0x6d13ul #define HPET_IE_OFF 0x6802ul #define IOC_OPAL_ACTIVATE_USR 0x411070e1ul #define SONET_SETFRAMING 0x40046115ul @@ -20822,7 +20074,6 @@ #define VIDIOC_S_PRIORITY 0x40045644ul #define SNAPSHOT_FREEZE 0x3301ul #define VIDIOC_ENUMINPUT 0xc04c561aul -#define ZATM_GETPOOLZ 0x400c6162ul #define RIO_DISABLE_DOORBELL_RANGE 0x40086d0aul #define GPIO_V2_GET_LINEINFO_WATCH_IOCTL 0xc100b406ul #define VIDIOC_G_STD 0x80085617ul @@ -20834,7 +20085,6 @@ #define IOCTL_MEI_NOTIFY_SET 0x40044802ul #define BTRFS_IOC_QUOTA_RESCAN_STATUS 0x8040942dul #define F2FS_IOC_GARBAGE_COLLECT 0x4004f506ul -#define ATMLEC_CTRL 0x61d0ul #define MATROXFB_GET_AVAILABLE_OUTPUTS 0x80046ef9ul #define DM_DEV_CREATE 0xc138fd03ul #define VHOST_VDPA_GET_VRING_NUM 0x8002af76ul @@ -20845,7 +20095,6 @@ #define NVME_IOCTL_SUBSYS_RESET 0x4e45ul #define PTP_EXTTS_REQUEST2 0x40103d0bul #define PCITEST_BAR 0x5001ul -#define MGSL_IOCGGPIO 0x80106d11ul #define EVIOCSREP 0x40084503ul #define VFIO_DEVICE_GET_IRQ_INFO 0x3b6dul #define HPET_DPI 0x6805ul @@ -20865,7 +20114,6 @@ #define DM_TABLE_LOAD 0xc138fd09ul #define F2FS_IOC_START_ATOMIC_WRITE 0xf501ul #define VIDIOC_G_OUTPUT 0x8004562eul -#define ATM_DROPPARTY 0x400461f5ul #define CHIOGELEM 0x406c6310ul #define BTRFS_IOC_GET_SUPPORTED_FEATURES 0x80489439ul #define EVIOCSKEYCODE 0x40084504ul @@ -20878,7 +20126,6 @@ #define FW_CDEV_IOC_DEALLOCATE 0x40042303ul #define WDIOC_SETTIMEOUT 0xc0045706ul #define IOC_WATCH_QUEUE_SET_FILTER 0x5761ul -#define CAPI_GET_MANUFACTURER 0xc0044306ul #define VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY 0x3b76ul #define ASPEED_P2A_CTRL_IOCTL_SET_WINDOW 0x4010b300ul #define VIDIOC_G_EDID 0xc0245628ul @@ -20899,7 +20146,6 @@ #define RIO_MAP_OUTBOUND 0xc0286d0ful #define ATM_SETESI 0x400c618cul #define FW_CDEV_IOC_START_ISO 0x4010230aul -#define ATM_DELADDR 0x400c6189ul #define PPFCONTROL 0x4002708eul #define SONYPI_IOCGFAN 0x8001760aul #define RTC_IRQP_SET 0x4004700cul @@ -20912,11 +20158,9 @@ #define VIDIOC_DQBUF 0xc0445611ul #define BTRFS_IOC_BALANCE_PROGRESS 0x84009422ul #define BTRFS_IOC_SUBVOL_SETFLAGS 0x4008941aul -#define ATMLEC_MCAST 0x61d2ul #define MMTIMER_GETFREQ 0x80046d02ul #define VIDIOC_G_SELECTION 0xc040565eul #define RTC_ALM_SET 0x40247007ul -#define PPPOEIOCSFWD 0x4004b100ul #define IPMICTL_GET_MAINTENANCE_MODE_CMD 0x8004691eul #define FS_IOC_ENABLE_VERITY 0x40806685ul #define NILFS_IOCTL_GET_BDESCS 0xc0186e87ul @@ -20951,7 +20195,6 @@ #define BTRFS_IOC_QUOTA_RESCAN_WAIT 0x942eul #define RIO_CM_CHAN_BIND 0x40086305ul #define HIDIOCGRDESC 0x90044802ul -#define MGSL_IOCGIF 0x6d0bul #define VIDIOC_S_OUTPUT 0xc004562ful #define HIDIOCGREPORTINFO 0xc00c4809ul #define WDIOC_GETBOOTSTATUS 0x80045702ul @@ -20980,5 +20223,16 @@ #define ACRN_IOCTL_RESET_VM 0xa215ul #define ACRN_IOCTL_DESTROY_IOREQ_CLIENT 0xa234ul #define ACRN_IOCTL_VM_INTR_MONITOR 0x4004a224ul +#define PIDFD_GET_CGROUP_NAMESPACE 0xff01ul +#define PIDFD_GET_IPC_NAMESPACE 0xff02ul +#define PIDFD_GET_MNT_NAMESPACE 0xff03ul +#define PIDFD_GET_NET_NAMESPACE 0xff04ul +#define PIDFD_GET_PID_NAMESPACE 0xff05ul +#define PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE 0xff06ul +#define PIDFD_GET_TIME_NAMESPACE 0xff07ul +#define PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE 0xff08ul +#define PIDFD_GET_USER_NAMESPACE 0xff09ul +#define PIDFD_GET_UTS_NAMESPACE 0xff0aul +#define PIDFD_GET_INFO 0xc058ff0bul #endif #include "ioctl-addendum.h" diff --git a/gen/modules/keyctl.h b/gen/modules/keyctl.h new file mode 100644 index 000000000..1bbc58278 --- /dev/null +++ b/gen/modules/keyctl.h @@ -0,0 +1 @@ +#include diff --git a/gen/src/main.rs b/gen/src/main.rs index 965458ebd..6bfb209b7 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.17"; +const LINUX_VERSION: &str = "v7.2"; /// Some commonly used features. const DEFAULT_FEATURES: &str = "\"general\", \"errno\""; diff --git a/src/aarch64/auxvec.rs b/src/aarch64/auxvec.rs index 0943414c7..9ca3dac02 100644 --- a/src/aarch64/auxvec.rs +++ b/src/aarch64/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_MINSIGSTKSZ: u32 = 51; diff --git a/src/aarch64/bootparam.rs b/src/aarch64/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/aarch64/bootparam.rs +++ b/src/aarch64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/aarch64/btrfs.rs b/src/aarch64/btrfs.rs index 89ec91269..1da4e05c9 100644 --- a/src/aarch64/btrfs.rs +++ b/src/aarch64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -554,7 +555,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -741,7 +742,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, @@ -759,6 +760,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -912,7 +930,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1176,6 +1197,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1214,6 +1244,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1340,6 +1375,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1355,6 +1391,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1386,6 +1423,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1431,6 +1469,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1482,6 +1523,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1547,6 +1591,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1607,6 +1652,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1623,6 +1678,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1672,6 +1728,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1751,7 +1810,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1759,6 +1820,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1861,6 +1923,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/aarch64/elf_uapi.rs b/src/aarch64/elf_uapi.rs index 7f7c25aeb..fc04b6187 100644 --- a/src/aarch64/elf_uapi.rs +++ b/src/aarch64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -624,6 +625,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/aarch64/errno.rs b/src/aarch64/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/aarch64/errno.rs +++ b/src/aarch64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/aarch64/general.rs b/src/aarch64/general.rs index a95135347..d37319611 100644 --- a/src/aarch64/general.rs +++ b/src/aarch64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -156,6 +157,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -287,10 +295,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -956,6 +964,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1042,7 +1078,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1059,9 +1094,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1149,6 +1184,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4210688; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1221,6 +1257,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1232,6 +1270,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1391,6 +1430,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1407,6 +1447,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1438,6 +1479,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1483,6 +1525,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1534,6 +1579,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1550,7 +1598,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1564,6 +1614,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1579,6 +1641,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1705,6 +1769,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1898,7 +1964,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1920,6 +1991,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const SA_RESTORER: u32 = 67108864; pub const MINSIGSTKSZ: u32 = 5120; pub const SIGSTKSZ: u32 = 16384; @@ -2637,6 +2709,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2749,6 +2823,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2879,6 +2979,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -2988,13 +3094,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3002,13 +3125,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3016,24 +3158,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3069,161 +3510,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/aarch64/if_arp.rs b/src/aarch64/if_arp.rs index dec271a6e..a6b878c94 100644 --- a/src/aarch64/if_arp.rs +++ b/src/aarch64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -723,6 +724,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -731,6 +733,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -753,11 +756,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -787,6 +792,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1117,6 +1123,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1187,6 +1195,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1235,6 +1244,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1306,6 +1316,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1380,6 +1391,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1434,6 +1448,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1452,6 +1467,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1812,7 +1830,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1910,7 +1930,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1968,7 +1998,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2140,6 +2171,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2158,7 +2196,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2274,7 +2313,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2364,7 +2406,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2392,7 +2435,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/aarch64/if_ether.rs b/src/aarch64/if_ether.rs index 8e621d756..8a23d70aa 100644 --- a/src/aarch64/if_ether.rs +++ b/src/aarch64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -104,6 +105,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -112,6 +114,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -134,11 +137,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -168,3 +173,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/aarch64/if_packet.rs b/src/aarch64/if_packet.rs index 6deaf325d..1d07dd0ed 100644 --- a/src/aarch64/if_packet.rs +++ b/src/aarch64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/aarch64/if_tun.rs b/src/aarch64/if_tun.rs index fb88de3c0..585031c9b 100644 --- a/src/aarch64/if_tun.rs +++ b/src/aarch64/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -134,6 +135,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -142,6 +144,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -164,11 +167,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -198,6 +203,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/aarch64/image.rs b/src/aarch64/image.rs index 92449817f..805d362d1 100644 --- a/src/aarch64/image.rs +++ b/src/aarch64/image.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/aarch64/io_uring.rs b/src/aarch64/io_uring.rs index db5da5235..aec75bd5a 100644 --- a/src/aarch64/io_uring.rs +++ b/src/aarch64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -175,10 +179,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -322,6 +326,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -402,7 +493,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -550,6 +641,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -581,7 +687,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -607,7 +713,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -677,52 +784,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -844,6 +905,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -859,6 +921,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -890,6 +953,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -935,6 +999,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -986,6 +1053,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1006,8 +1077,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1016,6 +1091,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1047,11 +1123,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1094,7 +1173,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1134,6 +1212,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1210,7 +1331,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1258,7 +1381,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1335,12 +1461,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1358,6 +1479,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1421,6 +1555,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1454,12 +1593,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/aarch64/ioctl.rs b/src/aarch64/ioctl.rs index b4c68a59a..c4039b7b9 100644 --- a/src/aarch64/ioctl.rs +++ b/src/aarch64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076389384; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149581316; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2148036621; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2155872785; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2148035841; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2148035650; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2148036769; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074815752; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074815314; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -830,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -840,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -868,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -893,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -913,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074815364; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -923,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1082131088; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -949,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; pub const MTIOCPOS: u32 = 2148035843; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1028,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; pub const FDSETPRM: u32 = 1075839554; pub const ATM_GETSTATZ: u32 = 1074815313; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1039,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074286598; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1072,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1104,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1155,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1184,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1197,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074287980; pub const FDWERRORGET: u32 = 2150105623; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1210,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1218,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1236,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074815361; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1245,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1265,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1277,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1321,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1341,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2150105621; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1353,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1364,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1384,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1397,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1418,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074815372; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074294796; @@ -1431,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2148035842; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1470,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1499,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/aarch64/keyctl.rs b/src/aarch64/keyctl.rs new file mode 100644 index 000000000..3a25d8d5e --- /dev/null +++ b/src/aarch64/keyctl.rs @@ -0,0 +1,166 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/aarch64/landlock.rs b/src/aarch64/landlock.rs index 4767a6ec7..210c94466 100644 --- a/src/aarch64/landlock.rs +++ b/src/aarch64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -56,6 +57,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -72,9 +76,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -91,8 +97,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/aarch64/loop_device.rs b/src/aarch64/loop_device.rs index 839064df3..44ec73fc7 100644 --- a/src/aarch64/loop_device.rs +++ b/src/aarch64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_old_uid_t = crate::ctypes::c_ushort; pub type __kernel_old_gid_t = crate::ctypes::c_ushort; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/aarch64/mempolicy.rs b/src/aarch64/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/aarch64/mempolicy.rs +++ b/src/aarch64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/aarch64/net.rs b/src/aarch64/net.rs index 8a28727ed..768ef4bfe 100644 --- a/src/aarch64/net.rs +++ b/src/aarch64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -142,7 +146,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -179,7 +183,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -340,7 +343,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -367,7 +369,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -397,7 +398,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -450,6 +450,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -476,7 +484,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1337,6 +1341,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2369,13 +2381,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2383,13 +2412,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2397,27 +2445,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2451,12 +2803,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2488,57 +2840,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2547,57 +2908,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2606,291 +2976,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2899,194 +3314,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3095,109 +3666,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3206,161 +3794,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3369,109 +3982,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/aarch64/netlink.rs b/src/aarch64/netlink.rs index 79151d759..7ed5ed687 100644 --- a/src/aarch64/netlink.rs +++ b/src/aarch64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -139,6 +140,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -744,6 +750,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -756,6 +763,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -897,6 +905,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -975,6 +984,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1045,6 +1056,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1093,6 +1105,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1164,6 +1177,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1238,6 +1252,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1292,6 +1309,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1310,6 +1328,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1954,7 +1975,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2297,11 +2328,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2320,7 +2377,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2384,6 +2443,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2436,7 +2505,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2573,7 +2645,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2598,6 +2672,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2645,7 +2736,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2730,6 +2828,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2977,7 +3076,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3028,7 +3129,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3042,7 +3144,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3418,7 +3523,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3621,6 +3732,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3704,13 +3843,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3722,7 +3870,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3739,7 +3889,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3759,7 +3939,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3800,7 +3990,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3942,6 +4144,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4011,7 +4236,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4109,7 +4336,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4167,7 +4404,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4339,6 +4577,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4357,7 +4602,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4473,7 +4719,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4563,7 +4812,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4591,7 +4841,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5379,22 +5632,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5412,16 +5665,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5454,16 +5710,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5505,7 +5761,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5528,6 +5784,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5543,20 +5805,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5591,6 +5859,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/aarch64/prctl.rs b/src/aarch64/prctl.rs index 7cbb05e2d..8715dafec 100644 --- a/src/aarch64/prctl.rs +++ b/src/aarch64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -150,6 +151,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -270,3 +272,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/aarch64/ptrace.rs b/src/aarch64/ptrace.rs index 6192cdff1..e0adeaf41 100644 --- a/src/aarch64/ptrace.rs +++ b/src/aarch64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -432,6 +433,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -883,6 +886,16 @@ pub const HWCAP2_SME_SF8DP2: u64 = 4611686018427387904; pub const HWCAP2_POE: i64 = -9223372036854775808; pub const HWCAP3_MTE_FAR: u32 = 1; pub const HWCAP3_MTE_STORE_ONLY: u32 = 2; +pub const HWCAP3_LSFE: u32 = 4; +pub const HWCAP3_LS64: u32 = 8; +pub const HWCAP3_SVE_B16MM: u32 = 16; +pub const HWCAP3_SVE2P3: u32 = 32; +pub const HWCAP3_SME_LUT6: u32 = 64; +pub const HWCAP3_SME2P3: u32 = 128; +pub const HWCAP3_F16MM: u32 = 256; +pub const HWCAP3_F16F32DOT: u32 = 512; +pub const HWCAP3_F16F32MM: u32 = 1024; +pub const HWCAP3_SVE_LUT6: u32 = 2048; pub const __SVE_VQ_BYTES: u32 = 16; pub const __SVE_VQ_MIN: u32 = 1; pub const __SVE_VQ_MAX: u32 = 512; diff --git a/src/aarch64/system.rs b/src/aarch64/system.rs index 91e303e81..09a696952 100644 --- a/src/aarch64/system.rs +++ b/src/aarch64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/aarch64/vm_sockets.rs b/src/aarch64/vm_sockets.rs index 77337618e..902d2eeb4 100644 --- a/src/aarch64/vm_sockets.rs +++ b/src/aarch64/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/aarch64/xdp.rs b/src/aarch64/xdp.rs index 8ffc55b65..c2f2e2c28 100644 --- a/src/aarch64/xdp.rs +++ b/src/aarch64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/arm/auxvec.rs b/src/arm/auxvec.rs index 130f15929..8f4aeab32 100644 --- a/src/arm/auxvec.rs +++ b/src/arm/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_NULL: u32 = 0; diff --git a/src/arm/bootparam.rs b/src/arm/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/arm/bootparam.rs +++ b/src/arm/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/arm/btrfs.rs b/src/arm/btrfs.rs index f394082cc..f6ca96281 100644 --- a/src/arm/btrfs.rs +++ b/src/arm/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1338,6 +1373,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1353,6 +1389,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1384,6 +1421,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1429,6 +1467,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1480,6 +1521,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1545,6 +1589,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1605,6 +1650,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1621,6 +1676,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1670,6 +1726,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1749,7 +1808,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1757,6 +1818,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1859,6 +1921,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/arm/elf_uapi.rs b/src/arm/elf_uapi.rs index a926d64ea..3c566b578 100644 --- a/src/arm/elf_uapi.rs +++ b/src/arm/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -622,6 +623,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/arm/errno.rs b/src/arm/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/arm/errno.rs +++ b/src/arm/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/arm/general.rs b/src/arm/general.rs index 3688945fa..1e7155ecb 100644 --- a/src/arm/general.rs +++ b/src/arm/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -154,6 +155,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -285,10 +293,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -949,6 +957,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1071,7 +1107,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1088,9 +1123,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1178,6 +1213,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4210688; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1253,6 +1289,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1264,6 +1302,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1423,6 +1462,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1439,6 +1479,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1470,6 +1511,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1515,6 +1557,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1566,6 +1611,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1582,7 +1630,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1596,6 +1646,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1611,6 +1673,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1737,6 +1801,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1926,7 +1992,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1948,6 +2019,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const NSIG: u32 = 32; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2764,6 +2836,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const __NR_sync_file_range2: u32 = 341; pub const __ARM_NR_BASE: u32 = 983040; pub const __ARM_NR_breakpoint: u32 = 983041; @@ -2884,6 +2958,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3015,6 +3115,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigaction__bindgen_ty_1 { pub _sa_handler: __sighandler_t, pub _sa_sigaction: ::core::option::Option, @@ -3130,13 +3236,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3144,13 +3267,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3158,24 +3300,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3211,161 +3652,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/arm/if_arp.rs b/src/arm/if_arp.rs index d310822ab..191fe3268 100644 --- a/src/arm/if_arp.rs +++ b/src/arm/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -721,6 +722,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -729,6 +731,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -751,11 +754,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -785,6 +790,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1115,6 +1121,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1185,6 +1193,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1233,6 +1242,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1304,6 +1314,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1378,6 +1389,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1432,6 +1446,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1450,6 +1465,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1810,7 +1828,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1908,7 +1928,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1966,7 +1996,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2138,6 +2169,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2156,7 +2194,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2272,7 +2311,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2362,7 +2404,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2390,7 +2433,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/arm/if_ether.rs b/src/arm/if_ether.rs index 8fb6dcaae..dae5505fd 100644 --- a/src/arm/if_ether.rs +++ b/src/arm/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -102,6 +103,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -110,6 +112,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -132,11 +135,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -166,3 +171,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/arm/if_packet.rs b/src/arm/if_packet.rs index 041a9afdb..8607a0906 100644 --- a/src/arm/if_packet.rs +++ b/src/arm/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/arm/if_tun.rs b/src/arm/if_tun.rs index 33d4aa16e..d98016e54 100644 --- a/src/arm/if_tun.rs +++ b/src/arm/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -132,6 +133,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -140,6 +142,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -162,11 +165,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -196,6 +201,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/arm/image.rs b/src/arm/image.rs index bff15e373..c95e29d35 100644 --- a/src/arm/image.rs +++ b/src/arm/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/arm/io_uring.rs b/src/arm/io_uring.rs index 9fe580ef4..d449afbb7 100644 --- a/src/arm/io_uring.rs +++ b/src/arm/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -49,6 +50,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -173,10 +177,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +324,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -400,7 +491,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -548,6 +639,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -579,7 +685,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -605,7 +711,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -675,52 +782,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -842,6 +903,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -857,6 +919,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -888,6 +951,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -933,6 +997,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -984,6 +1051,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1004,8 +1075,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1014,6 +1089,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1045,11 +1121,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1092,7 +1171,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1132,6 +1210,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1208,7 +1329,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1256,7 +1379,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1333,12 +1459,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1356,6 +1477,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1419,6 +1553,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1452,12 +1591,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/arm/ioctl.rs b/src/arm/ioctl.rs index 8cf71c068..8b52623f7 100644 --- a/src/arm/ioctl.rs +++ b/src/arm/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076389384; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2149608705; -pub const ENI_SETMULT: u32 = 1074553191; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222036833; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074553230; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149319172; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074553184; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2147774477; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074553232; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2153251345; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2147773697; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3223087369; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074553139; pub const I2OPARMSET: u32 = 3222825219; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074553224; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1075866880; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074553223; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2147773506; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074553185; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2147774625; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074291464; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234616836; pub const RTC_EPOCH_SET: u32 = 1074032654; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074553170; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -830,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3225703951; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -840,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -868,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -893,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -913,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074553220; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -923,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1079509648; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -949,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074032643; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074553187; pub const MTIOCPOS: u32 = 2147773699; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1028,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074291188; pub const FDSETPRM: u32 = 1075577410; pub const ATM_GETSTATZ: u32 = 1074553169; pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; @@ -1039,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074024454; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1072,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074553184; pub const ATM_SETLOOP: u32 = 1074553171; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221512970; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1104,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074553231; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1155,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222038786; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074553186; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1184,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1197,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074025836; pub const FDWERRORGET: u32 = 2149057047; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1210,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1218,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221504262; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1236,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074553217; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1245,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074553222; pub const PHN_GET_REGS: u32 = 3221516290; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1265,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1277,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074553138; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1321,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1341,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2149581333; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074553186; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1353,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1364,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1384,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1397,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223606824; @@ -1418,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074553228; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074553225; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074032652; @@ -1431,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3225703953; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2147773698; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074049280; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1470,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1499,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/arm/keyctl.rs b/src/arm/keyctl.rs new file mode 100644 index 000000000..d99761abe --- /dev/null +++ b/src/arm/keyctl.rs @@ -0,0 +1,164 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/arm/landlock.rs b/src/arm/landlock.rs index 2f9257ddf..cd2463a82 100644 --- a/src/arm/landlock.rs +++ b/src/arm/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -70,9 +74,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -89,8 +95,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/arm/loop_device.rs b/src/arm/loop_device.rs index a69c0087d..b01a7a325 100644 --- a/src/arm/loop_device.rs +++ b/src/arm/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_mode_t = crate::ctypes::c_ushort; pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/arm/mempolicy.rs b/src/arm/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/arm/mempolicy.rs +++ b/src/arm/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/arm/net.rs b/src/arm/net.rs index dd925ce38..db6cfb64c 100644 --- a/src/arm/net.rs +++ b/src/arm/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1329,6 +1333,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2361,13 +2373,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2375,13 +2404,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2389,27 +2437,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2443,12 +2795,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2480,57 +2832,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2539,57 +2900,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2598,291 +2968,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2891,194 +3306,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3087,109 +3658,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3198,161 +3786,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3361,109 +3974,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/arm/netlink.rs b/src/arm/netlink.rs index 287111f8e..d7a199dfc 100644 --- a/src/arm/netlink.rs +++ b/src/arm/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -742,6 +748,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -754,6 +761,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -895,6 +903,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -973,6 +982,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1043,6 +1054,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1091,6 +1103,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1162,6 +1175,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1236,6 +1250,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1290,6 +1307,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1308,6 +1326,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1952,7 +1973,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2295,11 +2326,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2318,7 +2375,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2382,6 +2441,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2434,7 +2503,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2571,7 +2643,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2596,6 +2670,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2643,7 +2734,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2728,6 +2826,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2975,7 +3074,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3026,7 +3127,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3040,7 +3142,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3416,7 +3521,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3619,6 +3730,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3702,13 +3841,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3720,7 +3868,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3737,7 +3887,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3757,7 +3937,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3798,7 +3988,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3940,6 +4142,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4009,7 +4234,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4107,7 +4334,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4165,7 +4402,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4337,6 +4575,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4355,7 +4600,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4471,7 +4717,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4561,7 +4810,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4589,7 +4839,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5377,22 +5630,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5410,16 +5663,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5452,16 +5708,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5503,7 +5759,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5526,6 +5782,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5541,20 +5803,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5589,6 +5857,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/arm/prctl.rs b/src/arm/prctl.rs index 88cdc034f..7a50cf773 100644 --- a/src/arm/prctl.rs +++ b/src/arm/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -148,6 +149,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -268,3 +270,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/arm/ptrace.rs b/src/arm/ptrace.rs index 1c1c03307..b43b4736d 100644 --- a/src/arm/ptrace.rs +++ b/src/arm/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -355,6 +356,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -782,7 +785,6 @@ pub const APSR_MASK: u32 = 4161732608; pub const PSR_ISET_MASK: u32 = 16777232; pub const PSR_IT_MASK: u32 = 100727808; pub const PSR_ENDIAN_MASK: u32 = 512; -pub const PSR_ENDSTATE: u32 = 0; pub const PT_TEXT_ADDR: u32 = 65536; pub const PT_DATA_ADDR: u32 = 65540; pub const PT_TEXT_END_ADDR: u32 = 65544; diff --git a/src/arm/system.rs b/src/arm/system.rs index 87e1c0a59..745a1dfb2 100644 --- a/src/arm/system.rs +++ b/src/arm/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/arm/vm_sockets.rs b/src/arm/vm_sockets.rs index 378bf38e1..d2be6d81e 100644 --- a/src/arm/vm_sockets.rs +++ b/src/arm/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/arm/xdp.rs b/src/arm/xdp.rs index 49cb739dc..0d14c70a1 100644 --- a/src/arm/xdp.rs +++ b/src/arm/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/csky/auxvec.rs b/src/csky/auxvec.rs index 4ff4b54b6..4ea86459b 100644 --- a/src/csky/auxvec.rs +++ b/src/csky/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_NULL: u32 = 0; pub const AT_IGNORE: u32 = 1; diff --git a/src/csky/bootparam.rs b/src/csky/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/csky/bootparam.rs +++ b/src/csky/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/csky/btrfs.rs b/src/csky/btrfs.rs index bf523af31..02cb561ec 100644 --- a/src/csky/btrfs.rs +++ b/src/csky/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1338,6 +1373,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1353,6 +1389,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1384,6 +1421,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1429,6 +1467,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1480,6 +1521,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1545,6 +1589,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1605,6 +1650,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1621,6 +1676,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1670,6 +1726,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1749,7 +1808,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1757,6 +1818,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1859,6 +1921,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/csky/elf_uapi.rs b/src/csky/elf_uapi.rs index 9a42c19d3..5b7a87084 100644 --- a/src/csky/elf_uapi.rs +++ b/src/csky/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -622,6 +623,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/csky/errno.rs b/src/csky/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/csky/errno.rs +++ b/src/csky/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/csky/general.rs b/src/csky/general.rs index 12691f99c..9a590b4cb 100644 --- a/src/csky/general.rs +++ b/src/csky/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -154,6 +155,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -285,10 +293,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -955,6 +963,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1065,7 +1101,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1081,9 +1116,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1171,6 +1206,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1246,6 +1282,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1257,6 +1295,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1416,6 +1455,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1432,6 +1472,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1463,6 +1504,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1508,6 +1550,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1559,6 +1604,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1575,7 +1623,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1589,6 +1639,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1604,6 +1666,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1730,6 +1794,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1919,7 +1985,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1941,6 +2012,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 64; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2675,6 +2747,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const __NR_sync_file_range2: u32 = 84; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; @@ -2788,6 +2862,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2918,6 +3018,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3027,13 +3133,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3041,13 +3164,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3055,24 +3197,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3108,161 +3549,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/csky/if_arp.rs b/src/csky/if_arp.rs index e33ba3918..2c0af34c5 100644 --- a/src/csky/if_arp.rs +++ b/src/csky/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -723,6 +724,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -731,6 +733,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -753,11 +756,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -787,6 +792,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1117,6 +1123,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1187,6 +1195,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1235,6 +1244,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1306,6 +1316,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1380,6 +1391,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1434,6 +1448,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1452,6 +1467,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1812,7 +1830,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1910,7 +1930,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1968,7 +1998,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2140,6 +2171,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2158,7 +2196,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2274,7 +2313,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2364,7 +2406,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2392,7 +2435,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/csky/if_ether.rs b/src/csky/if_ether.rs index 37b557031..bd28b4bd8 100644 --- a/src/csky/if_ether.rs +++ b/src/csky/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -102,6 +103,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -110,6 +112,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -132,11 +135,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -166,3 +171,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/csky/if_packet.rs b/src/csky/if_packet.rs index f3b1a9bb8..fc523ac29 100644 --- a/src/csky/if_packet.rs +++ b/src/csky/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/csky/if_tun.rs b/src/csky/if_tun.rs index a2929007e..1330de1ef 100644 --- a/src/csky/if_tun.rs +++ b/src/csky/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -132,6 +133,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -140,6 +142,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -162,11 +165,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -196,6 +201,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/csky/image.rs b/src/csky/image.rs index bff15e373..c95e29d35 100644 --- a/src/csky/image.rs +++ b/src/csky/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/csky/io_uring.rs b/src/csky/io_uring.rs index ebcce3050..9b8e796bf 100644 --- a/src/csky/io_uring.rs +++ b/src/csky/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +321,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -552,6 +640,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -609,7 +712,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -679,52 +783,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -846,6 +904,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -861,6 +920,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -892,6 +952,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -937,6 +998,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -988,6 +1052,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1008,8 +1076,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1018,6 +1090,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1049,11 +1122,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1096,7 +1172,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1136,6 +1211,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1212,7 +1330,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1260,7 +1380,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1337,12 +1460,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1360,6 +1478,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1456,12 +1587,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/csky/ioctl.rs b/src/csky/ioctl.rs index 35c4c22c4..7511adeae 100644 --- a/src/csky/ioctl.rs +++ b/src/csky/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076127240; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2149608705; -pub const ENI_SETMULT: u32 = 1074553191; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222036833; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074553230; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149319172; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074553184; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2147774477; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074553232; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2153251345; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2147773697; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225441817; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076110081; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3223087369; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074553139; pub const I2OPARMSET: u32 = 3222825219; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074553224; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1075866880; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074553223; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2147773506; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074553185; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2147774625; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228508482; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223069448; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074291464; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234616836; pub const RTC_EPOCH_SET: u32 = 1074032654; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074553170; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -819,7 +792,6 @@ pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222545173; pub const NBD_SET_FLAGS: u32 = 43786; pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074056449; pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; pub const RIO_SET_EVENT_MASK: u32 = 1074031885; pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; @@ -831,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3225703951; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -841,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222565638; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -869,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225441817; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -894,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -914,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074553220; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -924,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1079509648; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -950,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074032643; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074553187; pub const MTIOCPOS: u32 = 2147773699; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1029,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074291188; pub const FDSETPRM: u32 = 1075577410; pub const ATM_GETSTATZ: u32 = 1074553169; pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; @@ -1040,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074024454; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1073,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074553184; pub const ATM_SETLOOP: u32 = 1074553171; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221512970; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1105,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391394869; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222545172; -pub const ATM_DELLECSADDR: u32 = 1074553231; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1156,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222038786; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074553186; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1185,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1198,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074025836; pub const FDWERRORGET: u32 = 2149057047; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1211,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1219,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221504262; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1237,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074553217; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1246,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074553222; pub const PHN_GET_REGS: u32 = 3221516290; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1266,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1278,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074553138; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1322,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1342,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2149581333; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226228250; -pub const ZATM_GETPOOLZ: u32 = 1074553186; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1354,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1365,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1385,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1398,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223606824; @@ -1419,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074553228; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074553225; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074032652; @@ -1432,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3225703953; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2147773698; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074049280; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1471,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1500,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/csky/keyctl.rs b/src/csky/keyctl.rs new file mode 100644 index 000000000..9b9b7908a --- /dev/null +++ b/src/csky/keyctl.rs @@ -0,0 +1,164 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/csky/landlock.rs b/src/csky/landlock.rs index 003e937b4..8fb2dab84 100644 --- a/src/csky/landlock.rs +++ b/src/csky/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -70,9 +74,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -89,8 +95,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/csky/loop_device.rs b/src/csky/loop_device.rs index ea21927f7..e32b7f411 100644 --- a/src/csky/loop_device.rs +++ b/src/csky/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/csky/mempolicy.rs b/src/csky/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/csky/mempolicy.rs +++ b/src/csky/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/csky/net.rs b/src/csky/net.rs index 75a1fbff2..77eec26e3 100644 --- a/src/csky/net.rs +++ b/src/csky/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -506,7 +512,6 @@ pub keyflags: __u8, #[repr(align(8))] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -525,7 +530,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1331,6 +1335,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2363,13 +2375,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2377,13 +2406,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2391,27 +2439,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2445,12 +2797,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2482,57 +2834,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2541,57 +2902,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2600,291 +2970,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2893,194 +3308,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3089,109 +3660,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3200,161 +3788,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3363,109 +3976,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/csky/netlink.rs b/src/csky/netlink.rs index 54bbc5639..59bced4fe 100644 --- a/src/csky/netlink.rs +++ b/src/csky/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -742,6 +748,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -754,6 +761,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -895,6 +903,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -973,6 +982,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1043,6 +1054,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1091,6 +1103,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1162,6 +1175,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1236,6 +1250,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1290,6 +1307,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1308,6 +1326,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1952,7 +1973,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2295,11 +2326,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2318,7 +2375,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2382,6 +2441,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2434,7 +2503,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2571,7 +2643,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2596,6 +2670,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2643,7 +2734,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2728,6 +2826,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2975,7 +3074,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3026,7 +3127,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3040,7 +3142,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3416,7 +3521,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3619,6 +3730,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3702,13 +3841,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3720,7 +3868,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3737,7 +3887,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3757,7 +3937,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3798,7 +3988,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3940,6 +4142,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4009,7 +4234,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4107,7 +4334,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4165,7 +4402,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4337,6 +4575,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4355,7 +4600,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4471,7 +4717,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4561,7 +4810,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4589,7 +4839,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5377,22 +5630,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5410,16 +5663,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5452,16 +5708,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5503,7 +5759,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5526,6 +5782,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5541,20 +5803,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5589,6 +5857,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/csky/prctl.rs b/src/csky/prctl.rs index ff251ffad..28a69b9d7 100644 --- a/src/csky/prctl.rs +++ b/src/csky/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -148,6 +149,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -268,3 +270,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/csky/ptrace.rs b/src/csky/ptrace.rs index 11f5cbaec..7658004af 100644 --- a/src/csky/ptrace.rs +++ b/src/csky/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -374,6 +375,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/csky/system.rs b/src/csky/system.rs index 7ed06a505..65795dd7d 100644 --- a/src/csky/system.rs +++ b/src/csky/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/csky/vm_sockets.rs b/src/csky/vm_sockets.rs index 5d0bb47dd..f55f5fa41 100644 --- a/src/csky/vm_sockets.rs +++ b/src/csky/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/csky/xdp.rs b/src/csky/xdp.rs index 4eee12505..c6c30ecda 100644 --- a/src/csky/xdp.rs +++ b/src/csky/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/hexagon/auxvec.rs b/src/hexagon/auxvec.rs index 4ff4b54b6..4ea86459b 100644 --- a/src/hexagon/auxvec.rs +++ b/src/hexagon/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_NULL: u32 = 0; pub const AT_IGNORE: u32 = 1; diff --git a/src/hexagon/bootparam.rs b/src/hexagon/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/hexagon/bootparam.rs +++ b/src/hexagon/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/hexagon/btrfs.rs b/src/hexagon/btrfs.rs index 5864757ec..8c8ed63c2 100644 --- a/src/hexagon/btrfs.rs +++ b/src/hexagon/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1338,6 +1373,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1353,6 +1389,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1384,6 +1421,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1429,6 +1467,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1480,6 +1521,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1545,6 +1589,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1605,6 +1650,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1621,6 +1676,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1670,6 +1726,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1749,7 +1808,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1757,6 +1818,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1859,6 +1921,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/hexagon/elf_uapi.rs b/src/hexagon/elf_uapi.rs index 9a42c19d3..5b7a87084 100644 --- a/src/hexagon/elf_uapi.rs +++ b/src/hexagon/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -622,6 +623,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/hexagon/errno.rs b/src/hexagon/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/hexagon/errno.rs +++ b/src/hexagon/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/hexagon/general.rs b/src/hexagon/general.rs index b08f81251..3d88921fc 100644 --- a/src/hexagon/general.rs +++ b/src/hexagon/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -70,11 +71,6 @@ pub type __fsword_t = __u32; pub struct __BindgenBitfieldUnit { storage: Storage, } -#[doc = r" If Bindgen could only determine the size and alignment of a"] -#[doc = r" type, it is represented like this."] -#[derive(PartialEq, Copy, Clone, Debug, Hash)] -#[repr(C)] -pub struct __BindgenOpaqueArray(pub [T; N]); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -159,6 +155,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -290,10 +293,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -958,6 +961,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1068,7 +1099,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1084,9 +1114,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1174,6 +1204,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1249,6 +1280,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1260,6 +1293,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1419,6 +1453,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1435,6 +1470,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1466,6 +1502,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1511,6 +1548,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1562,6 +1602,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1578,7 +1621,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1592,6 +1637,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1607,6 +1664,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1733,6 +1792,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1922,7 +1983,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1944,6 +2010,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 64; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2677,6 +2744,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const __NR_sync_file_range2: u32 = 84; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; @@ -2790,6 +2859,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2920,6 +3015,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3029,13 +3130,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3043,13 +3161,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3057,30 +3194,324 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; } } +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } -impl Default for __BindgenOpaqueArray { -fn default() -> Self { -Self([::default(); N]) } } impl __IncompleteArrayField { @@ -3115,170 +3546,189 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); __bindgen_bitfield_unit } } -unsafe extern "C" { -pub static mut __rt_sigtramp_template: [crate::ctypes::c_ulong; 2usize]; -} -unsafe extern "C" { -pub fn do_signal(regs: *mut __BindgenOpaqueArray); -} diff --git a/src/hexagon/if_arp.rs b/src/hexagon/if_arp.rs index c6df1361a..969bb03ba 100644 --- a/src/hexagon/if_arp.rs +++ b/src/hexagon/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -721,6 +722,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -729,6 +731,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -751,11 +754,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -785,6 +790,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1115,6 +1121,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1185,6 +1193,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1233,6 +1242,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1304,6 +1314,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1378,6 +1389,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1432,6 +1446,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1450,6 +1465,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1810,7 +1828,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u8)] #[non_exhaustive] @@ -1908,7 +1928,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u8)] #[non_exhaustive] @@ -1966,7 +1996,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u8)] #[non_exhaustive] @@ -2138,6 +2169,13 @@ NETKIT_L3 = 1, #[repr(u8)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2156,7 +2194,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u8)] #[non_exhaustive] @@ -2272,7 +2311,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u8)] #[non_exhaustive] @@ -2362,7 +2404,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u8)] #[non_exhaustive] @@ -2390,7 +2433,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u8)] #[non_exhaustive] diff --git a/src/hexagon/if_ether.rs b/src/hexagon/if_ether.rs index 37b557031..bd28b4bd8 100644 --- a/src/hexagon/if_ether.rs +++ b/src/hexagon/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -102,6 +103,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -110,6 +112,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -132,11 +135,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -166,3 +171,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/hexagon/if_packet.rs b/src/hexagon/if_packet.rs index 8b03f00d7..d4015a983 100644 --- a/src/hexagon/if_packet.rs +++ b/src/hexagon/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/hexagon/if_tun.rs b/src/hexagon/if_tun.rs index a2929007e..1330de1ef 100644 --- a/src/hexagon/if_tun.rs +++ b/src/hexagon/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -132,6 +133,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -140,6 +142,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -162,11 +165,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -196,6 +201,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/hexagon/image.rs b/src/hexagon/image.rs index bff15e373..c95e29d35 100644 --- a/src/hexagon/image.rs +++ b/src/hexagon/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/hexagon/io_uring.rs b/src/hexagon/io_uring.rs index 4fc3f1725..2eb068e07 100644 --- a/src/hexagon/io_uring.rs +++ b/src/hexagon/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -49,6 +50,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -173,10 +177,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +324,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -400,7 +491,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -548,6 +639,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -579,7 +685,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -605,7 +711,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -675,52 +782,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -842,6 +903,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -857,6 +919,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -888,6 +951,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -933,6 +997,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -984,6 +1051,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1004,8 +1075,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1014,6 +1089,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1045,11 +1121,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1092,7 +1171,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1132,6 +1210,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u8)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1208,7 +1329,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u8)] #[non_exhaustive] @@ -1256,7 +1379,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u8)] @@ -1333,12 +1459,7 @@ SOCKET_URING_OP_SIOCOUTQ = 1, SOCKET_URING_OP_GETSOCKOPT = 2, SOCKET_URING_OP_SETSOCKOPT = 3, SOCKET_URING_OP_TX_TIMESTAMP = 4, -} -#[repr(u8)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1356,6 +1477,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1419,6 +1553,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1452,12 +1591,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/hexagon/ioctl.rs b/src/hexagon/ioctl.rs index bff15e373..c95e29d35 100644 --- a/src/hexagon/ioctl.rs +++ b/src/hexagon/ioctl.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/hexagon/keyctl.rs b/src/hexagon/keyctl.rs new file mode 100644 index 000000000..9b9b7908a --- /dev/null +++ b/src/hexagon/keyctl.rs @@ -0,0 +1,164 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/hexagon/landlock.rs b/src/hexagon/landlock.rs index 6dd3378d9..d20fa583a 100644 --- a/src/hexagon/landlock.rs +++ b/src/hexagon/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -70,9 +74,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -89,8 +95,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u8)] diff --git a/src/hexagon/loop_device.rs b/src/hexagon/loop_device.rs index e708bce2b..26c775af3 100644 --- a/src/hexagon/loop_device.rs +++ b/src/hexagon/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/hexagon/mempolicy.rs b/src/hexagon/mempolicy.rs index a9fe500d5..f24f8f0f9 100644 --- a/src/hexagon/mempolicy.rs +++ b/src/hexagon/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/hexagon/net.rs b/src/hexagon/net.rs index f4db6751e..a4dd06c37 100644 --- a/src/hexagon/net.rs +++ b/src/hexagon/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1329,6 +1333,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2361,13 +2373,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2375,13 +2404,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2389,27 +2437,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2443,12 +2795,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2480,57 +2832,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2539,57 +2900,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2598,291 +2968,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2891,194 +3306,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3087,109 +3658,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3198,161 +3786,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3361,109 +3974,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/hexagon/netlink.rs b/src/hexagon/netlink.rs index 7ca8f4092..90dd6af29 100644 --- a/src/hexagon/netlink.rs +++ b/src/hexagon/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -742,6 +748,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -754,6 +761,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -895,6 +903,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -973,6 +982,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1043,6 +1054,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1091,6 +1103,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1162,6 +1175,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1236,6 +1250,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1290,6 +1307,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1308,6 +1326,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1952,7 +1973,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u16)] #[non_exhaustive] @@ -2295,11 +2326,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u8)] #[non_exhaustive] @@ -2318,7 +2375,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u8)] #[non_exhaustive] @@ -2382,6 +2441,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u8)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2434,7 +2503,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u8)] #[non_exhaustive] @@ -2571,7 +2643,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u8)] #[non_exhaustive] @@ -2596,6 +2670,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u8)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2643,7 +2734,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u8)] #[non_exhaustive] @@ -2728,6 +2826,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u8)] #[non_exhaustive] @@ -2975,7 +3074,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u8)] #[non_exhaustive] @@ -3026,7 +3127,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u8)] #[non_exhaustive] @@ -3040,7 +3142,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u8)] #[non_exhaustive] @@ -3416,7 +3521,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u8)] #[non_exhaustive] @@ -3619,6 +3730,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u8)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3702,13 +3841,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u8)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u8)] #[non_exhaustive] @@ -3720,7 +3868,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u8)] #[non_exhaustive] @@ -3737,7 +3887,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u8)] #[non_exhaustive] @@ -3757,7 +3937,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u8)] #[non_exhaustive] @@ -3798,7 +3988,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u8)] #[non_exhaustive] @@ -3940,6 +4142,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u8)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4009,7 +4234,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u8)] #[non_exhaustive] @@ -4107,7 +4334,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u8)] #[non_exhaustive] @@ -4165,7 +4402,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u8)] #[non_exhaustive] @@ -4337,6 +4575,13 @@ NETKIT_L3 = 1, #[repr(u8)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u8)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4355,7 +4600,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u8)] #[non_exhaustive] @@ -4471,7 +4717,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u8)] #[non_exhaustive] @@ -4561,7 +4810,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u8)] #[non_exhaustive] @@ -4589,7 +4839,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u8)] #[non_exhaustive] @@ -5377,22 +5630,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5410,16 +5663,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5452,16 +5708,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5503,7 +5759,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5526,6 +5782,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5541,20 +5803,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5589,6 +5857,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/hexagon/prctl.rs b/src/hexagon/prctl.rs index ff251ffad..28a69b9d7 100644 --- a/src/hexagon/prctl.rs +++ b/src/hexagon/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -148,6 +149,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -268,3 +270,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/hexagon/ptrace.rs b/src/hexagon/ptrace.rs index 332870f08..d926f2333 100644 --- a/src/hexagon/ptrace.rs +++ b/src/hexagon/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -519,6 +520,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/hexagon/system.rs b/src/hexagon/system.rs index 7ed06a505..65795dd7d 100644 --- a/src/hexagon/system.rs +++ b/src/hexagon/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/hexagon/vm_sockets.rs b/src/hexagon/vm_sockets.rs index 5d0bb47dd..f55f5fa41 100644 --- a/src/hexagon/vm_sockets.rs +++ b/src/hexagon/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/hexagon/xdp.rs b/src/hexagon/xdp.rs index 4eee12505..c6c30ecda 100644 --- a/src/hexagon/xdp.rs +++ b/src/hexagon/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/lib.rs b/src/lib.rs index ed53bdbfb..69f10db09 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -271,6 +271,10 @@ pub mod io_uring; #[cfg(target_arch = "arm")] #[path = "arm/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "arm")] +#[path = "arm/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "arm")] #[path = "arm/landlock.rs"] @@ -363,6 +367,10 @@ pub mod io_uring; #[cfg(target_arch = "aarch64")] #[path = "aarch64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "aarch64")] +#[path = "aarch64/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "aarch64")] #[path = "aarch64/landlock.rs"] @@ -455,6 +463,10 @@ pub mod io_uring; #[cfg(target_arch = "csky")] #[path = "csky/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "csky")] +#[path = "csky/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "csky")] #[path = "csky/landlock.rs"] @@ -547,6 +559,10 @@ pub mod io_uring; #[cfg(target_arch = "hexagon")] #[path = "hexagon/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "hexagon")] +#[path = "hexagon/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "hexagon")] #[path = "hexagon/landlock.rs"] @@ -639,6 +655,10 @@ pub mod io_uring; #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "loongarch64")] +#[path = "loongarch64/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "loongarch64")] #[path = "loongarch64/landlock.rs"] @@ -731,6 +751,10 @@ pub mod io_uring; #[cfg(target_arch = "m68k")] #[path = "m68k/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "m68k")] +#[path = "m68k/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "m68k")] #[path = "m68k/landlock.rs"] @@ -823,6 +847,10 @@ pub mod io_uring; #[cfg(target_arch = "mips")] #[path = "mips/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "mips")] +#[path = "mips/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "mips")] #[path = "mips/landlock.rs"] @@ -915,6 +943,10 @@ pub mod io_uring; #[cfg(target_arch = "mips64")] #[path = "mips64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "mips64")] +#[path = "mips64/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "mips64")] #[path = "mips64/landlock.rs"] @@ -1007,6 +1039,10 @@ pub mod io_uring; #[cfg(target_arch = "mips32r6")] #[path = "mips32r6/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "mips32r6")] +#[path = "mips32r6/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "mips32r6")] #[path = "mips32r6/landlock.rs"] @@ -1099,6 +1135,10 @@ pub mod io_uring; #[cfg(target_arch = "mips64r6")] #[path = "mips64r6/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "mips64r6")] +#[path = "mips64r6/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "mips64r6")] #[path = "mips64r6/landlock.rs"] @@ -1191,6 +1231,10 @@ pub mod io_uring; #[cfg(target_arch = "powerpc")] #[path = "powerpc/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "powerpc")] +#[path = "powerpc/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "powerpc")] #[path = "powerpc/landlock.rs"] @@ -1283,6 +1327,10 @@ pub mod io_uring; #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "powerpc64")] +#[path = "powerpc64/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "powerpc64")] #[path = "powerpc64/landlock.rs"] @@ -1375,6 +1423,10 @@ pub mod io_uring; #[cfg(target_arch = "riscv32")] #[path = "riscv32/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "riscv32")] +#[path = "riscv32/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "riscv32")] #[path = "riscv32/landlock.rs"] @@ -1467,6 +1519,10 @@ pub mod io_uring; #[cfg(target_arch = "riscv64")] #[path = "riscv64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "riscv64")] +#[path = "riscv64/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "riscv64")] #[path = "riscv64/landlock.rs"] @@ -1559,6 +1615,10 @@ pub mod io_uring; #[cfg(target_arch = "s390x")] #[path = "s390x/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "s390x")] +#[path = "s390x/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "s390x")] #[path = "s390x/landlock.rs"] @@ -1651,6 +1711,10 @@ pub mod io_uring; #[cfg(target_arch = "sparc")] #[path = "sparc/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "sparc")] +#[path = "sparc/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "sparc")] #[path = "sparc/landlock.rs"] @@ -1743,6 +1807,10 @@ pub mod io_uring; #[cfg(target_arch = "sparc64")] #[path = "sparc64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "sparc64")] +#[path = "sparc64/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "sparc64")] #[path = "sparc64/landlock.rs"] @@ -1835,6 +1903,10 @@ pub mod io_uring; #[cfg(target_arch = "x86")] #[path = "x86/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(target_arch = "x86")] +#[path = "x86/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(target_arch = "x86")] #[path = "x86/landlock.rs"] @@ -1927,6 +1999,10 @@ pub mod io_uring; #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] +#[path = "x86_64/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))] #[path = "x86_64/landlock.rs"] @@ -2019,6 +2095,10 @@ pub mod io_uring; #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/ioctl.rs"] pub mod ioctl; +#[cfg(feature = "keyctl")] +#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] +#[path = "x32/keyctl.rs"] +pub mod keyctl; #[cfg(feature = "landlock")] #[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))] #[path = "x32/landlock.rs"] diff --git a/src/loongarch64/auxvec.rs b/src/loongarch64/auxvec.rs index 0ea172da5..4143eb739 100644 --- a/src/loongarch64/auxvec.rs +++ b/src/loongarch64/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; diff --git a/src/loongarch64/bootparam.rs b/src/loongarch64/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/loongarch64/bootparam.rs +++ b/src/loongarch64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/loongarch64/btrfs.rs b/src/loongarch64/btrfs.rs index a64f6c3c0..4f59e9b69 100644 --- a/src/loongarch64/btrfs.rs +++ b/src/loongarch64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -554,7 +555,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -741,7 +742,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, @@ -759,6 +760,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -912,7 +930,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1176,6 +1197,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1214,6 +1244,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1340,6 +1375,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1355,6 +1391,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1386,6 +1423,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1431,6 +1469,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1482,6 +1523,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1547,6 +1591,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1607,6 +1652,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1623,6 +1678,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1672,6 +1728,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1751,7 +1810,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1759,6 +1820,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1861,6 +1923,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/loongarch64/elf_uapi.rs b/src/loongarch64/elf_uapi.rs index 595b774c4..73481751e 100644 --- a/src/loongarch64/elf_uapi.rs +++ b/src/loongarch64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -624,6 +625,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/loongarch64/errno.rs b/src/loongarch64/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/loongarch64/errno.rs +++ b/src/loongarch64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/loongarch64/general.rs b/src/loongarch64/general.rs index 473d1f0fd..e5d5064f7 100644 --- a/src/loongarch64/general.rs +++ b/src/loongarch64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -156,6 +157,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -287,10 +295,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -955,6 +963,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1041,7 +1077,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1057,9 +1092,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1147,6 +1182,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1219,6 +1255,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1230,6 +1268,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1389,6 +1428,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1405,6 +1445,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1436,6 +1477,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1481,6 +1523,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1532,6 +1577,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1548,7 +1596,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1562,6 +1612,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1577,6 +1639,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1703,6 +1767,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1892,7 +1958,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1914,6 +1985,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const MINSIGSTKSZ: u32 = 4096; pub const SIGSTKSZ: u32 = 16384; pub const _NSIG: u32 = 64; @@ -2602,6 +2674,7 @@ pub const __NR_quotactl_fd: u32 = 443; pub const __NR_landlock_create_ruleset: u32 = 444; pub const __NR_landlock_add_rule: u32 = 445; pub const __NR_landlock_restrict_self: u32 = 446; +pub const __NR_memfd_secret: u32 = 447; pub const __NR_process_mrelease: u32 = 448; pub const __NR_futex_waitv: u32 = 449; pub const __NR_set_mempolicy_home_node: u32 = 450; @@ -2624,6 +2697,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2736,6 +2811,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2866,6 +2967,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -2975,13 +3082,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2989,13 +3113,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3003,24 +3146,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3056,161 +3498,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/loongarch64/if_arp.rs b/src/loongarch64/if_arp.rs index 0c2cbf499..bb5d4cd60 100644 --- a/src/loongarch64/if_arp.rs +++ b/src/loongarch64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -723,6 +724,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -731,6 +733,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -753,11 +756,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -787,6 +792,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1117,6 +1123,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1187,6 +1195,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1235,6 +1244,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1306,6 +1316,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1380,6 +1391,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1434,6 +1448,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1452,6 +1467,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1812,7 +1830,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1910,7 +1930,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1968,7 +1998,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2140,6 +2171,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2158,7 +2196,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2274,7 +2313,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2364,7 +2406,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2392,7 +2435,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/loongarch64/if_ether.rs b/src/loongarch64/if_ether.rs index 12173e635..15a333698 100644 --- a/src/loongarch64/if_ether.rs +++ b/src/loongarch64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -104,6 +105,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -112,6 +114,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -134,11 +137,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -168,3 +173,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/loongarch64/if_packet.rs b/src/loongarch64/if_packet.rs index 4b64e0204..8acd09e1f 100644 --- a/src/loongarch64/if_packet.rs +++ b/src/loongarch64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/loongarch64/if_tun.rs b/src/loongarch64/if_tun.rs index b36990b1a..27388d1c0 100644 --- a/src/loongarch64/if_tun.rs +++ b/src/loongarch64/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -134,6 +135,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -142,6 +144,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -164,11 +167,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -198,6 +203,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/loongarch64/image.rs b/src/loongarch64/image.rs index bff15e373..c95e29d35 100644 --- a/src/loongarch64/image.rs +++ b/src/loongarch64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/loongarch64/io_uring.rs b/src/loongarch64/io_uring.rs index 0fefed607..5d986d5b5 100644 --- a/src/loongarch64/io_uring.rs +++ b/src/loongarch64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -175,10 +179,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -322,6 +326,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -402,7 +493,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -550,6 +641,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -581,7 +687,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -607,7 +713,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -677,52 +784,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -844,6 +905,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -859,6 +921,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -890,6 +953,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -935,6 +999,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -986,6 +1053,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1006,8 +1077,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1016,6 +1091,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1047,11 +1123,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1094,7 +1173,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1134,6 +1212,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1210,7 +1331,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1258,7 +1381,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1335,12 +1461,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1358,6 +1479,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1421,6 +1555,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1454,12 +1593,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/loongarch64/ioctl.rs b/src/loongarch64/ioctl.rs index c311d1746..c4039b7b9 100644 --- a/src/loongarch64/ioctl.rs +++ b/src/loongarch64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -104,6 +104,22 @@ pub const BLKDISCARDZEROES: u32 = 4732; pub const BLKSECDISCARD: u32 = 4733; pub const BLKROTATIONAL: u32 = 4734; pub const BLKZEROOUT: u32 = 4735; +pub const FIEMAP_MAX_OFFSET: i32 = -1; +pub const FIEMAP_FLAG_SYNC: u32 = 1; +pub const FIEMAP_FLAG_XATTR: u32 = 2; +pub const FIEMAP_FLAG_CACHE: u32 = 4; +pub const FIEMAP_FLAGS_COMPAT: u32 = 3; +pub const FIEMAP_EXTENT_LAST: u32 = 1; +pub const FIEMAP_EXTENT_UNKNOWN: u32 = 2; +pub const FIEMAP_EXTENT_DELALLOC: u32 = 4; +pub const FIEMAP_EXTENT_ENCODED: u32 = 8; +pub const FIEMAP_EXTENT_DATA_ENCRYPTED: u32 = 128; +pub const FIEMAP_EXTENT_NOT_ALIGNED: u32 = 256; +pub const FIEMAP_EXTENT_DATA_INLINE: u32 = 512; +pub const FIEMAP_EXTENT_DATA_TAIL: u32 = 1024; +pub const FIEMAP_EXTENT_UNWRITTEN: u32 = 2048; +pub const FIEMAP_EXTENT_MERGED: u32 = 4096; +pub const FIEMAP_EXTENT_SHARED: u32 = 8192; pub const UFFDIO_REGISTER: u32 = 3223366144; pub const UFFDIO_UNREGISTER: u32 = 2148575745; pub const UFFDIO_WAKE: u32 = 2148575746; @@ -252,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076389384; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -261,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -281,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -319,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149581316; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -341,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2148036621; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -392,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2155872785; @@ -403,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2148035841; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -411,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -439,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -502,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -536,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -562,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2148035650; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -606,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2148036769; @@ -623,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -653,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -691,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; @@ -710,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -726,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -757,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074815752; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; @@ -775,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074815314; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -803,7 +792,6 @@ pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; pub const NBD_SET_FLAGS: u32 = 43786; pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074318593; pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; pub const RIO_SET_EVENT_MASK: u32 = 1074031885; pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; @@ -815,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -825,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -853,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -878,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -898,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074815364; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -908,13 +889,11 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1082131088; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; pub const TUNSETIFINDEX: u32 = 1074025690; pub const CCISS_SETINTINFO: u32 = 1074283011; -pub const CM_IOSDBGLVL: u32 = 1074291706; pub const RTC_VL_CLR: u32 = 28692; pub const VIDIOC_REQBUFS: u32 = 3222558216; pub const USBDEVFS_REAPURBNDELAY32: u32 = 1074025741; @@ -935,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; pub const MTIOCPOS: u32 = 2148035843; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1014,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; pub const FDSETPRM: u32 = 1075839554; pub const ATM_GETSTATZ: u32 = 1074815313; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1025,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074286598; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1044,7 +1018,6 @@ pub const UI_SET_RELBIT: u32 = 1074025830; pub const VFIO_SET_IOMMU: u32 = 15206; pub const VIDIOC_S_MODULATOR: u32 = 1078220343; pub const TUNGETFILTER: u32 = 2148553947; -pub const MEYEIOC_SYNC: u32 = 3221518019; pub const CCISS_SETNODENAME: u32 = 1074807301; pub const FBIO_GETCONTROL2: u32 = 2148025993; pub const TUNSETDEBUG: u32 = 1074025673; @@ -1059,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1091,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1142,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1171,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1184,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074287980; pub const FDWERRORGET: u32 = 2150105623; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1197,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1205,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1223,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074815361; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1232,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1252,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1264,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1308,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1325,11 +1282,9 @@ pub const PERF_EVENT_IOC_QUERY_BPF: u32 = 3221758986; pub const VIDIOC_STREAMOFF: u32 = 1074026003; pub const VDUSE_DESTROY_DEV: u32 = 1090552067; pub const FDGETFDCSTAT: u32 = 2150105621; -pub const CM_IOCGATR: u32 = 3221775105; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1341,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1352,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1372,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1385,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1406,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074815372; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074294796; @@ -1419,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2148035842; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1458,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1487,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/loongarch64/keyctl.rs b/src/loongarch64/keyctl.rs new file mode 100644 index 000000000..b65e51d4f --- /dev/null +++ b/src/loongarch64/keyctl.rs @@ -0,0 +1,166 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/loongarch64/landlock.rs b/src/loongarch64/landlock.rs index b4adb6c11..922d8b0a4 100644 --- a/src/loongarch64/landlock.rs +++ b/src/loongarch64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -56,6 +57,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -72,9 +76,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -91,8 +97,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/loongarch64/loop_device.rs b/src/loongarch64/loop_device.rs index 5e1a2291b..5978602e2 100644 --- a/src/loongarch64/loop_device.rs +++ b/src/loongarch64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/loongarch64/mempolicy.rs b/src/loongarch64/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/loongarch64/mempolicy.rs +++ b/src/loongarch64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/loongarch64/net.rs b/src/loongarch64/net.rs index 276f8de63..73605bf73 100644 --- a/src/loongarch64/net.rs +++ b/src/loongarch64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -142,7 +146,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -179,7 +183,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -340,7 +343,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -367,7 +369,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -397,7 +398,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -450,6 +450,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -476,7 +484,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1337,6 +1341,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2369,13 +2381,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2383,13 +2412,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2397,27 +2445,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2451,12 +2803,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2488,57 +2840,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2547,57 +2908,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2606,291 +2976,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2899,194 +3314,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3095,109 +3666,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3206,161 +3794,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3369,109 +3982,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/loongarch64/netlink.rs b/src/loongarch64/netlink.rs index 736004e6c..0bf3a0e0c 100644 --- a/src/loongarch64/netlink.rs +++ b/src/loongarch64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -139,6 +140,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -744,6 +750,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -756,6 +763,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -897,6 +905,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -975,6 +984,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1045,6 +1056,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1093,6 +1105,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1164,6 +1177,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1238,6 +1252,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1292,6 +1309,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1310,6 +1328,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1954,7 +1975,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2297,11 +2328,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2320,7 +2377,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2384,6 +2443,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2436,7 +2505,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2573,7 +2645,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2598,6 +2672,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2645,7 +2736,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2730,6 +2828,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2977,7 +3076,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3028,7 +3129,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3042,7 +3144,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3418,7 +3523,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3621,6 +3732,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3704,13 +3843,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3722,7 +3870,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3739,7 +3889,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3759,7 +3939,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3800,7 +3990,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3942,6 +4144,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4011,7 +4236,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4109,7 +4336,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4167,7 +4404,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4339,6 +4577,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4357,7 +4602,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4473,7 +4719,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4563,7 +4812,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4591,7 +4841,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5379,22 +5632,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5412,16 +5665,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5454,16 +5710,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5505,7 +5761,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5528,6 +5784,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5543,20 +5805,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5591,6 +5859,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/loongarch64/prctl.rs b/src/loongarch64/prctl.rs index bc9d4fcc0..99da85dd2 100644 --- a/src/loongarch64/prctl.rs +++ b/src/loongarch64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -150,6 +151,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -270,3 +272,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/loongarch64/ptrace.rs b/src/loongarch64/ptrace.rs index 3f05a6b5d..c78fe86c6 100644 --- a/src/loongarch64/ptrace.rs +++ b/src/loongarch64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -182,54 +183,54 @@ pub reserved: [crate::ctypes::c_ulong; 10usize], #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct user_fp_state { -pub fpr: [u64; 32usize], -pub fcc: u64, -pub fcsr: u32, +pub fpr: [__u64; 32usize], +pub fcc: __u64, +pub fcsr: __u32, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct user_lsx_state { -pub vregs: [u64; 64usize], +pub vregs: [__u64; 64usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct user_lasx_state { -pub vregs: [u64; 128usize], +pub vregs: [__u64; 128usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct user_lbt_state { -pub scr: [u64; 4usize], -pub eflags: u32, -pub ftop: u32, +pub scr: [__u64; 4usize], +pub eflags: __u32, +pub ftop: __u32, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct user_watch_state { -pub dbg_info: u64, +pub dbg_info: __u64, pub dbg_regs: [user_watch_state__bindgen_ty_1; 8usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct user_watch_state__bindgen_ty_1 { -pub addr: u64, -pub mask: u64, -pub ctrl: u32, -pub pad: u32, +pub addr: __u64, +pub mask: __u64, +pub ctrl: __u32, +pub pad: __u32, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct user_watch_state_v2 { -pub dbg_info: u64, +pub dbg_info: __u64, pub dbg_regs: [user_watch_state_v2__bindgen_ty_1; 14usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct user_watch_state_v2__bindgen_ty_1 { -pub addr: u64, -pub mask: u64, -pub ctrl: u32, -pub pad: u32, +pub addr: __u64, +pub mask: __u64, +pub ctrl: __u32, +pub pad: __u32, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -413,6 +414,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/loongarch64/system.rs b/src/loongarch64/system.rs index 67f1be19f..375d1ab62 100644 --- a/src/loongarch64/system.rs +++ b/src/loongarch64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/loongarch64/vm_sockets.rs b/src/loongarch64/vm_sockets.rs index 9e7323834..f992c4a7a 100644 --- a/src/loongarch64/vm_sockets.rs +++ b/src/loongarch64/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/loongarch64/xdp.rs b/src/loongarch64/xdp.rs index 6f3c9097a..76b1e0d38 100644 --- a/src/loongarch64/xdp.rs +++ b/src/loongarch64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/m68k/auxvec.rs b/src/m68k/auxvec.rs index 4ff4b54b6..4ea86459b 100644 --- a/src/m68k/auxvec.rs +++ b/src/m68k/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_NULL: u32 = 0; pub const AT_IGNORE: u32 = 1; diff --git a/src/m68k/bootparam.rs b/src/m68k/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/m68k/bootparam.rs +++ b/src/m68k/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/m68k/btrfs.rs b/src/m68k/btrfs.rs index f394082cc..f6ca96281 100644 --- a/src/m68k/btrfs.rs +++ b/src/m68k/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1338,6 +1373,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1353,6 +1389,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1384,6 +1421,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1429,6 +1467,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1480,6 +1521,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1545,6 +1589,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1605,6 +1650,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1621,6 +1676,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1670,6 +1726,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1749,7 +1808,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1757,6 +1818,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1859,6 +1921,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/m68k/elf_uapi.rs b/src/m68k/elf_uapi.rs index a926d64ea..3c566b578 100644 --- a/src/m68k/elf_uapi.rs +++ b/src/m68k/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -622,6 +623,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/m68k/errno.rs b/src/m68k/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/m68k/errno.rs +++ b/src/m68k/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/m68k/general.rs b/src/m68k/general.rs index 698b826ad..d045c5de5 100644 --- a/src/m68k/general.rs +++ b/src/m68k/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -154,6 +155,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -285,10 +293,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -949,6 +957,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1073,7 +1109,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: u8, } @@ -1089,9 +1124,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1179,6 +1214,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4210688; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1254,6 +1290,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1265,6 +1303,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1424,6 +1463,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1440,6 +1480,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1471,6 +1512,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1516,6 +1558,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1567,6 +1612,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1583,7 +1631,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1597,6 +1647,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1612,6 +1674,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1738,6 +1802,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1926,7 +1992,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1948,6 +2019,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const NSIG: u32 = 32; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2777,6 +2849,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2889,6 +2963,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3020,6 +3120,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigaction__bindgen_ty_1 { pub _sa_handler: __sighandler_t, pub _sa_sigaction: ::core::option::Option, @@ -3135,13 +3241,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3149,13 +3272,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3163,24 +3305,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3216,161 +3657,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/m68k/if_arp.rs b/src/m68k/if_arp.rs index 7c279cfe1..ea424640f 100644 --- a/src/m68k/if_arp.rs +++ b/src/m68k/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -721,6 +722,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -729,6 +731,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -751,11 +754,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -785,6 +790,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1115,6 +1121,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1185,6 +1193,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1233,6 +1242,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1304,6 +1314,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1378,6 +1389,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1432,6 +1446,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1450,6 +1465,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1810,7 +1828,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1908,7 +1928,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1966,7 +1996,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2138,6 +2169,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2156,7 +2194,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2272,7 +2311,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2362,7 +2404,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2390,7 +2433,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/m68k/if_ether.rs b/src/m68k/if_ether.rs index 8fb6dcaae..dae5505fd 100644 --- a/src/m68k/if_ether.rs +++ b/src/m68k/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -102,6 +103,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -110,6 +112,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -132,11 +135,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -166,3 +171,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/m68k/if_packet.rs b/src/m68k/if_packet.rs index f08dcf199..d272c3676 100644 --- a/src/m68k/if_packet.rs +++ b/src/m68k/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/m68k/if_tun.rs b/src/m68k/if_tun.rs index 33d4aa16e..d98016e54 100644 --- a/src/m68k/if_tun.rs +++ b/src/m68k/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -132,6 +133,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -140,6 +142,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -162,11 +165,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -196,6 +201,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/m68k/image.rs b/src/m68k/image.rs index bff15e373..c95e29d35 100644 --- a/src/m68k/image.rs +++ b/src/m68k/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/m68k/io_uring.rs b/src/m68k/io_uring.rs index 9fe580ef4..d449afbb7 100644 --- a/src/m68k/io_uring.rs +++ b/src/m68k/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -49,6 +50,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -173,10 +177,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +324,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -400,7 +491,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -548,6 +639,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -579,7 +685,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -605,7 +711,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -675,52 +782,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -842,6 +903,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -857,6 +919,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -888,6 +951,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -933,6 +997,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -984,6 +1051,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1004,8 +1075,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1014,6 +1089,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1045,11 +1121,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1092,7 +1171,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1132,6 +1210,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1208,7 +1329,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1256,7 +1379,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1333,12 +1459,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1356,6 +1477,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1419,6 +1553,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1452,12 +1591,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/m68k/ioctl.rs b/src/m68k/ioctl.rs index c01543b41..948c287d3 100644 --- a/src/m68k/ioctl.rs +++ b/src/m68k/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076127240; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2149346561; -pub const ENI_SETMULT: u32 = 1074553191; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222036833; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074553230; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149319172; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074553184; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2147774477; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074553232; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2152858129; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2147773697; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225441817; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076110081; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3223087369; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074553139; pub const I2OPARMSET: u32 = 3222825219; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074553224; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3226616331; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075467524; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1075604736; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074553223; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2147773506; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074553185; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2147774625; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228508482; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223069448; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074291464; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234616836; pub const RTC_EPOCH_SET: u32 = 1074032654; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074553170; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -830,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3225703951; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -840,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222565638; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -868,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225441817; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075735832; @@ -893,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -913,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074553220; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -923,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1079116432; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -949,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074032643; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074553187; pub const MTIOCPOS: u32 = 2147773699; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1028,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074291188; pub const FDSETPRM: u32 = 1075577410; pub const ATM_GETSTATZ: u32 = 1074553169; pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; @@ -1039,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074024454; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1072,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074553184; pub const ATM_SETLOOP: u32 = 1074553171; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221512970; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1104,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391263797; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222545172; -pub const ATM_DELLECSADDR: u32 = 1074553231; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1155,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222038786; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074553186; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1184,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1197,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074025836; pub const FDWERRORGET: u32 = 2149057047; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150002704; @@ -1210,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1218,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221504262; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1236,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074553217; pub const RTC_WKALM_SET: u32 = 1076260879; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1245,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074553222; pub const PHN_GET_REGS: u32 = 3221516290; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1265,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1277,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074553138; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1321,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1341,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2149319189; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226228250; -pub const ZATM_GETPOOLZ: u32 = 1074553186; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1353,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1364,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1384,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1397,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223606824; @@ -1418,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074553228; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074553225; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074032652; @@ -1431,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3225703953; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2147773698; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074049280; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1470,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1499,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076011606; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/m68k/keyctl.rs b/src/m68k/keyctl.rs new file mode 100644 index 000000000..d99761abe --- /dev/null +++ b/src/m68k/keyctl.rs @@ -0,0 +1,164 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/m68k/landlock.rs b/src/m68k/landlock.rs index 2f9257ddf..cd2463a82 100644 --- a/src/m68k/landlock.rs +++ b/src/m68k/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -70,9 +74,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -89,8 +95,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/m68k/loop_device.rs b/src/m68k/loop_device.rs index a69c0087d..b01a7a325 100644 --- a/src/m68k/loop_device.rs +++ b/src/m68k/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_mode_t = crate::ctypes::c_ushort; pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/m68k/mempolicy.rs b/src/m68k/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/m68k/mempolicy.rs +++ b/src/m68k/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/m68k/net.rs b/src/m68k/net.rs index e3d493ae1..3e90f7927 100644 --- a/src/m68k/net.rs +++ b/src/m68k/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u16; 134usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u16; 134usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1329,6 +1333,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2361,13 +2373,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2375,13 +2404,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2389,27 +2437,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2443,12 +2795,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2480,57 +2832,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2539,57 +2900,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2598,291 +2968,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -2891,194 +3306,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3087,109 +3658,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3198,161 +3786,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3361,109 +3974,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/m68k/netlink.rs b/src/m68k/netlink.rs index 287111f8e..d7a199dfc 100644 --- a/src/m68k/netlink.rs +++ b/src/m68k/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -742,6 +748,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -754,6 +761,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -895,6 +903,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -973,6 +982,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1043,6 +1054,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1091,6 +1103,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1162,6 +1175,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1236,6 +1250,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1290,6 +1307,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1308,6 +1326,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1952,7 +1973,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2295,11 +2326,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2318,7 +2375,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2382,6 +2441,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2434,7 +2503,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2571,7 +2643,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2596,6 +2670,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2643,7 +2734,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2728,6 +2826,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2975,7 +3074,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3026,7 +3127,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3040,7 +3142,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3416,7 +3521,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3619,6 +3730,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3702,13 +3841,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3720,7 +3868,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3737,7 +3887,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3757,7 +3937,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3798,7 +3988,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3940,6 +4142,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4009,7 +4234,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4107,7 +4334,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4165,7 +4402,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4337,6 +4575,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4355,7 +4600,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4471,7 +4717,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4561,7 +4810,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4589,7 +4839,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5377,22 +5630,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5410,16 +5663,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5452,16 +5708,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5503,7 +5759,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5526,6 +5782,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5541,20 +5803,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5589,6 +5857,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/m68k/prctl.rs b/src/m68k/prctl.rs index 88cdc034f..7a50cf773 100644 --- a/src/m68k/prctl.rs +++ b/src/m68k/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -148,6 +149,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -268,3 +270,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/m68k/ptrace.rs b/src/m68k/ptrace.rs index 70f965d3d..c9820cf76 100644 --- a/src/m68k/ptrace.rs +++ b/src/m68k/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -189,7 +190,6 @@ pub orig_d0: crate::ctypes::c_long, pub stkadj: crate::ctypes::c_long, pub sr: crate::ctypes::c_ushort, pub pc: crate::ctypes::c_ulong, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, } #[repr(C)] @@ -385,6 +385,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -882,13 +884,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -896,13 +915,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -910,24 +948,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -960,57 +1297,66 @@ fmt.write_str("__IncompleteArrayField") } impl pt_regs { #[inline] +#[allow(unnecessary_transmutes)] pub fn format(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_format(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn format_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_format_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn vector(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 12u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 12u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_vector(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 12u8, val as u64) +self._bitfield_1.set_const::<4usize, 12u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn vector_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 12u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 12u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_vector_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 12u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 12u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(format: crate::ctypes::c_uint, vector: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let format: u32 = unsafe { ::core::mem::transmute(format) }; format as u64 }); -__bindgen_bitfield_unit.set(4usize, 12u8, { +__bindgen_bitfield_unit.set_const::<4usize, 12u8>({ let vector: u32 = unsafe { ::core::mem::transmute(vector) }; vector as u64 }); diff --git a/src/m68k/system.rs b/src/m68k/system.rs index 87e1c0a59..745a1dfb2 100644 --- a/src/m68k/system.rs +++ b/src/m68k/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/m68k/vm_sockets.rs b/src/m68k/vm_sockets.rs index 378bf38e1..d2be6d81e 100644 --- a/src/m68k/vm_sockets.rs +++ b/src/m68k/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/m68k/xdp.rs b/src/m68k/xdp.rs index 49cb739dc..0d14c70a1 100644 --- a/src/m68k/xdp.rs +++ b/src/m68k/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips/auxvec.rs b/src/mips/auxvec.rs index 0ea172da5..4143eb739 100644 --- a/src/mips/auxvec.rs +++ b/src/mips/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; diff --git a/src/mips/bootparam.rs b/src/mips/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/mips/bootparam.rs +++ b/src/mips/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/mips/btrfs.rs b/src/mips/btrfs.rs index d1de05a46..93b60a33a 100644 --- a/src/mips/btrfs.rs +++ b/src/mips/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1348,6 +1383,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1363,6 +1399,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1394,6 +1431,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1439,6 +1477,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1490,6 +1531,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1555,6 +1599,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1615,6 +1660,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1631,6 +1686,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1680,6 +1736,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1759,7 +1818,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1767,6 +1828,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1869,6 +1931,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/mips/elf_uapi.rs b/src/mips/elf_uapi.rs index 0636f3d75..0c4966e3f 100644 --- a/src/mips/elf_uapi.rs +++ b/src/mips/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -632,6 +633,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/mips/errno.rs b/src/mips/errno.rs index 59b928fcb..a27ded2d9 100644 --- a/src/mips/errno.rs +++ b/src/mips/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -69,6 +69,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -107,6 +108,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -134,4 +136,5 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; diff --git a/src/mips/general.rs b/src/mips/general.rs index 4a395fa93..2c2608234 100644 --- a/src/mips/general.rs +++ b/src/mips/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -157,6 +158,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -288,10 +296,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -985,6 +993,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1079,7 +1115,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1095,9 +1130,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1203,6 +1238,7 @@ pub const O_NOATIME: u32 = 262144; pub const O_CLOEXEC: u32 = 524288; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 128; pub const F_DUPFD: u32 = 0; @@ -1270,6 +1306,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1281,6 +1319,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1440,6 +1479,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1456,6 +1496,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1487,6 +1528,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1532,6 +1574,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1583,6 +1628,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1599,7 +1647,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1613,6 +1663,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1628,6 +1690,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1754,6 +1818,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_NONE: u32 = 0; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -1940,7 +2006,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1962,6 +2033,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 128; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2230,6 +2302,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -2268,6 +2341,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -2295,6 +2369,7 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; pub const IGNBRK: u32 = 1; pub const BRKINT: u32 = 2; @@ -2934,6 +3009,8 @@ pub const __NR_removexattrat: u32 = 4466; pub const __NR_open_tree_attr: u32 = 4467; pub const __NR_file_getattr: u32 = 4468; pub const __NR_file_setattr: u32 = 4469; +pub const __NR_listns: u32 = 4470; +pub const __NR_rseq_slice_yield: u32 = 4471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -3046,6 +3123,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 128; +pub const PIDFD_THREAD: u32 = 1024; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3180,6 +3283,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3289,13 +3398,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3303,13 +3429,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3317,24 +3462,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3370,161 +3814,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/mips/if_arp.rs b/src/mips/if_arp.rs index 196141592..6896be806 100644 --- a/src/mips/if_arp.rs +++ b/src/mips/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -731,6 +732,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -739,6 +741,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -761,11 +764,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -795,6 +800,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1125,6 +1131,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1195,6 +1203,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1243,6 +1252,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1314,6 +1324,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1388,6 +1399,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1442,6 +1456,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1460,6 +1475,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1820,7 +1838,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1918,7 +1938,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1976,7 +2006,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2148,6 +2179,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2166,7 +2204,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2282,7 +2321,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2372,7 +2414,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2400,7 +2443,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips/if_ether.rs b/src/mips/if_ether.rs index b4254334f..dc152d5b9 100644 --- a/src/mips/if_ether.rs +++ b/src/mips/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -112,6 +113,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -120,6 +122,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -142,11 +145,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -176,3 +181,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/mips/if_packet.rs b/src/mips/if_packet.rs index 0ea053f55..31492c85c 100644 --- a/src/mips/if_packet.rs +++ b/src/mips/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips/if_tun.rs b/src/mips/if_tun.rs index 2099d592b..81e2243d1 100644 --- a/src/mips/if_tun.rs +++ b/src/mips/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -142,6 +143,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -150,6 +152,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -172,11 +175,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -206,6 +211,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/mips/image.rs b/src/mips/image.rs index bff15e373..c95e29d35 100644 --- a/src/mips/image.rs +++ b/src/mips/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/mips/io_uring.rs b/src/mips/io_uring.rs index d832f9afa..000fa40ab 100644 --- a/src/mips/io_uring.rs +++ b/src/mips/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -49,6 +50,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -173,10 +177,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +324,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -400,7 +491,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -548,6 +639,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -579,7 +685,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -605,7 +711,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -675,52 +782,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -852,6 +913,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -867,6 +929,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -898,6 +961,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -943,6 +1007,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -994,6 +1061,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1014,8 +1085,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1024,6 +1099,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1055,11 +1131,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1102,7 +1181,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1142,6 +1220,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1218,7 +1339,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1266,7 +1389,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1343,12 +1469,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1366,6 +1487,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1429,6 +1563,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1462,12 +1601,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/mips/ioctl.rs b/src/mips/ioctl.rs index 38661d7ba..3fa0a2673 100644 --- a/src/mips/ioctl.rs +++ b/src/mips/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 18047; pub const FIONBIO: u32 = 26238; @@ -262,8 +262,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 2147776002; pub const EXT4_IOC_GETRSVSZ: u32 = 1074030085; pub const EXT4_IOC_SETRSVSZ: u32 = 2147771910; pub const EXT4_IOC_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC_GROUP_ADD: u32 = 2150131208; pub const EXT4_IOC_MIGRATE: u32 = 536897033; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; @@ -271,6 +273,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; pub const EXT4_IOC_GETSTATE: u32 = 2147771945; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_GETFSUUID: u32 = 1074292268; +pub const EXT4_IOC_SETFSUUID: u32 = 2148034092; pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; @@ -291,8 +295,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 2147767499; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1075866881; -pub const ENI_SETMULT: u32 = 2148295015; pub const RIO_GET_EVENT_MASK: u32 = 1074031886; pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; @@ -329,19 +331,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222036833; pub const UI_SET_PROPBIT: u32 = 2147767662; pub const TUNSETFILTEREBPF: u32 = 1074025697; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 1074026244; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148295054; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 1075577348; pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148295008; pub const PTP_SYS_OFFSET2: u32 = 2202025230; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; @@ -351,10 +349,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; pub const RTC_EPOCH_READ: u32 = 1074032653; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148295056; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; @@ -402,7 +398,6 @@ pub const FDCLRPRM: u32 = 536871489; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 536892694; pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 1079509521; @@ -413,7 +408,6 @@ pub const MMTIMER_GETRES: u32 = 1074031873; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 1074032794; pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -421,13 +415,11 @@ pub const NE_CREATE_VM: u32 = 1074310688; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; pub const SONYPI_IOCGBLUE: u32 = 1073837576; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; pub const I2OHTML: u32 = 3223087369; pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148294963; pub const I2OPARMSET: u32 = 3222825219; pub const TEE_IOC_CANCEL: u32 = 1074308100; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -449,7 +441,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; pub const FDGETMAXERRS: u32 = 1075053070; pub const TUNSETQUEUE: u32 = 2147767513; pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 536914689; @@ -512,14 +503,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 536871514; pub const TUNSETOFFLOAD: u32 = 2147767504; pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148295048; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; pub const UI_ABS_SETUP: u32 = 2149340420; pub const UI_DEV_DESTROY: u32 = 536892674; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -546,7 +534,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 536899599; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2149608704; pub const RTC_SET_TIME: u32 = 2149871626; pub const VHOST_RESET_OWNER: u32 = 536915714; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; @@ -572,18 +559,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 536892695; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148295047; pub const NBD_SET_SIZE: u32 = 536914690; pub const UDF_GETVOLIDENT: u32 = 1074031682; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; pub const UDF_GETEASIZE: u32 = 1074031680; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 536915713; @@ -616,7 +599,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; pub const UDMABUF_CREATE_LIST: u32 = 2148037955; pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148295009; pub const BR2684_SETFILT: u32 = 2149343632; pub const RNDGETPOOL: u32 = 1074287106; pub const PPS_GETPARAMS: u32 = 1074032801; @@ -633,7 +615,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 536887822; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; pub const VFIO_EEH_PE_OP: u32 = 536886137; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -663,7 +644,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; pub const STP_POLICY_ID_GET: u32 = 1074799873; pub const PPSETFLAGS: u32 = 2147774619; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; pub const PPPIOCGXASYNCMAP: u32 = 1075868752; pub const VHOST_SET_VRING_CALL: u32 = 2148052769; @@ -701,7 +681,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 1074299136; pub const RTC_RD_TIME: u32 = 1076129801; pub const FDMSGOFF: u32 = 536871494; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2147774202; @@ -720,7 +699,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; pub const VHOST_SET_VRING_NUM: u32 = 2148052752; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; pub const PPPIOCGL2TPSTATS: u32 = 1078490166; @@ -736,14 +714,12 @@ pub const CHIOPOSITION: u32 = 2148295427; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074032376; pub const EVIOCSMASK: u32 = 2148550035; pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 2147774592; pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; @@ -767,12 +743,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; pub const PPPIOCSXASYNCMAP: u32 = 2149610575; pub const CHIOGSTATUS: u32 = 2148033288; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2147774200; @@ -785,7 +759,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; pub const JSIOCGCORR: u32 = 1076128290; pub const VIDIOC_G_FMT: u32 = 3234616836; pub const RTC_EPOCH_SET: u32 = 2147774478; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 2148294994; pub const SCIF_LISTEN: u32 = 2147775234; pub const NBD_CLEAR_QUE: u32 = 536914693; @@ -824,7 +797,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; pub const VIDIOC_QBUF: u32 = 3225703951; pub const VIDIOC_S_TUNER: u32 = 2153010718; pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -834,7 +806,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1075603733; pub const VHOST_SET_LOG_FD: u32 = 2147790599; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; pub const PHN_GETREG: u32 = 3221778437; @@ -862,9 +833,7 @@ pub const MMTIMER_GETBITS: u32 = 536898820; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; pub const RTC_VL_READ: u32 = 1074032659; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 2149608728; @@ -887,7 +856,6 @@ pub const TUNSETTXFILTER: u32 = 2147767505; pub const TUNGETVNETLE: u32 = 1074025693; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; pub const I2OVALIDATE: u32 = 1074030856; @@ -907,8 +875,6 @@ pub const ATM_GETTYPE: u32 = 2148295044; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 536871498; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; pub const EVIOCGMASK: u32 = 1074808210; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -917,7 +883,6 @@ pub const GSMIOC_GETFIRST: u32 = 1074022148; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 2153251472; pub const IOC_OPAL_SAVE: u32 = 2165862620; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -943,13 +908,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; pub const PHN_SET_REGS: u32 = 2147774467; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148295011; pub const MTIOCPOS: u32 = 1074031875; pub const PMU_IOC_SLEEP: u32 = 536887808; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1022,7 +984,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148033012; pub const FDSETPRM: u32 = 2149319234; pub const ATM_GETSTATZ: u32 = 2148294993; pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; @@ -1033,7 +994,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 2147766278; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2147755014; pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; @@ -1066,12 +1026,9 @@ pub const UI_SET_ABSBIT: u32 = 2147767655; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; pub const USBDEVFS_REAPURB32: u32 = 2147767564; pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148295008; pub const ATM_SETLOOP: u32 = 2148294995; -pub const ATMSIGD_CTRL: u32 = 536895984; pub const CIOC_KERNEL_VERSION: u32 = 3221512970; pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; pub const SNAPSHOT_UNFREEZE: u32 = 536883970; @@ -1098,7 +1055,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 1074033754; pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148295055; pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; pub const PPPIOCGIDLE32: u32 = 1074295871; pub const VFIO_DEVICE_RESET: u32 = 536886127; @@ -1149,7 +1105,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; pub const I2OLCTGET: u32 = 3222038786; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148295010; pub const BLKCLOSEZONE: u32 = 2148536967; pub const SONET_GETFRSENSE: u32 = 1074159895; pub const UI_SET_EVBIT: u32 = 2147767652; @@ -1178,7 +1133,6 @@ pub const CEC_G_MODE: u32 = 1074028808; pub const USBDEVFS_RESETEP: u32 = 1074025731; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; @@ -1191,7 +1145,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; pub const UI_SET_PHYS: u32 = 2147767660; pub const FDWERRORGET: u32 = 1075315223; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 536898823; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; pub const SIOCGSTAMP_NEW: u32 = 1074825478; pub const RTC_WKALM_RD: u32 = 1076391952; @@ -1204,7 +1157,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 1074020869; pub const KCOV_ENABLE: u32 = 536896356; pub const BTRFS_IOC_CLONE: u32 = 2147783689; @@ -1212,8 +1164,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; pub const AGPIOC_ALLOCATE: u32 = 3221504262; pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; @@ -1230,8 +1180,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 1074026250; pub const ATM_GETLINKRATE: u32 = 2148295041; pub const RTC_WKALM_SET: u32 = 2150133775; pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; pub const NS_GET_OWNER_UID: u32 = 536917764; @@ -1239,7 +1187,6 @@ pub const VIDIOC_OVERLAY: u32 = 2147767822; pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148295046; pub const PHN_GET_REGS: u32 = 3221516290; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1259,7 +1206,6 @@ pub const BLKOPENZONE: u32 = 2148536966; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; pub const HIDIOCGVERSION: u32 = 1074022401; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1271,7 +1217,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148294962; pub const HIDIOCINITREPORT: u32 = 536889349; pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1315,7 +1260,6 @@ pub const SONYPI_IOCGBRT: u32 = 1073837568; pub const IOC_PR_RELEASE: u32 = 2148561098; pub const PPCLRIRQ: u32 = 1074032787; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; pub const HPET_IE_OFF: u32 = 536897538; pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; pub const SONET_SETFRAMING: u32 = 2147770645; @@ -1335,7 +1279,6 @@ pub const FDGETFDCSTAT: u32 = 1075839509; pub const VIDIOC_S_PRIORITY: u32 = 2147767876; pub const SNAPSHOT_FREEZE: u32 = 536883969; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148295010; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 1074288151; @@ -1347,7 +1290,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 2147775572; pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074032377; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; @@ -1358,7 +1300,6 @@ pub const WDIOC_KEEPALIVE: u32 = 1074026245; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; pub const EVIOCSREP: u32 = 2148025603; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; pub const HPET_DPI: u32 = 536897541; @@ -1378,7 +1319,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; pub const CHIOGELEM: u32 = 2154586896; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; pub const EVIOCSKEYCODE: u32 = 2148025604; @@ -1391,7 +1331,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; pub const VIDIOC_G_EDID: u32 = 3223606824; @@ -1412,7 +1351,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 2148295052; pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148295049; pub const PPFCONTROL: u32 = 2147643534; pub const SONYPI_IOCGFAN: u32 = 1073837578; pub const RTC_IRQP_SET: u32 = 2147774476; @@ -1425,11 +1363,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3225703953; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; pub const MMTIMER_GETFREQ: u32 = 1074031874; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2147791104; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1464,7 +1400,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; pub const RIO_CM_CHAN_BIND: u32 = 2148033285; pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; @@ -1493,3 +1428,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2147787300; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 536936193; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 536936194; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 536936195; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 536936196; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 536936197; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 536936198; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 536936199; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 536936200; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 536936201; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 536936202; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/mips/keyctl.rs b/src/mips/keyctl.rs new file mode 100644 index 000000000..be7b5e28d --- /dev/null +++ b/src/mips/keyctl.rs @@ -0,0 +1,174 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/mips/landlock.rs b/src/mips/landlock.rs index 636ba35f4..e17e28dd3 100644 --- a/src/mips/landlock.rs +++ b/src/mips/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -80,9 +84,11 @@ pub const _MIPS_SIM_NABI32: u32 = 2; pub const _MIPS_SIM_ABI64: u32 = 3; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -99,8 +105,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/mips/loop_device.rs b/src/mips/loop_device.rs index 8865f5d65..c25655787 100644 --- a/src/mips/loop_device.rs +++ b/src/mips/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_daddr_t = crate::ctypes::c_long; pub type __kernel_long_t = crate::ctypes::c_long; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips/mempolicy.rs b/src/mips/mempolicy.rs index f36e463e9..15df88e93 100644 --- a/src/mips/mempolicy.rs +++ b/src/mips/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -69,6 +69,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -107,6 +108,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -134,11 +136,13 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/mips/net.rs b/src/mips/net.rs index 83790658f..3412bddc0 100644 --- a/src/mips/net.rs +++ b/src/mips/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1360,6 +1364,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2392,13 +2404,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2406,13 +2435,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2420,27 +2468,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2474,12 +2826,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2511,57 +2863,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2570,57 +2931,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2629,291 +2999,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -2922,194 +3337,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3118,109 +3689,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3229,161 +3817,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3392,109 +4005,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/mips/netlink.rs b/src/mips/netlink.rs index 3d68d7222..b31787fd4 100644 --- a/src/mips/netlink.rs +++ b/src/mips/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -752,6 +758,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -764,6 +771,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -905,6 +913,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -983,6 +992,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1053,6 +1064,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1101,6 +1113,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1172,6 +1185,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1246,6 +1260,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1300,6 +1317,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1318,6 +1336,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1962,7 +1983,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2305,11 +2336,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2328,7 +2385,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2392,6 +2451,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2444,7 +2513,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2581,7 +2653,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2606,6 +2680,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2653,7 +2744,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2738,6 +2836,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2985,7 +3084,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3036,7 +3137,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3050,7 +3152,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3426,7 +3531,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3629,6 +3740,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3712,13 +3851,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3730,7 +3878,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3747,7 +3897,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3767,7 +3947,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3808,7 +3998,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3950,6 +4152,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4019,7 +4244,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4117,7 +4344,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4175,7 +4412,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4347,6 +4585,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4365,7 +4610,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4481,7 +4727,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4571,7 +4820,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4599,7 +4849,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5387,22 +5640,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5420,16 +5673,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5462,16 +5718,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5513,7 +5769,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5536,6 +5792,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5551,20 +5813,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5599,6 +5867,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/mips/prctl.rs b/src/mips/prctl.rs index 327adb01a..5bbf87096 100644 --- a/src/mips/prctl.rs +++ b/src/mips/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -158,6 +159,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -278,3 +280,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/mips/ptrace.rs b/src/mips/ptrace.rs index 9b785f7d5..1ef249e5c 100644 --- a/src/mips/ptrace.rs +++ b/src/mips/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -394,6 +395,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/mips/system.rs b/src/mips/system.rs index e15e4fd7a..33b8f8ecd 100644 --- a/src/mips/system.rs +++ b/src/mips/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips/vm_sockets.rs b/src/mips/vm_sockets.rs index 2db76bd31..2bf2f8e62 100644 --- a/src/mips/vm_sockets.rs +++ b/src/mips/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips/xdp.rs b/src/mips/xdp.rs index fcb72956c..5e269f9ac 100644 --- a/src/mips/xdp.rs +++ b/src/mips/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips32r6/auxvec.rs b/src/mips32r6/auxvec.rs index 0ea172da5..4143eb739 100644 --- a/src/mips32r6/auxvec.rs +++ b/src/mips32r6/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; diff --git a/src/mips32r6/bootparam.rs b/src/mips32r6/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/mips32r6/bootparam.rs +++ b/src/mips32r6/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/mips32r6/btrfs.rs b/src/mips32r6/btrfs.rs index d1de05a46..93b60a33a 100644 --- a/src/mips32r6/btrfs.rs +++ b/src/mips32r6/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1348,6 +1383,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1363,6 +1399,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1394,6 +1431,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1439,6 +1477,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1490,6 +1531,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1555,6 +1599,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1615,6 +1660,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1631,6 +1686,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1680,6 +1736,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1759,7 +1818,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1767,6 +1828,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1869,6 +1931,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/mips32r6/elf_uapi.rs b/src/mips32r6/elf_uapi.rs index 0636f3d75..0c4966e3f 100644 --- a/src/mips32r6/elf_uapi.rs +++ b/src/mips32r6/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -632,6 +633,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/mips32r6/errno.rs b/src/mips32r6/errno.rs index 59b928fcb..a27ded2d9 100644 --- a/src/mips32r6/errno.rs +++ b/src/mips32r6/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -69,6 +69,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -107,6 +108,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -134,4 +136,5 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; diff --git a/src/mips32r6/general.rs b/src/mips32r6/general.rs index 4a395fa93..2c2608234 100644 --- a/src/mips32r6/general.rs +++ b/src/mips32r6/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -157,6 +158,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -288,10 +296,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -985,6 +993,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1079,7 +1115,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1095,9 +1130,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1203,6 +1238,7 @@ pub const O_NOATIME: u32 = 262144; pub const O_CLOEXEC: u32 = 524288; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 128; pub const F_DUPFD: u32 = 0; @@ -1270,6 +1306,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1281,6 +1319,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1440,6 +1479,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1456,6 +1496,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1487,6 +1528,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1532,6 +1574,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1583,6 +1628,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1599,7 +1647,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1613,6 +1663,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1628,6 +1690,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1754,6 +1818,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_NONE: u32 = 0; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -1940,7 +2006,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1962,6 +2033,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 128; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2230,6 +2302,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -2268,6 +2341,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -2295,6 +2369,7 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; pub const IGNBRK: u32 = 1; pub const BRKINT: u32 = 2; @@ -2934,6 +3009,8 @@ pub const __NR_removexattrat: u32 = 4466; pub const __NR_open_tree_attr: u32 = 4467; pub const __NR_file_getattr: u32 = 4468; pub const __NR_file_setattr: u32 = 4469; +pub const __NR_listns: u32 = 4470; +pub const __NR_rseq_slice_yield: u32 = 4471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -3046,6 +3123,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 128; +pub const PIDFD_THREAD: u32 = 1024; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3180,6 +3283,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3289,13 +3398,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3303,13 +3429,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3317,24 +3462,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3370,161 +3814,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/mips32r6/if_arp.rs b/src/mips32r6/if_arp.rs index 196141592..6896be806 100644 --- a/src/mips32r6/if_arp.rs +++ b/src/mips32r6/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -731,6 +732,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -739,6 +741,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -761,11 +764,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -795,6 +800,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1125,6 +1131,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1195,6 +1203,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1243,6 +1252,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1314,6 +1324,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1388,6 +1399,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1442,6 +1456,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1460,6 +1475,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1820,7 +1838,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1918,7 +1938,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1976,7 +2006,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2148,6 +2179,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2166,7 +2204,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2282,7 +2321,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2372,7 +2414,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2400,7 +2443,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips32r6/if_ether.rs b/src/mips32r6/if_ether.rs index b4254334f..dc152d5b9 100644 --- a/src/mips32r6/if_ether.rs +++ b/src/mips32r6/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -112,6 +113,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -120,6 +122,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -142,11 +145,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -176,3 +181,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/mips32r6/if_packet.rs b/src/mips32r6/if_packet.rs index 0ea053f55..31492c85c 100644 --- a/src/mips32r6/if_packet.rs +++ b/src/mips32r6/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips32r6/if_tun.rs b/src/mips32r6/if_tun.rs index 2099d592b..81e2243d1 100644 --- a/src/mips32r6/if_tun.rs +++ b/src/mips32r6/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -142,6 +143,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -150,6 +152,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -172,11 +175,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -206,6 +211,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/mips32r6/image.rs b/src/mips32r6/image.rs index bff15e373..c95e29d35 100644 --- a/src/mips32r6/image.rs +++ b/src/mips32r6/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/mips32r6/io_uring.rs b/src/mips32r6/io_uring.rs index d832f9afa..000fa40ab 100644 --- a/src/mips32r6/io_uring.rs +++ b/src/mips32r6/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -49,6 +50,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -173,10 +177,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +324,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -400,7 +491,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -548,6 +639,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -579,7 +685,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -605,7 +711,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -675,52 +782,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -852,6 +913,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -867,6 +929,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -898,6 +961,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -943,6 +1007,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -994,6 +1061,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1014,8 +1085,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1024,6 +1099,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1055,11 +1131,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1102,7 +1181,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1142,6 +1220,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1218,7 +1339,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1266,7 +1389,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1343,12 +1469,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1366,6 +1487,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1429,6 +1563,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1462,12 +1601,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/mips32r6/ioctl.rs b/src/mips32r6/ioctl.rs index 38661d7ba..3fa0a2673 100644 --- a/src/mips32r6/ioctl.rs +++ b/src/mips32r6/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 18047; pub const FIONBIO: u32 = 26238; @@ -262,8 +262,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 2147776002; pub const EXT4_IOC_GETRSVSZ: u32 = 1074030085; pub const EXT4_IOC_SETRSVSZ: u32 = 2147771910; pub const EXT4_IOC_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC_GROUP_ADD: u32 = 2150131208; pub const EXT4_IOC_MIGRATE: u32 = 536897033; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; @@ -271,6 +273,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; pub const EXT4_IOC_GETSTATE: u32 = 2147771945; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_GETFSUUID: u32 = 1074292268; +pub const EXT4_IOC_SETFSUUID: u32 = 2148034092; pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; @@ -291,8 +295,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 2147767499; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1075866881; -pub const ENI_SETMULT: u32 = 2148295015; pub const RIO_GET_EVENT_MASK: u32 = 1074031886; pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; @@ -329,19 +331,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222036833; pub const UI_SET_PROPBIT: u32 = 2147767662; pub const TUNSETFILTEREBPF: u32 = 1074025697; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 1074026244; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148295054; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 1075577348; pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148295008; pub const PTP_SYS_OFFSET2: u32 = 2202025230; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; @@ -351,10 +349,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; pub const RTC_EPOCH_READ: u32 = 1074032653; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148295056; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; @@ -402,7 +398,6 @@ pub const FDCLRPRM: u32 = 536871489; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 536892694; pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 1079509521; @@ -413,7 +408,6 @@ pub const MMTIMER_GETRES: u32 = 1074031873; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 1074032794; pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -421,13 +415,11 @@ pub const NE_CREATE_VM: u32 = 1074310688; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; pub const SONYPI_IOCGBLUE: u32 = 1073837576; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; pub const I2OHTML: u32 = 3223087369; pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148294963; pub const I2OPARMSET: u32 = 3222825219; pub const TEE_IOC_CANCEL: u32 = 1074308100; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -449,7 +441,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; pub const FDGETMAXERRS: u32 = 1075053070; pub const TUNSETQUEUE: u32 = 2147767513; pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 536914689; @@ -512,14 +503,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 536871514; pub const TUNSETOFFLOAD: u32 = 2147767504; pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148295048; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; pub const UI_ABS_SETUP: u32 = 2149340420; pub const UI_DEV_DESTROY: u32 = 536892674; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -546,7 +534,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 536899599; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2149608704; pub const RTC_SET_TIME: u32 = 2149871626; pub const VHOST_RESET_OWNER: u32 = 536915714; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; @@ -572,18 +559,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 536892695; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148295047; pub const NBD_SET_SIZE: u32 = 536914690; pub const UDF_GETVOLIDENT: u32 = 1074031682; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; pub const UDF_GETEASIZE: u32 = 1074031680; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 536915713; @@ -616,7 +599,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; pub const UDMABUF_CREATE_LIST: u32 = 2148037955; pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148295009; pub const BR2684_SETFILT: u32 = 2149343632; pub const RNDGETPOOL: u32 = 1074287106; pub const PPS_GETPARAMS: u32 = 1074032801; @@ -633,7 +615,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 536887822; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; pub const VFIO_EEH_PE_OP: u32 = 536886137; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -663,7 +644,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; pub const STP_POLICY_ID_GET: u32 = 1074799873; pub const PPSETFLAGS: u32 = 2147774619; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; pub const PPPIOCGXASYNCMAP: u32 = 1075868752; pub const VHOST_SET_VRING_CALL: u32 = 2148052769; @@ -701,7 +681,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 1074299136; pub const RTC_RD_TIME: u32 = 1076129801; pub const FDMSGOFF: u32 = 536871494; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2147774202; @@ -720,7 +699,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; pub const VHOST_SET_VRING_NUM: u32 = 2148052752; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; pub const PPPIOCGL2TPSTATS: u32 = 1078490166; @@ -736,14 +714,12 @@ pub const CHIOPOSITION: u32 = 2148295427; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074032376; pub const EVIOCSMASK: u32 = 2148550035; pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 2147774592; pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; @@ -767,12 +743,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; pub const PPPIOCSXASYNCMAP: u32 = 2149610575; pub const CHIOGSTATUS: u32 = 2148033288; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2147774200; @@ -785,7 +759,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; pub const JSIOCGCORR: u32 = 1076128290; pub const VIDIOC_G_FMT: u32 = 3234616836; pub const RTC_EPOCH_SET: u32 = 2147774478; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 2148294994; pub const SCIF_LISTEN: u32 = 2147775234; pub const NBD_CLEAR_QUE: u32 = 536914693; @@ -824,7 +797,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; pub const VIDIOC_QBUF: u32 = 3225703951; pub const VIDIOC_S_TUNER: u32 = 2153010718; pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -834,7 +806,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1075603733; pub const VHOST_SET_LOG_FD: u32 = 2147790599; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; pub const PHN_GETREG: u32 = 3221778437; @@ -862,9 +833,7 @@ pub const MMTIMER_GETBITS: u32 = 536898820; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; pub const RTC_VL_READ: u32 = 1074032659; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 2149608728; @@ -887,7 +856,6 @@ pub const TUNSETTXFILTER: u32 = 2147767505; pub const TUNGETVNETLE: u32 = 1074025693; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; pub const I2OVALIDATE: u32 = 1074030856; @@ -907,8 +875,6 @@ pub const ATM_GETTYPE: u32 = 2148295044; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 536871498; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; pub const EVIOCGMASK: u32 = 1074808210; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -917,7 +883,6 @@ pub const GSMIOC_GETFIRST: u32 = 1074022148; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 2153251472; pub const IOC_OPAL_SAVE: u32 = 2165862620; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -943,13 +908,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; pub const PHN_SET_REGS: u32 = 2147774467; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148295011; pub const MTIOCPOS: u32 = 1074031875; pub const PMU_IOC_SLEEP: u32 = 536887808; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1022,7 +984,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148033012; pub const FDSETPRM: u32 = 2149319234; pub const ATM_GETSTATZ: u32 = 2148294993; pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; @@ -1033,7 +994,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 2147766278; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2147755014; pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; @@ -1066,12 +1026,9 @@ pub const UI_SET_ABSBIT: u32 = 2147767655; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; pub const USBDEVFS_REAPURB32: u32 = 2147767564; pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148295008; pub const ATM_SETLOOP: u32 = 2148294995; -pub const ATMSIGD_CTRL: u32 = 536895984; pub const CIOC_KERNEL_VERSION: u32 = 3221512970; pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; pub const SNAPSHOT_UNFREEZE: u32 = 536883970; @@ -1098,7 +1055,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 1074033754; pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148295055; pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; pub const PPPIOCGIDLE32: u32 = 1074295871; pub const VFIO_DEVICE_RESET: u32 = 536886127; @@ -1149,7 +1105,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; pub const I2OLCTGET: u32 = 3222038786; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148295010; pub const BLKCLOSEZONE: u32 = 2148536967; pub const SONET_GETFRSENSE: u32 = 1074159895; pub const UI_SET_EVBIT: u32 = 2147767652; @@ -1178,7 +1133,6 @@ pub const CEC_G_MODE: u32 = 1074028808; pub const USBDEVFS_RESETEP: u32 = 1074025731; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; @@ -1191,7 +1145,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; pub const UI_SET_PHYS: u32 = 2147767660; pub const FDWERRORGET: u32 = 1075315223; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 536898823; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; pub const SIOCGSTAMP_NEW: u32 = 1074825478; pub const RTC_WKALM_RD: u32 = 1076391952; @@ -1204,7 +1157,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 1074020869; pub const KCOV_ENABLE: u32 = 536896356; pub const BTRFS_IOC_CLONE: u32 = 2147783689; @@ -1212,8 +1164,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; pub const AGPIOC_ALLOCATE: u32 = 3221504262; pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; @@ -1230,8 +1180,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 1074026250; pub const ATM_GETLINKRATE: u32 = 2148295041; pub const RTC_WKALM_SET: u32 = 2150133775; pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; pub const NS_GET_OWNER_UID: u32 = 536917764; @@ -1239,7 +1187,6 @@ pub const VIDIOC_OVERLAY: u32 = 2147767822; pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148295046; pub const PHN_GET_REGS: u32 = 3221516290; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1259,7 +1206,6 @@ pub const BLKOPENZONE: u32 = 2148536966; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; pub const HIDIOCGVERSION: u32 = 1074022401; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1271,7 +1217,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148294962; pub const HIDIOCINITREPORT: u32 = 536889349; pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1315,7 +1260,6 @@ pub const SONYPI_IOCGBRT: u32 = 1073837568; pub const IOC_PR_RELEASE: u32 = 2148561098; pub const PPCLRIRQ: u32 = 1074032787; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; pub const HPET_IE_OFF: u32 = 536897538; pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; pub const SONET_SETFRAMING: u32 = 2147770645; @@ -1335,7 +1279,6 @@ pub const FDGETFDCSTAT: u32 = 1075839509; pub const VIDIOC_S_PRIORITY: u32 = 2147767876; pub const SNAPSHOT_FREEZE: u32 = 536883969; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148295010; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 1074288151; @@ -1347,7 +1290,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 2147775572; pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074032377; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; @@ -1358,7 +1300,6 @@ pub const WDIOC_KEEPALIVE: u32 = 1074026245; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; pub const EVIOCSREP: u32 = 2148025603; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; pub const HPET_DPI: u32 = 536897541; @@ -1378,7 +1319,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; pub const CHIOGELEM: u32 = 2154586896; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; pub const EVIOCSKEYCODE: u32 = 2148025604; @@ -1391,7 +1331,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; pub const VIDIOC_G_EDID: u32 = 3223606824; @@ -1412,7 +1351,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 2148295052; pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148295049; pub const PPFCONTROL: u32 = 2147643534; pub const SONYPI_IOCGFAN: u32 = 1073837578; pub const RTC_IRQP_SET: u32 = 2147774476; @@ -1425,11 +1363,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3225703953; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; pub const MMTIMER_GETFREQ: u32 = 1074031874; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2147791104; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1464,7 +1400,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; pub const RIO_CM_CHAN_BIND: u32 = 2148033285; pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; @@ -1493,3 +1428,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2147787300; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 536936193; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 536936194; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 536936195; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 536936196; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 536936197; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 536936198; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 536936199; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 536936200; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 536936201; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 536936202; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/mips32r6/keyctl.rs b/src/mips32r6/keyctl.rs new file mode 100644 index 000000000..be7b5e28d --- /dev/null +++ b/src/mips32r6/keyctl.rs @@ -0,0 +1,174 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/mips32r6/landlock.rs b/src/mips32r6/landlock.rs index 636ba35f4..e17e28dd3 100644 --- a/src/mips32r6/landlock.rs +++ b/src/mips32r6/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -80,9 +84,11 @@ pub const _MIPS_SIM_NABI32: u32 = 2; pub const _MIPS_SIM_ABI64: u32 = 3; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -99,8 +105,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/mips32r6/loop_device.rs b/src/mips32r6/loop_device.rs index 8865f5d65..c25655787 100644 --- a/src/mips32r6/loop_device.rs +++ b/src/mips32r6/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_daddr_t = crate::ctypes::c_long; pub type __kernel_long_t = crate::ctypes::c_long; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips32r6/mempolicy.rs b/src/mips32r6/mempolicy.rs index f36e463e9..15df88e93 100644 --- a/src/mips32r6/mempolicy.rs +++ b/src/mips32r6/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -69,6 +69,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -107,6 +108,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -134,11 +136,13 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/mips32r6/net.rs b/src/mips32r6/net.rs index 83790658f..3412bddc0 100644 --- a/src/mips32r6/net.rs +++ b/src/mips32r6/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1360,6 +1364,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2392,13 +2404,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2406,13 +2435,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2420,27 +2468,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2474,12 +2826,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2511,57 +2863,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2570,57 +2931,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2629,291 +2999,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -2922,194 +3337,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3118,109 +3689,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3229,161 +3817,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3392,109 +4005,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/mips32r6/netlink.rs b/src/mips32r6/netlink.rs index 3d68d7222..b31787fd4 100644 --- a/src/mips32r6/netlink.rs +++ b/src/mips32r6/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -752,6 +758,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -764,6 +771,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -905,6 +913,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -983,6 +992,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1053,6 +1064,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1101,6 +1113,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1172,6 +1185,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1246,6 +1260,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1300,6 +1317,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1318,6 +1336,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1962,7 +1983,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2305,11 +2336,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2328,7 +2385,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2392,6 +2451,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2444,7 +2513,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2581,7 +2653,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2606,6 +2680,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2653,7 +2744,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2738,6 +2836,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2985,7 +3084,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3036,7 +3137,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3050,7 +3152,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3426,7 +3531,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3629,6 +3740,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3712,13 +3851,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3730,7 +3878,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3747,7 +3897,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3767,7 +3947,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3808,7 +3998,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3950,6 +4152,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4019,7 +4244,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4117,7 +4344,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4175,7 +4412,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4347,6 +4585,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4365,7 +4610,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4481,7 +4727,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4571,7 +4820,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4599,7 +4849,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5387,22 +5640,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5420,16 +5673,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5462,16 +5718,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5513,7 +5769,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5536,6 +5792,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5551,20 +5813,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5599,6 +5867,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/mips32r6/prctl.rs b/src/mips32r6/prctl.rs index 327adb01a..5bbf87096 100644 --- a/src/mips32r6/prctl.rs +++ b/src/mips32r6/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -158,6 +159,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -278,3 +280,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/mips32r6/ptrace.rs b/src/mips32r6/ptrace.rs index 9b785f7d5..1ef249e5c 100644 --- a/src/mips32r6/ptrace.rs +++ b/src/mips32r6/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -394,6 +395,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/mips32r6/system.rs b/src/mips32r6/system.rs index e15e4fd7a..33b8f8ecd 100644 --- a/src/mips32r6/system.rs +++ b/src/mips32r6/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips32r6/vm_sockets.rs b/src/mips32r6/vm_sockets.rs index 2db76bd31..2bf2f8e62 100644 --- a/src/mips32r6/vm_sockets.rs +++ b/src/mips32r6/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips32r6/xdp.rs b/src/mips32r6/xdp.rs index fcb72956c..5e269f9ac 100644 --- a/src/mips32r6/xdp.rs +++ b/src/mips32r6/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64/auxvec.rs b/src/mips64/auxvec.rs index 0ea172da5..4143eb739 100644 --- a/src/mips64/auxvec.rs +++ b/src/mips64/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; diff --git a/src/mips64/bootparam.rs b/src/mips64/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/mips64/bootparam.rs +++ b/src/mips64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/mips64/btrfs.rs b/src/mips64/btrfs.rs index f322b77bf..823ecf983 100644 --- a/src/mips64/btrfs.rs +++ b/src/mips64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -554,7 +555,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -741,7 +742,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, @@ -759,6 +760,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -912,7 +930,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1176,6 +1197,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1214,6 +1244,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1350,6 +1385,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1365,6 +1401,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1396,6 +1433,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1441,6 +1479,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1492,6 +1533,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1557,6 +1601,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1617,6 +1662,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1633,6 +1688,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1682,6 +1738,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1761,7 +1820,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1769,6 +1830,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1871,6 +1933,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/mips64/elf_uapi.rs b/src/mips64/elf_uapi.rs index ae1f8a11d..9af9a4eec 100644 --- a/src/mips64/elf_uapi.rs +++ b/src/mips64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -634,6 +635,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/mips64/errno.rs b/src/mips64/errno.rs index 59b928fcb..a27ded2d9 100644 --- a/src/mips64/errno.rs +++ b/src/mips64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -69,6 +69,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -107,6 +108,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -134,4 +136,5 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; diff --git a/src/mips64/general.rs b/src/mips64/general.rs index aade8ffb3..20ed352b1 100644 --- a/src/mips64/general.rs +++ b/src/mips64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -157,6 +158,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -288,10 +296,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -985,6 +993,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1071,7 +1107,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1087,9 +1122,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1192,6 +1227,7 @@ pub const O_NOATIME: u32 = 262144; pub const O_CLOEXEC: u32 = 524288; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 128; pub const F_DUPFD: u32 = 0; @@ -1259,6 +1295,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1270,6 +1308,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1429,6 +1468,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1445,6 +1485,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1476,6 +1517,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1521,6 +1563,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1572,6 +1617,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1588,7 +1636,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1602,6 +1652,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1617,6 +1679,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1743,6 +1807,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_NONE: u32 = 0; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -1929,7 +1995,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1951,6 +2022,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 128; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2219,6 +2291,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -2257,6 +2330,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -2284,6 +2358,7 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; pub const IGNBRK: u32 = 1; pub const BRKINT: u32 = 2; @@ -2853,6 +2928,8 @@ pub const __NR_removexattrat: u32 = 5466; pub const __NR_open_tree_attr: u32 = 5467; pub const __NR_file_getattr: u32 = 5468; pub const __NR_file_setattr: u32 = 5469; +pub const __NR_listns: u32 = 5470; +pub const __NR_rseq_slice_yield: u32 = 5471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2965,6 +3042,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 128; +pub const PIDFD_THREAD: u32 = 1024; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3099,6 +3202,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3208,13 +3317,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3222,13 +3348,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3236,24 +3381,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3289,161 +3733,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/mips64/if_arp.rs b/src/mips64/if_arp.rs index 7a19f43bc..d03aa3b41 100644 --- a/src/mips64/if_arp.rs +++ b/src/mips64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -733,6 +734,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -741,6 +743,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -763,11 +766,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -797,6 +802,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1127,6 +1133,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1197,6 +1205,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1245,6 +1254,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1316,6 +1326,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1390,6 +1401,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1444,6 +1458,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1462,6 +1477,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1822,7 +1840,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1920,7 +1940,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1978,7 +2008,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2150,6 +2181,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2168,7 +2206,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2284,7 +2323,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2374,7 +2416,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2402,7 +2445,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips64/if_ether.rs b/src/mips64/if_ether.rs index dfe86c158..f4c6df31f 100644 --- a/src/mips64/if_ether.rs +++ b/src/mips64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -114,6 +115,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -122,6 +124,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -144,11 +147,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -178,3 +183,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/mips64/if_packet.rs b/src/mips64/if_packet.rs index c22d3d0ca..1c8ee7d80 100644 --- a/src/mips64/if_packet.rs +++ b/src/mips64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64/if_tun.rs b/src/mips64/if_tun.rs index e1e078fdb..3767077d6 100644 --- a/src/mips64/if_tun.rs +++ b/src/mips64/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -144,6 +145,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -152,6 +154,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -174,11 +177,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -208,6 +213,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/mips64/image.rs b/src/mips64/image.rs index bff15e373..c95e29d35 100644 --- a/src/mips64/image.rs +++ b/src/mips64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/mips64/io_uring.rs b/src/mips64/io_uring.rs index 465e91974..110b8b485 100644 --- a/src/mips64/io_uring.rs +++ b/src/mips64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -175,10 +179,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -322,6 +326,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -402,7 +493,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -550,6 +641,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -581,7 +687,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -607,7 +713,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -677,52 +784,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -854,6 +915,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -869,6 +931,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -900,6 +963,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -945,6 +1009,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -996,6 +1063,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1016,8 +1087,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1026,6 +1101,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1057,11 +1133,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1104,7 +1183,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1144,6 +1222,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1220,7 +1341,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1268,7 +1391,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1345,12 +1471,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1368,6 +1489,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1431,6 +1565,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1464,12 +1603,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/mips64/ioctl.rs b/src/mips64/ioctl.rs index 7f9844ce5..cca05b501 100644 --- a/src/mips64/ioctl.rs +++ b/src/mips64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 18047; pub const FIONBIO: u32 = 26238; @@ -262,8 +262,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; +pub const EXT4_IOC_GROUP_ADD: u32 = 2150131208; pub const EXT4_IOC_MIGRATE: u32 = 536897033; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; @@ -271,6 +273,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; pub const EXT4_IOC_GETSTATE: u32 = 2147771945; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_GETFSUUID: u32 = 1074292268; +pub const EXT4_IOC_SETFSUUID: u32 = 2148034092; pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; @@ -291,8 +295,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 2147767499; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1076915457; -pub const ENI_SETMULT: u32 = 2148557159; pub const RIO_GET_EVENT_MASK: u32 = 1074031886; pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; @@ -329,19 +331,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 2147767662; pub const TUNSETFILTEREBPF: u32 = 1074025697; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 1074026244; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148557198; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 1075839492; pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148557152; pub const PTP_SYS_OFFSET2: u32 = 2202025230; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; @@ -351,10 +349,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; pub const RTC_EPOCH_READ: u32 = 1074294797; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148557200; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; @@ -402,7 +398,6 @@ pub const FDCLRPRM: u32 = 536871489; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 536892694; pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 1082130961; @@ -413,7 +408,6 @@ pub const MMTIMER_GETRES: u32 = 1074294017; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 1074032794; pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -421,13 +415,11 @@ pub const NE_CREATE_VM: u32 = 1074310688; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; pub const SONYPI_IOCGBLUE: u32 = 1073837576; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148557107; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 1074308100; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -449,7 +441,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; pub const FDGETMAXERRS: u32 = 1075053070; pub const TUNSETQUEUE: u32 = 2147767513; pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 536914689; @@ -512,14 +503,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 536871514; pub const TUNSETOFFLOAD: u32 = 2147767504; pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148557192; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; pub const UI_ABS_SETUP: u32 = 2149340420; pub const UI_DEV_DESTROY: u32 = 536892674; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -546,7 +534,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 536899599; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2150657280; pub const RTC_SET_TIME: u32 = 2149871626; pub const VHOST_RESET_OWNER: u32 = 536915714; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; @@ -572,18 +559,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 536892695; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148557191; pub const NBD_SET_SIZE: u32 = 536914690; pub const UDF_GETVOLIDENT: u32 = 1074293826; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; pub const UDF_GETEASIZE: u32 = 1074031680; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 536915713; @@ -616,7 +599,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; pub const UDMABUF_CREATE_LIST: u32 = 2148037955; pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148557153; pub const BR2684_SETFILT: u32 = 2149343632; pub const RNDGETPOOL: u32 = 1074287106; pub const PPS_GETPARAMS: u32 = 1074294945; @@ -633,7 +615,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 536887822; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; pub const VFIO_EEH_PE_OP: u32 = 536886137; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -663,7 +644,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; pub const STP_POLICY_ID_GET: u32 = 1074799873; pub const PPSETFLAGS: u32 = 2147774619; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; pub const PPPIOCGXASYNCMAP: u32 = 1075868752; pub const VHOST_SET_VRING_CALL: u32 = 2148052769; @@ -701,7 +681,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 1074299136; pub const RTC_RD_TIME: u32 = 1076129801; pub const FDMSGOFF: u32 = 536871494; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; @@ -720,7 +699,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; pub const VHOST_SET_VRING_NUM: u32 = 2148052752; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; pub const PPPIOCGL2TPSTATS: u32 = 1078490166; @@ -736,14 +714,12 @@ pub const CHIOPOSITION: u32 = 2148295427; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; pub const EVIOCSMASK: u32 = 2148550035; pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 2147774592; pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; @@ -767,12 +743,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; pub const PPPIOCSXASYNCMAP: u32 = 2149610575; pub const CHIOGSTATUS: u32 = 2148557576; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; @@ -785,7 +759,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; pub const JSIOCGCORR: u32 = 1076128290; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 2148036622; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 2148557138; pub const SCIF_LISTEN: u32 = 2147775234; pub const NBD_CLEAR_QUE: u32 = 536914693; @@ -824,7 +797,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 2153010718; pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -834,7 +806,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; pub const VHOST_SET_LOG_FD: u32 = 2147790599; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; pub const PHN_GETREG: u32 = 3221778437; @@ -862,9 +833,7 @@ pub const MMTIMER_GETBITS: u32 = 536898820; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; pub const RTC_VL_READ: u32 = 1074032659; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 2149608728; @@ -887,7 +856,6 @@ pub const TUNSETTXFILTER: u32 = 2147767505; pub const TUNGETVNETLE: u32 = 1074025693; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; pub const I2OVALIDATE: u32 = 1074030856; @@ -907,8 +875,6 @@ pub const ATM_GETTYPE: u32 = 2148557188; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 536871498; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; pub const EVIOCGMASK: u32 = 1074808210; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -917,7 +883,6 @@ pub const GSMIOC_GETFIRST: u32 = 1074022148; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 2155872912; pub const IOC_OPAL_SAVE: u32 = 2165862620; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -943,13 +908,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; pub const PHN_SET_REGS: u32 = 2148036611; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148557155; pub const MTIOCPOS: u32 = 1074294019; pub const PMU_IOC_SLEEP: u32 = 536887808; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1022,7 +984,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148557300; pub const FDSETPRM: u32 = 2149581378; pub const ATM_GETSTATZ: u32 = 2148557137; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1033,7 +994,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 2148028422; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; @@ -1066,12 +1026,9 @@ pub const UI_SET_ABSBIT: u32 = 2147767655; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; pub const USBDEVFS_REAPURB32: u32 = 2147767564; pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148557152; pub const ATM_SETLOOP: u32 = 2148557139; -pub const ATMSIGD_CTRL: u32 = 536895984; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; pub const SNAPSHOT_UNFREEZE: u32 = 536883970; @@ -1098,7 +1055,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 1074033754; pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148557199; pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; pub const PPPIOCGIDLE32: u32 = 1074295871; pub const VFIO_DEVICE_RESET: u32 = 536886127; @@ -1149,7 +1105,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148557154; pub const BLKCLOSEZONE: u32 = 2148536967; pub const SONET_GETFRSENSE: u32 = 1074159895; pub const UI_SET_EVBIT: u32 = 2147767652; @@ -1178,7 +1133,6 @@ pub const CEC_G_MODE: u32 = 1074028808; pub const USBDEVFS_RESETEP: u32 = 1074025731; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; @@ -1191,7 +1145,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; pub const UI_SET_PHYS: u32 = 2148029804; pub const FDWERRORGET: u32 = 1076363799; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 536898823; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; pub const SIOCGSTAMP_NEW: u32 = 1074825478; pub const RTC_WKALM_RD: u32 = 1076391952; @@ -1204,7 +1157,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; pub const KCOV_ENABLE: u32 = 536896356; pub const BTRFS_IOC_CLONE: u32 = 2147783689; @@ -1212,8 +1164,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; @@ -1230,8 +1180,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 1074026250; pub const ATM_GETLINKRATE: u32 = 2148557185; pub const RTC_WKALM_SET: u32 = 2150133775; pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; pub const NS_GET_OWNER_UID: u32 = 536917764; @@ -1239,7 +1187,6 @@ pub const VIDIOC_OVERLAY: u32 = 2147767822; pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148557190; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1259,7 +1206,6 @@ pub const BLKOPENZONE: u32 = 2148536966; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; pub const HIDIOCGVERSION: u32 = 1074022401; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1271,7 +1217,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148557106; pub const HIDIOCINITREPORT: u32 = 536889349; pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1315,7 +1260,6 @@ pub const SONYPI_IOCGBRT: u32 = 1073837568; pub const IOC_PR_RELEASE: u32 = 2148561098; pub const PPCLRIRQ: u32 = 1074032787; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; pub const HPET_IE_OFF: u32 = 536897538; pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; pub const SONET_SETFRAMING: u32 = 2147770645; @@ -1335,7 +1279,6 @@ pub const FDGETFDCSTAT: u32 = 1076363797; pub const VIDIOC_S_PRIORITY: u32 = 2147767876; pub const SNAPSHOT_FREEZE: u32 = 536883969; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148557154; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 1074288151; @@ -1347,7 +1290,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 2147775572; pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; @@ -1358,7 +1300,6 @@ pub const WDIOC_KEEPALIVE: u32 = 1074026245; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; pub const EVIOCSREP: u32 = 2148025603; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; pub const HPET_DPI: u32 = 536897541; @@ -1378,7 +1319,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; pub const CHIOGELEM: u32 = 2154586896; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; pub const EVIOCSKEYCODE: u32 = 2148025604; @@ -1391,7 +1331,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1412,7 +1351,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 2148557196; pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148557193; pub const PPFCONTROL: u32 = 2147643534; pub const SONYPI_IOCGFAN: u32 = 1073837578; pub const RTC_IRQP_SET: u32 = 2148036620; @@ -1425,11 +1363,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; pub const MMTIMER_GETFREQ: u32 = 1074294018; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2148053248; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1464,7 +1400,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; pub const RIO_CM_CHAN_BIND: u32 = 2148033285; pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; @@ -1493,3 +1428,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 536936193; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 536936194; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 536936195; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 536936196; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 536936197; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 536936198; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 536936199; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 536936200; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 536936201; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 536936202; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/mips64/keyctl.rs b/src/mips64/keyctl.rs new file mode 100644 index 000000000..aca96a017 --- /dev/null +++ b/src/mips64/keyctl.rs @@ -0,0 +1,176 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/mips64/landlock.rs b/src/mips64/landlock.rs index f45cdeb8f..dabcb0215 100644 --- a/src/mips64/landlock.rs +++ b/src/mips64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -56,6 +57,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -82,9 +86,11 @@ pub const _MIPS_SIM_NABI32: u32 = 2; pub const _MIPS_SIM_ABI64: u32 = 3; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -101,8 +107,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/mips64/loop_device.rs b/src/mips64/loop_device.rs index 42803b9d2..8c569f73a 100644 --- a/src/mips64/loop_device.rs +++ b/src/mips64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_daddr_t = crate::ctypes::c_long; pub type __kernel_long_t = crate::ctypes::c_long; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64/mempolicy.rs b/src/mips64/mempolicy.rs index f36e463e9..15df88e93 100644 --- a/src/mips64/mempolicy.rs +++ b/src/mips64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -69,6 +69,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -107,6 +108,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -134,11 +136,13 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/mips64/net.rs b/src/mips64/net.rs index e11ef2381..334f1aa30 100644 --- a/src/mips64/net.rs +++ b/src/mips64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -142,7 +146,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -179,7 +183,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -340,7 +343,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -367,7 +369,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -397,7 +398,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -450,6 +450,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -476,7 +484,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1368,6 +1372,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2400,13 +2412,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2414,13 +2443,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2428,27 +2476,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2482,12 +2834,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2519,57 +2871,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2578,57 +2939,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2637,291 +3007,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -2930,194 +3345,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3126,109 +3697,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3237,161 +3825,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3400,109 +4013,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/mips64/netlink.rs b/src/mips64/netlink.rs index f484eef1c..30a4df30b 100644 --- a/src/mips64/netlink.rs +++ b/src/mips64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -139,6 +140,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -754,6 +760,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -766,6 +773,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -907,6 +915,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -985,6 +994,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1055,6 +1066,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1103,6 +1115,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1174,6 +1187,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1248,6 +1262,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1302,6 +1319,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1320,6 +1338,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1964,7 +1985,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2307,11 +2338,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2330,7 +2387,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2394,6 +2453,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2446,7 +2515,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2583,7 +2655,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2608,6 +2682,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2655,7 +2746,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2740,6 +2838,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2987,7 +3086,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3038,7 +3139,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3052,7 +3154,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3428,7 +3533,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3631,6 +3742,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3714,13 +3853,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3732,7 +3880,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3749,7 +3899,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3769,7 +3949,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3810,7 +4000,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3952,6 +4154,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4021,7 +4246,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4119,7 +4346,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4177,7 +4414,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4349,6 +4587,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4367,7 +4612,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4483,7 +4729,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4573,7 +4822,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4601,7 +4851,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5389,22 +5642,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5422,16 +5675,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5464,16 +5720,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5515,7 +5771,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5538,6 +5794,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5553,20 +5815,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5601,6 +5869,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/mips64/prctl.rs b/src/mips64/prctl.rs index f221615aa..8d7e3c68f 100644 --- a/src/mips64/prctl.rs +++ b/src/mips64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -160,6 +161,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -280,3 +282,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/mips64/ptrace.rs b/src/mips64/ptrace.rs index fdca98f2f..4542f15bb 100644 --- a/src/mips64/ptrace.rs +++ b/src/mips64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -396,6 +397,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/mips64/system.rs b/src/mips64/system.rs index 8015f0b31..9dd5e4146 100644 --- a/src/mips64/system.rs +++ b/src/mips64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64/vm_sockets.rs b/src/mips64/vm_sockets.rs index b0b59510e..af615bfc7 100644 --- a/src/mips64/vm_sockets.rs +++ b/src/mips64/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64/xdp.rs b/src/mips64/xdp.rs index d8dda2d04..b56c1e167 100644 --- a/src/mips64/xdp.rs +++ b/src/mips64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64r6/auxvec.rs b/src/mips64r6/auxvec.rs index 0ea172da5..4143eb739 100644 --- a/src/mips64r6/auxvec.rs +++ b/src/mips64r6/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; diff --git a/src/mips64r6/bootparam.rs b/src/mips64r6/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/mips64r6/bootparam.rs +++ b/src/mips64r6/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/mips64r6/btrfs.rs b/src/mips64r6/btrfs.rs index f322b77bf..823ecf983 100644 --- a/src/mips64r6/btrfs.rs +++ b/src/mips64r6/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -554,7 +555,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -741,7 +742,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, @@ -759,6 +760,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -912,7 +930,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1176,6 +1197,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1214,6 +1244,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1350,6 +1385,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1365,6 +1401,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1396,6 +1433,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1441,6 +1479,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1492,6 +1533,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1557,6 +1601,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1617,6 +1662,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1633,6 +1688,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1682,6 +1738,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1761,7 +1820,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1769,6 +1830,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1871,6 +1933,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/mips64r6/elf_uapi.rs b/src/mips64r6/elf_uapi.rs index ae1f8a11d..9af9a4eec 100644 --- a/src/mips64r6/elf_uapi.rs +++ b/src/mips64r6/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -634,6 +635,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/mips64r6/errno.rs b/src/mips64r6/errno.rs index 59b928fcb..a27ded2d9 100644 --- a/src/mips64r6/errno.rs +++ b/src/mips64r6/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -69,6 +69,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -107,6 +108,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -134,4 +136,5 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; diff --git a/src/mips64r6/general.rs b/src/mips64r6/general.rs index aade8ffb3..20ed352b1 100644 --- a/src/mips64r6/general.rs +++ b/src/mips64r6/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -157,6 +158,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -288,10 +296,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -985,6 +993,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1071,7 +1107,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1087,9 +1122,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1192,6 +1227,7 @@ pub const O_NOATIME: u32 = 262144; pub const O_CLOEXEC: u32 = 524288; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 128; pub const F_DUPFD: u32 = 0; @@ -1259,6 +1295,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1270,6 +1308,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1429,6 +1468,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1445,6 +1485,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1476,6 +1517,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1521,6 +1563,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1572,6 +1617,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1588,7 +1636,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1602,6 +1652,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1617,6 +1679,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1743,6 +1807,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_NONE: u32 = 0; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; @@ -1929,7 +1995,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1951,6 +2022,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 128; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2219,6 +2291,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -2257,6 +2330,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -2284,6 +2358,7 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; pub const IGNBRK: u32 = 1; pub const BRKINT: u32 = 2; @@ -2853,6 +2928,8 @@ pub const __NR_removexattrat: u32 = 5466; pub const __NR_open_tree_attr: u32 = 5467; pub const __NR_file_getattr: u32 = 5468; pub const __NR_file_setattr: u32 = 5469; +pub const __NR_listns: u32 = 5470; +pub const __NR_rseq_slice_yield: u32 = 5471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2965,6 +3042,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 128; +pub const PIDFD_THREAD: u32 = 1024; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3099,6 +3202,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3208,13 +3317,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3222,13 +3348,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3236,24 +3381,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3289,161 +3733,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/mips64r6/if_arp.rs b/src/mips64r6/if_arp.rs index 7a19f43bc..d03aa3b41 100644 --- a/src/mips64r6/if_arp.rs +++ b/src/mips64r6/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -733,6 +734,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -741,6 +743,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -763,11 +766,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -797,6 +802,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1127,6 +1133,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1197,6 +1205,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1245,6 +1254,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1316,6 +1326,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1390,6 +1401,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1444,6 +1458,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1462,6 +1477,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1822,7 +1840,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1920,7 +1940,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1978,7 +2008,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2150,6 +2181,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2168,7 +2206,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2284,7 +2323,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2374,7 +2416,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2402,7 +2445,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/mips64r6/if_ether.rs b/src/mips64r6/if_ether.rs index dfe86c158..f4c6df31f 100644 --- a/src/mips64r6/if_ether.rs +++ b/src/mips64r6/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -114,6 +115,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -122,6 +124,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -144,11 +147,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -178,3 +183,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/mips64r6/if_packet.rs b/src/mips64r6/if_packet.rs index c22d3d0ca..1c8ee7d80 100644 --- a/src/mips64r6/if_packet.rs +++ b/src/mips64r6/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64r6/if_tun.rs b/src/mips64r6/if_tun.rs index e1e078fdb..3767077d6 100644 --- a/src/mips64r6/if_tun.rs +++ b/src/mips64r6/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -144,6 +145,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -152,6 +154,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -174,11 +177,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -208,6 +213,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/mips64r6/image.rs b/src/mips64r6/image.rs index bff15e373..c95e29d35 100644 --- a/src/mips64r6/image.rs +++ b/src/mips64r6/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/mips64r6/io_uring.rs b/src/mips64r6/io_uring.rs index 465e91974..110b8b485 100644 --- a/src/mips64r6/io_uring.rs +++ b/src/mips64r6/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -175,10 +179,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -322,6 +326,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -402,7 +493,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -550,6 +641,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -581,7 +687,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -607,7 +713,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -677,52 +784,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -854,6 +915,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -869,6 +931,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -900,6 +963,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -945,6 +1009,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -996,6 +1063,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1016,8 +1087,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1026,6 +1101,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1057,11 +1133,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1104,7 +1183,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1144,6 +1222,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1220,7 +1341,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1268,7 +1391,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1345,12 +1471,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1368,6 +1489,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1431,6 +1565,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1464,12 +1603,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/mips64r6/ioctl.rs b/src/mips64r6/ioctl.rs index 7f9844ce5..cca05b501 100644 --- a/src/mips64r6/ioctl.rs +++ b/src/mips64r6/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 18047; pub const FIONBIO: u32 = 26238; @@ -262,8 +262,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; +pub const EXT4_IOC_GROUP_ADD: u32 = 2150131208; pub const EXT4_IOC_MIGRATE: u32 = 536897033; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; @@ -271,6 +273,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; pub const EXT4_IOC_GETSTATE: u32 = 2147771945; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_GETFSUUID: u32 = 1074292268; +pub const EXT4_IOC_SETFSUUID: u32 = 2148034092; pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; @@ -291,8 +295,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 2147767499; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1076915457; -pub const ENI_SETMULT: u32 = 2148557159; pub const RIO_GET_EVENT_MASK: u32 = 1074031886; pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; @@ -329,19 +331,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 2147767662; pub const TUNSETFILTEREBPF: u32 = 1074025697; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 1074026244; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148557198; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 1075839492; pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148557152; pub const PTP_SYS_OFFSET2: u32 = 2202025230; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; @@ -351,10 +349,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; pub const RTC_EPOCH_READ: u32 = 1074294797; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148557200; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; @@ -402,7 +398,6 @@ pub const FDCLRPRM: u32 = 536871489; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 536892694; pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 1082130961; @@ -413,7 +408,6 @@ pub const MMTIMER_GETRES: u32 = 1074294017; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 1074032794; pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -421,13 +415,11 @@ pub const NE_CREATE_VM: u32 = 1074310688; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; pub const SONYPI_IOCGBLUE: u32 = 1073837576; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148557107; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 1074308100; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -449,7 +441,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; pub const FDGETMAXERRS: u32 = 1075053070; pub const TUNSETQUEUE: u32 = 2147767513; pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 536914689; @@ -512,14 +503,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 536871514; pub const TUNSETOFFLOAD: u32 = 2147767504; pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148557192; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; pub const UI_ABS_SETUP: u32 = 2149340420; pub const UI_DEV_DESTROY: u32 = 536892674; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -546,7 +534,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 536899599; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2150657280; pub const RTC_SET_TIME: u32 = 2149871626; pub const VHOST_RESET_OWNER: u32 = 536915714; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; @@ -572,18 +559,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 536892695; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148557191; pub const NBD_SET_SIZE: u32 = 536914690; pub const UDF_GETVOLIDENT: u32 = 1074293826; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; pub const UDF_GETEASIZE: u32 = 1074031680; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 536915713; @@ -616,7 +599,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; pub const UDMABUF_CREATE_LIST: u32 = 2148037955; pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148557153; pub const BR2684_SETFILT: u32 = 2149343632; pub const RNDGETPOOL: u32 = 1074287106; pub const PPS_GETPARAMS: u32 = 1074294945; @@ -633,7 +615,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 536887822; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; pub const VFIO_EEH_PE_OP: u32 = 536886137; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -663,7 +644,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; pub const STP_POLICY_ID_GET: u32 = 1074799873; pub const PPSETFLAGS: u32 = 2147774619; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; pub const PPPIOCGXASYNCMAP: u32 = 1075868752; pub const VHOST_SET_VRING_CALL: u32 = 2148052769; @@ -701,7 +681,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 1074299136; pub const RTC_RD_TIME: u32 = 1076129801; pub const FDMSGOFF: u32 = 536871494; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; @@ -720,7 +699,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; pub const VHOST_SET_VRING_NUM: u32 = 2148052752; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; pub const PPPIOCGL2TPSTATS: u32 = 1078490166; @@ -736,14 +714,12 @@ pub const CHIOPOSITION: u32 = 2148295427; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; pub const EVIOCSMASK: u32 = 2148550035; pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 2147774592; pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; @@ -767,12 +743,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; pub const PPPIOCSXASYNCMAP: u32 = 2149610575; pub const CHIOGSTATUS: u32 = 2148557576; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; @@ -785,7 +759,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; pub const JSIOCGCORR: u32 = 1076128290; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 2148036622; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 2148557138; pub const SCIF_LISTEN: u32 = 2147775234; pub const NBD_CLEAR_QUE: u32 = 536914693; @@ -824,7 +797,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 2153010718; pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -834,7 +806,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; pub const VHOST_SET_LOG_FD: u32 = 2147790599; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; pub const PHN_GETREG: u32 = 3221778437; @@ -862,9 +833,7 @@ pub const MMTIMER_GETBITS: u32 = 536898820; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; pub const RTC_VL_READ: u32 = 1074032659; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 2149608728; @@ -887,7 +856,6 @@ pub const TUNSETTXFILTER: u32 = 2147767505; pub const TUNGETVNETLE: u32 = 1074025693; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; pub const I2OVALIDATE: u32 = 1074030856; @@ -907,8 +875,6 @@ pub const ATM_GETTYPE: u32 = 2148557188; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 536871498; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; pub const EVIOCGMASK: u32 = 1074808210; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -917,7 +883,6 @@ pub const GSMIOC_GETFIRST: u32 = 1074022148; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 2155872912; pub const IOC_OPAL_SAVE: u32 = 2165862620; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -943,13 +908,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; pub const PHN_SET_REGS: u32 = 2148036611; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148557155; pub const MTIOCPOS: u32 = 1074294019; pub const PMU_IOC_SLEEP: u32 = 536887808; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1022,7 +984,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148557300; pub const FDSETPRM: u32 = 2149581378; pub const ATM_GETSTATZ: u32 = 2148557137; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1033,7 +994,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 2148028422; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; @@ -1066,12 +1026,9 @@ pub const UI_SET_ABSBIT: u32 = 2147767655; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; pub const USBDEVFS_REAPURB32: u32 = 2147767564; pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148557152; pub const ATM_SETLOOP: u32 = 2148557139; -pub const ATMSIGD_CTRL: u32 = 536895984; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; pub const SNAPSHOT_UNFREEZE: u32 = 536883970; @@ -1098,7 +1055,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 1074033754; pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148557199; pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; pub const PPPIOCGIDLE32: u32 = 1074295871; pub const VFIO_DEVICE_RESET: u32 = 536886127; @@ -1149,7 +1105,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148557154; pub const BLKCLOSEZONE: u32 = 2148536967; pub const SONET_GETFRSENSE: u32 = 1074159895; pub const UI_SET_EVBIT: u32 = 2147767652; @@ -1178,7 +1133,6 @@ pub const CEC_G_MODE: u32 = 1074028808; pub const USBDEVFS_RESETEP: u32 = 1074025731; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; @@ -1191,7 +1145,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; pub const UI_SET_PHYS: u32 = 2148029804; pub const FDWERRORGET: u32 = 1076363799; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 536898823; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; pub const SIOCGSTAMP_NEW: u32 = 1074825478; pub const RTC_WKALM_RD: u32 = 1076391952; @@ -1204,7 +1157,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; pub const KCOV_ENABLE: u32 = 536896356; pub const BTRFS_IOC_CLONE: u32 = 2147783689; @@ -1212,8 +1164,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; @@ -1230,8 +1180,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 1074026250; pub const ATM_GETLINKRATE: u32 = 2148557185; pub const RTC_WKALM_SET: u32 = 2150133775; pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; pub const NS_GET_OWNER_UID: u32 = 536917764; @@ -1239,7 +1187,6 @@ pub const VIDIOC_OVERLAY: u32 = 2147767822; pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148557190; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1259,7 +1206,6 @@ pub const BLKOPENZONE: u32 = 2148536966; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; pub const HIDIOCGVERSION: u32 = 1074022401; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1271,7 +1217,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148557106; pub const HIDIOCINITREPORT: u32 = 536889349; pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1315,7 +1260,6 @@ pub const SONYPI_IOCGBRT: u32 = 1073837568; pub const IOC_PR_RELEASE: u32 = 2148561098; pub const PPCLRIRQ: u32 = 1074032787; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; pub const HPET_IE_OFF: u32 = 536897538; pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; pub const SONET_SETFRAMING: u32 = 2147770645; @@ -1335,7 +1279,6 @@ pub const FDGETFDCSTAT: u32 = 1076363797; pub const VIDIOC_S_PRIORITY: u32 = 2147767876; pub const SNAPSHOT_FREEZE: u32 = 536883969; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148557154; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 1074288151; @@ -1347,7 +1290,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 2147775572; pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; @@ -1358,7 +1300,6 @@ pub const WDIOC_KEEPALIVE: u32 = 1074026245; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; pub const EVIOCSREP: u32 = 2148025603; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; pub const HPET_DPI: u32 = 536897541; @@ -1378,7 +1319,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; pub const CHIOGELEM: u32 = 2154586896; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; pub const EVIOCSKEYCODE: u32 = 2148025604; @@ -1391,7 +1331,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1412,7 +1351,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 2148557196; pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148557193; pub const PPFCONTROL: u32 = 2147643534; pub const SONYPI_IOCGFAN: u32 = 1073837578; pub const RTC_IRQP_SET: u32 = 2148036620; @@ -1425,11 +1363,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; pub const MMTIMER_GETFREQ: u32 = 1074294018; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2148053248; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1464,7 +1400,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; pub const RIO_CM_CHAN_BIND: u32 = 2148033285; pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; @@ -1493,3 +1428,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 536936193; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 536936194; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 536936195; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 536936196; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 536936197; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 536936198; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 536936199; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 536936200; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 536936201; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 536936202; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/mips64r6/keyctl.rs b/src/mips64r6/keyctl.rs new file mode 100644 index 000000000..aca96a017 --- /dev/null +++ b/src/mips64r6/keyctl.rs @@ -0,0 +1,176 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const _MIPS_ISA_MIPS1: u32 = 1; +pub const _MIPS_ISA_MIPS2: u32 = 2; +pub const _MIPS_ISA_MIPS3: u32 = 3; +pub const _MIPS_ISA_MIPS4: u32 = 4; +pub const _MIPS_ISA_MIPS5: u32 = 5; +pub const _MIPS_ISA_MIPS32: u32 = 6; +pub const _MIPS_ISA_MIPS64: u32 = 7; +pub const _MIPS_SIM_ABI32: u32 = 1; +pub const _MIPS_SIM_NABI32: u32 = 2; +pub const _MIPS_SIM_ABI64: u32 = 3; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/mips64r6/landlock.rs b/src/mips64r6/landlock.rs index f45cdeb8f..dabcb0215 100644 --- a/src/mips64r6/landlock.rs +++ b/src/mips64r6/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -56,6 +57,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -82,9 +86,11 @@ pub const _MIPS_SIM_NABI32: u32 = 2; pub const _MIPS_SIM_ABI64: u32 = 3; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -101,8 +107,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/mips64r6/loop_device.rs b/src/mips64r6/loop_device.rs index 42803b9d2..8c569f73a 100644 --- a/src/mips64r6/loop_device.rs +++ b/src/mips64r6/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_daddr_t = crate::ctypes::c_long; pub type __kernel_long_t = crate::ctypes::c_long; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64r6/mempolicy.rs b/src/mips64r6/mempolicy.rs index f36e463e9..15df88e93 100644 --- a/src/mips64r6/mempolicy.rs +++ b/src/mips64r6/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -69,6 +69,7 @@ pub const EPROTO: u32 = 71; pub const EDOTDOT: u32 = 73; pub const EMULTIHOP: u32 = 74; pub const EBADMSG: u32 = 77; +pub const EFSBADCRC: u32 = 77; pub const ENAMETOOLONG: u32 = 78; pub const EOVERFLOW: u32 = 79; pub const ENOTUNIQ: u32 = 80; @@ -107,6 +108,7 @@ pub const ENOBUFS: u32 = 132; pub const EISCONN: u32 = 133; pub const ENOTCONN: u32 = 134; pub const EUCLEAN: u32 = 135; +pub const EFSCORRUPTED: u32 = 135; pub const ENOTNAM: u32 = 137; pub const ENAVAIL: u32 = 138; pub const EISNAM: u32 = 139; @@ -134,11 +136,13 @@ pub const EOWNERDEAD: u32 = 165; pub const ENOTRECOVERABLE: u32 = 166; pub const ERFKILL: u32 = 167; pub const EHWPOISON: u32 = 168; +pub const EFTYPE: u32 = 169; pub const EDQUOT: u32 = 1133; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/mips64r6/net.rs b/src/mips64r6/net.rs index e11ef2381..334f1aa30 100644 --- a/src/mips64r6/net.rs +++ b/src/mips64r6/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -142,7 +146,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -179,7 +183,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -340,7 +343,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -367,7 +369,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -397,7 +398,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -450,6 +450,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -476,7 +484,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1368,6 +1372,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2400,13 +2412,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2414,13 +2443,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2428,27 +2476,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2482,12 +2834,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2519,57 +2871,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2578,57 +2939,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2637,291 +3007,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -2930,194 +3345,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3126,109 +3697,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3237,161 +3825,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3400,109 +4013,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/mips64r6/netlink.rs b/src/mips64r6/netlink.rs index f484eef1c..30a4df30b 100644 --- a/src/mips64r6/netlink.rs +++ b/src/mips64r6/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -139,6 +140,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -754,6 +760,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -766,6 +773,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -907,6 +915,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -985,6 +994,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1055,6 +1066,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1103,6 +1115,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1174,6 +1187,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1248,6 +1262,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1302,6 +1319,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1320,6 +1338,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1964,7 +1985,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2307,11 +2338,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2330,7 +2387,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2394,6 +2453,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2446,7 +2515,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2583,7 +2655,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2608,6 +2682,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2655,7 +2746,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2740,6 +2838,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2987,7 +3086,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3038,7 +3139,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3052,7 +3154,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3428,7 +3533,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3631,6 +3742,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3714,13 +3853,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3732,7 +3880,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3749,7 +3899,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3769,7 +3949,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3810,7 +4000,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3952,6 +4154,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4021,7 +4246,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4119,7 +4346,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4177,7 +4414,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4349,6 +4587,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4367,7 +4612,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4483,7 +4729,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4573,7 +4822,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4601,7 +4851,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5389,22 +5642,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5422,16 +5675,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5464,16 +5720,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5515,7 +5771,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5538,6 +5794,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5553,20 +5815,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5601,6 +5869,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/mips64r6/prctl.rs b/src/mips64r6/prctl.rs index f221615aa..8d7e3c68f 100644 --- a/src/mips64r6/prctl.rs +++ b/src/mips64r6/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -160,6 +161,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -280,3 +282,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/mips64r6/ptrace.rs b/src/mips64r6/ptrace.rs index fdca98f2f..4542f15bb 100644 --- a/src/mips64r6/ptrace.rs +++ b/src/mips64r6/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -396,6 +397,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/mips64r6/system.rs b/src/mips64r6/system.rs index 8015f0b31..9dd5e4146 100644 --- a/src/mips64r6/system.rs +++ b/src/mips64r6/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64r6/vm_sockets.rs b/src/mips64r6/vm_sockets.rs index b0b59510e..af615bfc7 100644 --- a/src/mips64r6/vm_sockets.rs +++ b/src/mips64r6/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/mips64r6/xdp.rs b/src/mips64r6/xdp.rs index d8dda2d04..b56c1e167 100644 --- a/src/mips64r6/xdp.rs +++ b/src/mips64r6/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc/auxvec.rs b/src/powerpc/auxvec.rs index f00be257c..902e8cf39 100644 --- a/src/powerpc/auxvec.rs +++ b/src/powerpc/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_DCACHEBSIZE: u32 = 19; pub const AT_ICACHEBSIZE: u32 = 20; diff --git a/src/powerpc/bootparam.rs b/src/powerpc/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/powerpc/bootparam.rs +++ b/src/powerpc/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/powerpc/btrfs.rs b/src/powerpc/btrfs.rs index 97f3b11d0..0dc75d052 100644 --- a/src/powerpc/btrfs.rs +++ b/src/powerpc/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -177,10 +178,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -558,7 +559,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -745,7 +746,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, @@ -763,6 +764,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -916,7 +934,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1180,6 +1201,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1218,6 +1248,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1344,6 +1379,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1359,6 +1395,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1390,6 +1427,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1435,6 +1473,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1486,6 +1527,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1551,6 +1595,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1611,6 +1656,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1627,6 +1682,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1676,6 +1732,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1755,7 +1814,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1763,6 +1824,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1865,6 +1927,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/powerpc/elf_uapi.rs b/src/powerpc/elf_uapi.rs index 1ff79f3ff..c52f5c63e 100644 --- a/src/powerpc/elf_uapi.rs +++ b/src/powerpc/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -628,6 +629,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/powerpc/errno.rs b/src/powerpc/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/powerpc/errno.rs +++ b/src/powerpc/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/powerpc/general.rs b/src/powerpc/general.rs index 8ad1a7a59..85ce8b8db 100644 --- a/src/powerpc/general.rs +++ b/src/powerpc/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -161,6 +162,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -292,10 +300,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -994,6 +1002,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1116,7 +1152,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1133,9 +1168,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1223,6 +1258,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4210688; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1298,6 +1334,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1309,6 +1347,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1468,6 +1507,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1484,6 +1524,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1515,6 +1556,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1560,6 +1602,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1611,6 +1656,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1627,7 +1675,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1641,6 +1691,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1656,6 +1718,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1782,6 +1846,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1972,7 +2038,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1994,6 +2065,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 64; pub const _NSIG_BPW: u32 = 32; pub const _NSIG_WORDS: u32 = 2; @@ -2850,6 +2922,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2962,6 +3036,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3092,6 +3192,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3201,13 +3307,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3215,13 +3338,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3229,24 +3371,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3282,161 +3723,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/powerpc/if_arp.rs b/src/powerpc/if_arp.rs index 89efcb0c7..40c9b7939 100644 --- a/src/powerpc/if_arp.rs +++ b/src/powerpc/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -727,6 +728,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -735,6 +737,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -757,11 +760,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -791,6 +796,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1121,6 +1127,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1191,6 +1199,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1239,6 +1248,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1310,6 +1320,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1384,6 +1395,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1438,6 +1452,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1456,6 +1471,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1816,7 +1834,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1914,7 +1934,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1972,7 +2002,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2144,6 +2175,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2162,7 +2200,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2278,7 +2317,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2368,7 +2410,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2396,7 +2439,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/powerpc/if_ether.rs b/src/powerpc/if_ether.rs index da698c46a..264ad046c 100644 --- a/src/powerpc/if_ether.rs +++ b/src/powerpc/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -108,6 +109,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -116,6 +118,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -138,11 +141,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -172,3 +177,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/powerpc/if_packet.rs b/src/powerpc/if_packet.rs index 5fd6357e9..c6c1fc43f 100644 --- a/src/powerpc/if_packet.rs +++ b/src/powerpc/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc/if_tun.rs b/src/powerpc/if_tun.rs index f88458cf1..f992ea1ab 100644 --- a/src/powerpc/if_tun.rs +++ b/src/powerpc/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -138,6 +139,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -146,6 +148,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -168,11 +171,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -202,6 +207,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/powerpc/image.rs b/src/powerpc/image.rs index bff15e373..c95e29d35 100644 --- a/src/powerpc/image.rs +++ b/src/powerpc/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/powerpc/io_uring.rs b/src/powerpc/io_uring.rs index 8be31991c..9d1b5be28 100644 --- a/src/powerpc/io_uring.rs +++ b/src/powerpc/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -49,6 +50,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -179,10 +183,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -326,6 +330,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -406,7 +497,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -554,6 +645,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -585,7 +691,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -611,7 +717,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -681,52 +788,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -848,6 +909,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -863,6 +925,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -894,6 +957,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -939,6 +1003,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -990,6 +1057,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1010,8 +1081,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1020,6 +1095,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1051,11 +1127,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1098,7 +1177,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1138,6 +1216,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1214,7 +1335,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1262,7 +1385,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1339,12 +1465,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1362,6 +1483,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1425,6 +1559,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1458,12 +1597,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/powerpc/ioctl.rs b/src/powerpc/ioctl.rs index 505b5977e..1c68257a5 100644 --- a/src/powerpc/ioctl.rs +++ b/src/powerpc/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 1074030207; pub const FIONBIO: u32 = 2147772030; @@ -263,8 +263,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 2147776002; pub const EXT4_IOC_GETRSVSZ: u32 = 1074030085; pub const EXT4_IOC_SETRSVSZ: u32 = 2147771910; pub const EXT4_IOC_GROUP_EXTEND: u32 = 2147771911; +pub const EXT4_IOC_GROUP_ADD: u32 = 2150131208; pub const EXT4_IOC_MIGRATE: u32 = 536897033; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; @@ -272,6 +274,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; pub const EXT4_IOC_GETSTATE: u32 = 2147771945; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_GETFSUUID: u32 = 1074292268; +pub const EXT4_IOC_SETFSUUID: u32 = 2148034092; pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; @@ -292,8 +296,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 2147767499; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1075866881; -pub const ENI_SETMULT: u32 = 2148295015; pub const RIO_GET_EVENT_MASK: u32 = 1074031886; pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; @@ -330,19 +332,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222036833; pub const UI_SET_PROPBIT: u32 = 2147767662; pub const TUNSETFILTEREBPF: u32 = 1074025697; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 1074026244; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148295054; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 1075577348; pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148295008; pub const PTP_SYS_OFFSET2: u32 = 2202025230; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; @@ -352,10 +350,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; pub const RTC_EPOCH_READ: u32 = 1074032653; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148295056; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; @@ -403,7 +399,6 @@ pub const FDCLRPRM: u32 = 536871489; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 536892694; pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 1079509521; @@ -414,7 +409,6 @@ pub const MMTIMER_GETRES: u32 = 1074031873; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 1074032794; pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -422,13 +416,11 @@ pub const NE_CREATE_VM: u32 = 1074310688; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; pub const SONYPI_IOCGBLUE: u32 = 1073837576; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; pub const I2OHTML: u32 = 3223087369; pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148294963; pub const I2OPARMSET: u32 = 3222825219; pub const TEE_IOC_CANCEL: u32 = 1074308100; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -450,7 +442,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; pub const FDGETMAXERRS: u32 = 1075053070; pub const TUNSETQUEUE: u32 = 2147767513; pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 536914689; @@ -513,14 +504,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 536871514; pub const TUNSETOFFLOAD: u32 = 2147767504; pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148295048; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; pub const UI_ABS_SETUP: u32 = 2149340420; pub const UI_DEV_DESTROY: u32 = 536892674; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -547,7 +535,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 536899599; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2149608704; pub const RTC_SET_TIME: u32 = 2149871626; pub const VHOST_RESET_OWNER: u32 = 536915714; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; @@ -573,18 +560,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 536892695; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148295047; pub const NBD_SET_SIZE: u32 = 536914690; pub const UDF_GETVOLIDENT: u32 = 1074031682; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; pub const UDF_GETEASIZE: u32 = 1074031680; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 536915713; @@ -617,7 +600,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; pub const UDMABUF_CREATE_LIST: u32 = 2148037955; pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148295009; pub const BR2684_SETFILT: u32 = 2149343632; pub const RNDGETPOOL: u32 = 1074287106; pub const PPS_GETPARAMS: u32 = 1074032801; @@ -634,7 +616,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 536887822; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; pub const VFIO_EEH_PE_OP: u32 = 536886137; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -664,7 +645,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; pub const STP_POLICY_ID_GET: u32 = 1074799873; pub const PPSETFLAGS: u32 = 2147774619; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; pub const PPPIOCGXASYNCMAP: u32 = 1075868752; pub const VHOST_SET_VRING_CALL: u32 = 2148052769; @@ -702,7 +682,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 1074299136; pub const RTC_RD_TIME: u32 = 1076129801; pub const FDMSGOFF: u32 = 536871494; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2147774202; @@ -721,7 +700,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; pub const VHOST_SET_VRING_NUM: u32 = 2148052752; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; pub const PPPIOCGL2TPSTATS: u32 = 1078490166; @@ -737,14 +715,12 @@ pub const CHIOPOSITION: u32 = 2148295427; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074032376; pub const EVIOCSMASK: u32 = 2148550035; pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 2147774592; pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; @@ -768,12 +744,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; pub const PPPIOCSXASYNCMAP: u32 = 2149610575; pub const CHIOGSTATUS: u32 = 2148033288; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2147774200; @@ -786,7 +760,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; pub const JSIOCGCORR: u32 = 1076128290; pub const VIDIOC_G_FMT: u32 = 3234616836; pub const RTC_EPOCH_SET: u32 = 2147774478; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 2148294994; pub const SCIF_LISTEN: u32 = 2147775234; pub const NBD_CLEAR_QUE: u32 = 536914693; @@ -825,7 +798,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; pub const VIDIOC_QBUF: u32 = 3225703951; pub const VIDIOC_S_TUNER: u32 = 2153010718; pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -835,7 +807,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1075603733; pub const VHOST_SET_LOG_FD: u32 = 2147790599; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; pub const PHN_GETREG: u32 = 3221778437; @@ -863,9 +834,7 @@ pub const MMTIMER_GETBITS: u32 = 536898820; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; pub const RTC_VL_READ: u32 = 1074032659; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 2149608728; @@ -888,7 +857,6 @@ pub const TUNSETTXFILTER: u32 = 2147767505; pub const TUNGETVNETLE: u32 = 1074025693; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; pub const I2OVALIDATE: u32 = 1074030856; @@ -908,8 +876,6 @@ pub const ATM_GETTYPE: u32 = 2148295044; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 536871498; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; pub const EVIOCGMASK: u32 = 1074808210; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -918,7 +884,6 @@ pub const GSMIOC_GETFIRST: u32 = 1074022148; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 2153251472; pub const IOC_OPAL_SAVE: u32 = 2165862620; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -944,13 +909,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; pub const PHN_SET_REGS: u32 = 2147774467; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148295011; pub const MTIOCPOS: u32 = 1074031875; pub const PMU_IOC_SLEEP: u32 = 536887808; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1023,7 +985,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148033012; pub const FDSETPRM: u32 = 2149319234; pub const ATM_GETSTATZ: u32 = 2148294993; pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; @@ -1034,7 +995,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 2147766278; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2147755014; pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; @@ -1067,12 +1027,9 @@ pub const UI_SET_ABSBIT: u32 = 2147767655; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; pub const USBDEVFS_REAPURB32: u32 = 2147767564; pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148295008; pub const ATM_SETLOOP: u32 = 2148294995; -pub const ATMSIGD_CTRL: u32 = 536895984; pub const CIOC_KERNEL_VERSION: u32 = 3221512970; pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; pub const SNAPSHOT_UNFREEZE: u32 = 536883970; @@ -1099,7 +1056,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 1074033754; pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148295055; pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; pub const PPPIOCGIDLE32: u32 = 1074295871; pub const VFIO_DEVICE_RESET: u32 = 536886127; @@ -1150,7 +1106,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; pub const I2OLCTGET: u32 = 3222038786; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148295010; pub const BLKCLOSEZONE: u32 = 2148536967; pub const SONET_GETFRSENSE: u32 = 1074159895; pub const UI_SET_EVBIT: u32 = 2147767652; @@ -1179,7 +1134,6 @@ pub const CEC_G_MODE: u32 = 1074028808; pub const USBDEVFS_RESETEP: u32 = 1074025731; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; @@ -1192,7 +1146,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; pub const UI_SET_PHYS: u32 = 2147767660; pub const FDWERRORGET: u32 = 1075315223; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 536898823; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; pub const SIOCGSTAMP_NEW: u32 = 1074825478; pub const RTC_WKALM_RD: u32 = 1076391952; @@ -1205,7 +1158,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 1074020869; pub const KCOV_ENABLE: u32 = 536896356; pub const BTRFS_IOC_CLONE: u32 = 2147783689; @@ -1213,8 +1165,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; pub const AGPIOC_ALLOCATE: u32 = 3221504262; pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; @@ -1231,8 +1181,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 1074026250; pub const ATM_GETLINKRATE: u32 = 2148295041; pub const RTC_WKALM_SET: u32 = 2150133775; pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; pub const NS_GET_OWNER_UID: u32 = 536917764; @@ -1240,7 +1188,6 @@ pub const VIDIOC_OVERLAY: u32 = 2147767822; pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148295046; pub const PHN_GET_REGS: u32 = 3221516290; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1260,7 +1207,6 @@ pub const BLKOPENZONE: u32 = 2148536966; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; pub const HIDIOCGVERSION: u32 = 1074022401; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1272,7 +1218,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148294962; pub const HIDIOCINITREPORT: u32 = 536889349; pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1316,7 +1261,6 @@ pub const SONYPI_IOCGBRT: u32 = 1073837568; pub const IOC_PR_RELEASE: u32 = 2148561098; pub const PPCLRIRQ: u32 = 1074032787; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; pub const HPET_IE_OFF: u32 = 536897538; pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; pub const SONET_SETFRAMING: u32 = 2147770645; @@ -1336,7 +1280,6 @@ pub const FDGETFDCSTAT: u32 = 1075839509; pub const VIDIOC_S_PRIORITY: u32 = 2147767876; pub const SNAPSHOT_FREEZE: u32 = 536883969; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148295010; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 1074288151; @@ -1348,7 +1291,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 2147775572; pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074032377; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; @@ -1359,7 +1301,6 @@ pub const WDIOC_KEEPALIVE: u32 = 1074026245; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; pub const EVIOCSREP: u32 = 2148025603; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; pub const HPET_DPI: u32 = 536897541; @@ -1379,7 +1320,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; pub const CHIOGELEM: u32 = 2154586896; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; pub const EVIOCSKEYCODE: u32 = 2148025604; @@ -1392,7 +1332,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; pub const VIDIOC_G_EDID: u32 = 3223606824; @@ -1413,7 +1352,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 2148295052; pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148295049; pub const PPFCONTROL: u32 = 2147643534; pub const SONYPI_IOCGFAN: u32 = 1073837578; pub const RTC_IRQP_SET: u32 = 2147774476; @@ -1426,11 +1364,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3225703953; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; pub const MMTIMER_GETFREQ: u32 = 1074031874; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2147791104; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1465,7 +1401,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; pub const RIO_CM_CHAN_BIND: u32 = 2148033285; pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; @@ -1494,6 +1429,17 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2147787300; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 536936193; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 536936194; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 536936195; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 536936196; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 536936197; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 536936198; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 536936199; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 536936200; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 536936201; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 536936202; +pub const PIDFD_GET_INFO: u32 = 3227057931; pub const TCGETS2: u32 = 1076655123; pub const TCSETS2: u32 = 2150396948; pub const TCSETSF2: u32 = 2150396950; diff --git a/src/powerpc/keyctl.rs b/src/powerpc/keyctl.rs new file mode 100644 index 000000000..8791652f7 --- /dev/null +++ b/src/powerpc/keyctl.rs @@ -0,0 +1,170 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_short; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/powerpc/landlock.rs b/src/powerpc/landlock.rs index 3260bd820..a62c7a132 100644 --- a/src/powerpc/landlock.rs +++ b/src/powerpc/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -60,6 +61,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -76,9 +80,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -95,8 +101,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/powerpc/loop_device.rs b/src/powerpc/loop_device.rs index d6181eaf3..d845173de 100644 --- a/src/powerpc/loop_device.rs +++ b/src/powerpc/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_ipc_pid_t = crate::ctypes::c_short; pub type __kernel_long_t = crate::ctypes::c_long; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc/mempolicy.rs b/src/powerpc/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/powerpc/mempolicy.rs +++ b/src/powerpc/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/powerpc/net.rs b/src/powerpc/net.rs index 23cf256f5..9c2295189 100644 --- a/src/powerpc/net.rs +++ b/src/powerpc/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -146,7 +150,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -183,7 +187,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -344,7 +347,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -371,7 +373,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -401,7 +402,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -454,6 +454,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -481,7 +489,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -498,7 +505,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -511,7 +517,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -529,7 +534,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1335,6 +1339,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2367,13 +2379,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2381,13 +2410,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2395,27 +2443,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2449,12 +2801,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2486,57 +2838,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2545,57 +2906,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2604,291 +2974,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -2897,194 +3312,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3093,109 +3664,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3204,161 +3792,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3367,109 +3980,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/powerpc/netlink.rs b/src/powerpc/netlink.rs index d9c95a480..e3b97b424 100644 --- a/src/powerpc/netlink.rs +++ b/src/powerpc/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -143,6 +144,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -748,6 +754,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -760,6 +767,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -901,6 +909,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -979,6 +988,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1049,6 +1060,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1097,6 +1109,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1168,6 +1181,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1242,6 +1256,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1296,6 +1313,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1314,6 +1332,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1958,7 +1979,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2301,11 +2332,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2324,7 +2381,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2388,6 +2447,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2440,7 +2509,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2577,7 +2649,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2602,6 +2676,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2649,7 +2740,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2734,6 +2832,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2981,7 +3080,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3032,7 +3133,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3046,7 +3148,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3422,7 +3527,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3625,6 +3736,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3708,13 +3847,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3726,7 +3874,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3743,7 +3893,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3763,7 +3943,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3804,7 +3994,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3946,6 +4148,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4015,7 +4240,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4113,7 +4340,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4171,7 +4408,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4343,6 +4581,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4361,7 +4606,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4477,7 +4723,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4567,7 +4816,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4595,7 +4845,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5383,22 +5636,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5416,16 +5669,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5458,16 +5714,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5509,7 +5765,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5532,6 +5788,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5547,20 +5809,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5595,6 +5863,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/powerpc/prctl.rs b/src/powerpc/prctl.rs index dc8f22bae..87478e62e 100644 --- a/src/powerpc/prctl.rs +++ b/src/powerpc/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -154,6 +155,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -274,3 +276,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/powerpc/ptrace.rs b/src/powerpc/ptrace.rs index fbf1a6809..56f8330e6 100644 --- a/src/powerpc/ptrace.rs +++ b/src/powerpc/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -395,6 +396,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/powerpc/system.rs b/src/powerpc/system.rs index 863dc9708..efd09cacb 100644 --- a/src/powerpc/system.rs +++ b/src/powerpc/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc/vm_sockets.rs b/src/powerpc/vm_sockets.rs index b54a4776b..3774eda5b 100644 --- a/src/powerpc/vm_sockets.rs +++ b/src/powerpc/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc/xdp.rs b/src/powerpc/xdp.rs index 17b4abf79..8b58dac7c 100644 --- a/src/powerpc/xdp.rs +++ b/src/powerpc/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc64/auxvec.rs b/src/powerpc64/auxvec.rs index f00be257c..902e8cf39 100644 --- a/src/powerpc64/auxvec.rs +++ b/src/powerpc64/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_DCACHEBSIZE: u32 = 19; pub const AT_ICACHEBSIZE: u32 = 20; diff --git a/src/powerpc64/bootparam.rs b/src/powerpc64/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/powerpc64/bootparam.rs +++ b/src/powerpc64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/powerpc64/btrfs.rs b/src/powerpc64/btrfs.rs index 3b8cd333c..ce75cca4c 100644 --- a/src/powerpc64/btrfs.rs +++ b/src/powerpc64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -179,10 +180,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -560,7 +561,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -747,7 +748,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, @@ -765,6 +766,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -918,7 +936,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1182,6 +1203,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1220,6 +1250,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1346,6 +1381,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1361,6 +1397,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1392,6 +1429,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1437,6 +1475,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1488,6 +1529,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1553,6 +1597,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1613,6 +1658,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1629,6 +1684,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1678,6 +1734,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1757,7 +1816,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1765,6 +1826,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1867,6 +1929,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/powerpc64/elf_uapi.rs b/src/powerpc64/elf_uapi.rs index b9b2d143a..96231bae5 100644 --- a/src/powerpc64/elf_uapi.rs +++ b/src/powerpc64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -630,6 +631,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/powerpc64/errno.rs b/src/powerpc64/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/powerpc64/errno.rs +++ b/src/powerpc64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/powerpc64/general.rs b/src/powerpc64/general.rs index 5cf4d958c..8914f0b1d 100644 --- a/src/powerpc64/general.rs +++ b/src/powerpc64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -163,6 +164,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -294,10 +302,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -990,6 +998,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1098,7 +1134,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1115,9 +1150,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1205,6 +1240,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4210688; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1277,6 +1313,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1288,6 +1326,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1447,6 +1486,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1463,6 +1503,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1494,6 +1535,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1539,6 +1581,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1590,6 +1635,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1606,7 +1654,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1620,6 +1670,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1635,6 +1697,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1761,6 +1825,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1951,7 +2017,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1973,6 +2044,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 64; pub const _NSIG_BPW: u32 = 64; pub const _NSIG_WORDS: u32 = 1; @@ -2799,6 +2871,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2911,6 +2985,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3041,6 +3141,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3150,13 +3256,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3164,13 +3287,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3178,24 +3320,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3231,161 +3672,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/powerpc64/if_arp.rs b/src/powerpc64/if_arp.rs index f9174defb..860447490 100644 --- a/src/powerpc64/if_arp.rs +++ b/src/powerpc64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -729,6 +730,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -737,6 +739,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -759,11 +762,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -793,6 +798,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1123,6 +1129,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1193,6 +1201,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1241,6 +1250,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1312,6 +1322,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1386,6 +1397,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1440,6 +1454,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1458,6 +1473,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1818,7 +1836,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1916,7 +1936,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1974,7 +2004,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2146,6 +2177,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2164,7 +2202,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2280,7 +2319,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2370,7 +2412,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2398,7 +2441,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/powerpc64/if_ether.rs b/src/powerpc64/if_ether.rs index 9f2fed32a..121fd50f5 100644 --- a/src/powerpc64/if_ether.rs +++ b/src/powerpc64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -110,6 +111,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -118,6 +120,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -140,11 +143,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -174,3 +179,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/powerpc64/if_packet.rs b/src/powerpc64/if_packet.rs index 1d5963b6e..d78696f7d 100644 --- a/src/powerpc64/if_packet.rs +++ b/src/powerpc64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc64/if_tun.rs b/src/powerpc64/if_tun.rs index 0e5a68202..547f9282d 100644 --- a/src/powerpc64/if_tun.rs +++ b/src/powerpc64/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -140,6 +141,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -148,6 +150,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -170,11 +173,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -204,6 +209,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/powerpc64/image.rs b/src/powerpc64/image.rs index bff15e373..c95e29d35 100644 --- a/src/powerpc64/image.rs +++ b/src/powerpc64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/powerpc64/io_uring.rs b/src/powerpc64/io_uring.rs index 87893ffe9..9901ed747 100644 --- a/src/powerpc64/io_uring.rs +++ b/src/powerpc64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -181,10 +185,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -328,6 +332,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -408,7 +499,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -556,6 +647,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -587,7 +693,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -613,7 +719,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -683,52 +790,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -850,6 +911,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -865,6 +927,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -896,6 +959,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -941,6 +1005,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -992,6 +1059,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1012,8 +1083,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1022,6 +1097,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1053,11 +1129,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1100,7 +1179,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1140,6 +1218,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1216,7 +1337,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1264,7 +1387,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1341,12 +1467,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1364,6 +1485,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1427,6 +1561,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1460,12 +1599,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/powerpc64/ioctl.rs b/src/powerpc64/ioctl.rs index 967604218..3374110c8 100644 --- a/src/powerpc64/ioctl.rs +++ b/src/powerpc64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 1074030207; pub const FIONBIO: u32 = 2147772030; @@ -263,8 +263,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 2148038146; pub const EXT4_IOC_GETRSVSZ: u32 = 1074292229; pub const EXT4_IOC_SETRSVSZ: u32 = 2148034054; pub const EXT4_IOC_GROUP_EXTEND: u32 = 2148034055; +pub const EXT4_IOC_GROUP_ADD: u32 = 2150131208; pub const EXT4_IOC_MIGRATE: u32 = 536897033; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 536897036; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 2148034064; pub const EXT4_IOC_SWAP_BOOT: u32 = 536897041; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 536897042; @@ -272,6 +274,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 536897064; pub const EXT4_IOC_GETSTATE: u32 = 2147771945; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 2147771947; +pub const EXT4_IOC_GETFSUUID: u32 = 1074292268; +pub const EXT4_IOC_SETFSUUID: u32 = 2148034092; pub const EXT4_IOC_SHUTDOWN: u32 = 1074026621; pub const EXT4_IOC32_GETVERSION: u32 = 1074030083; pub const EXT4_IOC32_SETVERSION: u32 = 2147771908; @@ -292,8 +296,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 2147767499; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 2148296213; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 1076915457; -pub const ENI_SETMULT: u32 = 2148557159; pub const RIO_GET_EVENT_MASK: u32 = 1074031886; pub const LIRC_GET_MAX_TIMEOUT: u32 = 1074030857; pub const USBDEVFS_CLAIMINTERFACE: u32 = 1074025743; @@ -330,19 +332,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 1074045957; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 2147767662; pub const TUNSETFILTEREBPF: u32 = 1074025697; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 2147773698; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 1074026244; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 2162732864; -pub const MGSL_IOCGTXIDLE: u32 = 536898819; -pub const ATM_ADDLECSADDR: u32 = 2148557198; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 1075839492; pub const HIDIOCAPPLICATION: u32 = 536889346; -pub const ENI_MEMDUMP: u32 = 2148557152; pub const PTP_SYS_OFFSET2: u32 = 2202025230; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 2147770881; @@ -352,10 +350,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 2148054600; pub const RTC_EPOCH_READ: u32 = 1074294797; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 2148557200; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 1074028820; -pub const ATMMPC_DATA: u32 = 536895961; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 1074555165; pub const HIDIOCGCOLLECTIONINDEX: u32 = 2149074960; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 2150151425; @@ -403,7 +399,6 @@ pub const FDCLRPRM: u32 = 536871489; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 536892694; pub const TUNSETVNETBE: u32 = 2147767518; -pub const ATMTCP_REMOVE: u32 = 536895887; pub const VHOST_VDPA_GET_CONFIG: u32 = 1074311027; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 1082130961; @@ -414,7 +409,6 @@ pub const MMTIMER_GETRES: u32 = 1074294017; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 1074032794; pub const VDUSE_DEV_GET_FEATURES: u32 = 1074299153; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -422,13 +416,11 @@ pub const NE_CREATE_VM: u32 = 1074310688; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 536933647; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 536917571; -pub const MGSL_IOCGXCTRL: u32 = 536898838; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 2150114049; pub const SONYPI_IOCGBLUE: u32 = 1073837576; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 536933655; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 536886116; -pub const IDT77105_GETSTATZ: u32 = 2148557107; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 1074308100; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -450,7 +442,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 1079000321; pub const FDGETMAXERRS: u32 = 1075053070; pub const TUNSETQUEUE: u32 = 2147767513; pub const PTP_ENABLE_PPS: u32 = 2147761412; -pub const SIOCSIFATMTCP: u32 = 536895872; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 1079795971; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 536914689; @@ -513,14 +504,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 536871514; pub const TUNSETOFFLOAD: u32 = 2147767504; pub const PPPIOCCONNECT: u32 = 2147775546; -pub const ATM_ADDADDR: u32 = 2148557192; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 536903955; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 1073852273; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 536898831; pub const TEE_IOC_SUPPL_SEND: u32 = 1074832391; -pub const ATMARPD_CTRL: u32 = 536895969; pub const UI_ABS_SETUP: u32 = 2149340420; pub const UI_DEV_DESTROY: u32 = 536892674; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -547,7 +535,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 536899599; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 2150657280; pub const RTC_SET_TIME: u32 = 2149871626; pub const VHOST_RESET_OWNER: u32 = 536915714; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 2164814056; @@ -573,18 +560,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 2149084424; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 536892695; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 536895970; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 536886128; pub const CCISS_GETHEARTBEAT: u32 = 1074020870; -pub const ATM_RSTADDR: u32 = 2148557191; pub const NBD_SET_SIZE: u32 = 536914690; pub const UDF_GETVOLIDENT: u32 = 1074293826; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 536898818; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 1073836161; -pub const MGSL_IOCTXENABLE: u32 = 536898820; pub const UDF_GETEASIZE: u32 = 1074031680; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 536915713; @@ -617,7 +600,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 2147755016; pub const UDMABUF_CREATE_LIST: u32 = 2148037955; pub const VHOST_SET_LOG_BASE: u32 = 2148052740; -pub const ZATM_GETPOOL: u32 = 2148557153; pub const BR2684_SETFILT: u32 = 2149343632; pub const RNDGETPOOL: u32 = 1074287106; pub const PPS_GETPARAMS: u32 = 1074294945; @@ -634,7 +616,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 536887822; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 2147774993; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 1155028802; pub const VFIO_EEH_PE_OP: u32 = 536886137; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -664,7 +645,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 1074030875; pub const STP_POLICY_ID_GET: u32 = 1074799873; pub const PPSETFLAGS: u32 = 2147774619; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 2147639554; -pub const ATMTCP_CREATE: u32 = 536895886; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 536916226; pub const PPPIOCGXASYNCMAP: u32 = 1075868752; pub const VHOST_SET_VRING_CALL: u32 = 2148052769; @@ -702,7 +682,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 1074299136; pub const RTC_RD_TIME: u32 = 1076129801; pub const FDMSGOFF: u32 = 536871494; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 1074555164; -pub const CAPI_GET_ERRCODE: u32 = 1073890081; pub const PCITEST_SET_IRQTYPE: u32 = 2147766280; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 2148036346; @@ -721,7 +700,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 2148035862; pub const VHOST_SET_VRING_NUM: u32 = 2148052752; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 2148035860; -pub const MGSL_IOCRXENABLE: u32 = 536898821; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 536872889; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 1074293014; pub const PPPIOCGL2TPSTATS: u32 = 1078490166; @@ -737,14 +715,12 @@ pub const CHIOPOSITION: u32 = 2148295427; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 2147772703; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 2148045843; pub const RIO_UNMAP_OUTBOUND: u32 = 2150133008; -pub const CAPI_CLR_FLAGS: u32 = 1074021157; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 2149065487; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 1074294520; pub const EVIOCSMASK: u32 = 2148550035; pub const BTRFS_IOC_FORGET_DEV: u32 = 2415956997; pub const CXL_MEM_QUERY_COMMANDS: u32 = 1074318849; pub const CEC_S_MODE: u32 = 2147770633; -pub const MGSL_IOCSIF: u32 = 536898826; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 2147774592; pub const VFIO_DEVICE_SET_IRQS: u32 = 536886126; @@ -768,12 +744,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 1073935637; pub const FW_CDEV_IOC_STOP_ISO: u32 = 2147754763; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 536895960; pub const PPPIOCSXASYNCMAP: u32 = 2149610575; pub const CHIOGSTATUS: u32 = 2148557576; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 1074031875; -pub const CAPI_SET_FLAGS: u32 = 1074021156; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 536886122; pub const VHOST_SET_MEM_TABLE: u32 = 2148052739; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 2148036344; @@ -786,7 +760,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 2415957002; pub const JSIOCGCORR: u32 = 1076128290; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 2148036622; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 2148557138; pub const SCIF_LISTEN: u32 = 2147775234; pub const NBD_CLEAR_QUE: u32 = 536914693; @@ -825,7 +798,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 1074048880; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 2153010718; pub const TUNGETVNETHDRSZ: u32 = 1074025687; -pub const CAPI_NCCI_GETUNIT: u32 = 1074021159; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 1074050631; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -835,7 +807,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 1076914453; pub const VHOST_SET_LOG_FD: u32 = 2147790599; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 536895843; pub const VIDIOC_DBG_S_REGISTER: u32 = 2151175759; pub const NILFS_IOCTL_RESIZE: u32 = 2148036235; pub const PHN_GETREG: u32 = 3221778437; @@ -863,9 +834,7 @@ pub const MMTIMER_GETBITS: u32 = 536898820; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 536886132; -pub const ATMARP_SETENTRY: u32 = 536895971; pub const CCISS_REVALIDVOLS: u32 = 536887818; -pub const MGSL_IOCLOOPTXDONE: u32 = 536898825; pub const RTC_VL_READ: u32 = 1074032659; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 2149608728; @@ -888,7 +857,6 @@ pub const TUNSETTXFILTER: u32 = 2147767505; pub const TUNGETVNETLE: u32 = 1074025693; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 536898836; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 1074288151; pub const I2OVALIDATE: u32 = 1074030856; @@ -908,8 +876,6 @@ pub const ATM_GETTYPE: u32 = 2148557188; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 536871498; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 1073890082; pub const EVIOCGMASK: u32 = 1074808210; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 1074304025; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -918,7 +884,6 @@ pub const GSMIOC_GETFIRST: u32 = 1074022148; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 2147754776; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 536933636; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 2155872912; pub const IOC_OPAL_SAVE: u32 = 2165862620; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -944,13 +909,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 1074025744; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 536917569; pub const PHN_SET_REGS: u32 = 2148036611; -pub const ATMLEC_DATA: u32 = 536895953; -pub const PPPOEIOCDFWD: u32 = 536916225; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 536883977; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 2148557155; pub const MTIOCPOS: u32 = 1074294019; pub const PMU_IOC_SLEEP: u32 = 536887808; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1023,7 +985,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 1074066702; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 1074041712; -pub const ATM_ADDPARTY: u32 = 2148557300; pub const FDSETPRM: u32 = 2149581378; pub const ATM_GETSTATZ: u32 = 2148557137; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1034,7 +995,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 2148028422; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 1074030866; pub const CHIOGPICKER: u32 = 1074029316; -pub const CAPI_NCCI_OPENCOUNT: u32 = 1074021158; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 2148017158; pub const IOC_OPAL_REVERT_TPR: u32 = 2164814050; @@ -1067,12 +1027,9 @@ pub const UI_SET_ABSBIT: u32 = 2147767655; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 1074050629; pub const USBDEVFS_REAPURB32: u32 = 2147767564; pub const BTRFS_IOC_TRANS_END: u32 = 536908807; -pub const CAPI_REGISTER: u32 = 2148287233; pub const F2FS_IOC_COMPRESS_FILE: u32 = 536933656; pub const USBDEVFS_DISCARDURB: u32 = 536892683; -pub const HE_GET_REG: u32 = 2148557152; pub const ATM_SETLOOP: u32 = 2148557139; -pub const ATMSIGD_CTRL: u32 = 536895984; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 2149618701; pub const SNAPSHOT_UNFREEZE: u32 = 536883970; @@ -1099,7 +1056,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 1074033754; pub const NILFS_IOCTL_SET_SUINFO: u32 = 2149084813; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 2148557199; pub const FW_CDEV_IOC_GET_SPEED: u32 = 536879889; pub const PPPIOCGIDLE32: u32 = 1074295871; pub const VFIO_DEVICE_RESET: u32 = 536886127; @@ -1150,7 +1106,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 536917572; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 2148558356; -pub const NS_SETBUFLEV: u32 = 2148557154; pub const BLKCLOSEZONE: u32 = 2148536967; pub const SONET_GETFRSENSE: u32 = 1074159895; pub const UI_SET_EVBIT: u32 = 2147767652; @@ -1179,7 +1134,6 @@ pub const CEC_G_MODE: u32 = 1074028808; pub const USBDEVFS_RESETEP: u32 = 1074025731; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 536902784; pub const USBDEVFS_ALLOC_STREAMS: u32 = 1074287900; -pub const MGSL_IOCSXCTRL: u32 = 536898837; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 536900660; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 536933634; @@ -1192,7 +1146,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 1074033171; pub const UI_SET_PHYS: u32 = 2148029804; pub const FDWERRORGET: u32 = 1076363799; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 536898823; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 2147792641; pub const SIOCGSTAMP_NEW: u32 = 1074825478; pub const RTC_WKALM_RD: u32 = 1076391952; @@ -1205,7 +1158,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 536886131; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 2148052771; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 2415957050; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 1074283013; pub const KCOV_ENABLE: u32 = 536896356; pub const BTRFS_IOC_CLONE: u32 = 2147783689; @@ -1213,8 +1165,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 2147754766; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 2149101091; -pub const MGSL_IOCTXABORT: u32 = 536898822; -pub const MGSL_IOCSGPIO: u32 = 2148560144; pub const LIRC_SET_REC_CARRIER: u32 = 2147772692; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 2148070666; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 536883972; @@ -1231,8 +1181,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 1074026250; pub const ATM_GETLINKRATE: u32 = 2148557185; pub const RTC_WKALM_SET: u32 = 2150133775; pub const VHOST_GET_BACKEND_FEATURES: u32 = 1074310950; -pub const ATMARP_ENCAP: u32 = 536895973; -pub const CAPI_GET_FLAGS: u32 = 1074021155; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 1074030872; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 2147792514; pub const NS_GET_OWNER_UID: u32 = 536917764; @@ -1240,7 +1188,6 @@ pub const VIDIOC_OVERLAY: u32 = 2147767822; pub const BTRFS_IOC_WAIT_SYNC: u32 = 2148045846; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 2148052756; -pub const ATM_GETADDR: u32 = 2148557190; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1260,7 +1207,6 @@ pub const BLKOPENZONE: u32 = 2148536966; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 536895968; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 536916225; pub const HIDIOCGVERSION: u32 = 1074022401; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1272,7 +1218,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 2167959787; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 2164544776; -pub const IDT77105_GETSTAT: u32 = 2148557106; pub const HIDIOCINITREPORT: u32 = 536889349; pub const VFIO_DEVICE_GET_INFO: u32 = 536886123; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1316,7 +1261,6 @@ pub const SONYPI_IOCGBRT: u32 = 1073837568; pub const IOC_PR_RELEASE: u32 = 2148561098; pub const PPCLRIRQ: u32 = 1074032787; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 1074030874; -pub const MGSL_IOCSXSYNC: u32 = 536898835; pub const HPET_IE_OFF: u32 = 536897538; pub const IOC_OPAL_ACTIVATE_USR: u32 = 2165338337; pub const SONET_SETFRAMING: u32 = 2147770645; @@ -1336,7 +1280,6 @@ pub const FDGETFDCSTAT: u32 = 1076363797; pub const VIDIOC_S_PRIORITY: u32 = 2147767876; pub const SNAPSHOT_FREEZE: u32 = 536883969; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 2148557154; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 2148035850; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 1074288151; @@ -1348,7 +1291,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 2147775572; pub const IOCTL_MEI_NOTIFY_SET: u32 = 2147764226; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 1077974061; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 2147808518; -pub const ATMLEC_CTRL: u32 = 536895952; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 1074294521; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 1073917814; @@ -1359,7 +1301,6 @@ pub const WDIOC_KEEPALIVE: u32 = 1074026245; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 536890949; pub const PTP_EXTTS_REQUEST2: u32 = 2148547851; pub const PCITEST_BAR: u32 = 536891393; -pub const MGSL_IOCGGPIO: u32 = 1074818321; pub const EVIOCSREP: u32 = 2148025603; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 536886125; pub const HPET_DPI: u32 = 536897541; @@ -1379,7 +1320,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 2150651474; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 536933633; pub const VIDIOC_G_OUTPUT: u32 = 1074026030; -pub const ATM_DROPPARTY: u32 = 2147770869; pub const CHIOGELEM: u32 = 2154586896; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 1078498361; pub const EVIOCSKEYCODE: u32 = 2148025604; @@ -1392,7 +1332,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 2166911203; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 2147754755; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 536893281; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 536886134; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 2148578048; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1413,7 +1352,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 2149085388; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 2148557196; pub const FW_CDEV_IOC_START_ISO: u32 = 2148541194; -pub const ATM_DELADDR: u32 = 2148557193; pub const PPFCONTROL: u32 = 2147643534; pub const SONYPI_IOCGFAN: u32 = 1073837578; pub const RTC_IRQP_SET: u32 = 2148036620; @@ -1426,11 +1364,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 1140888610; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 2148045850; -pub const ATMLEC_MCAST: u32 = 536895954; pub const MMTIMER_GETFREQ: u32 = 1074294018; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 2149871623; -pub const PPPOEIOCSFWD: u32 = 2148053248; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 1074030878; pub const FS_IOC_ENABLE_VERITY: u32 = 2155898501; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1465,7 +1401,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 536908846; pub const RIO_CM_CHAN_BIND: u32 = 2148033285; pub const HIDIOCGRDESC: u32 = 1342457858; -pub const MGSL_IOCGIF: u32 = 536898827; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 1074026242; @@ -1494,6 +1429,17 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 2149884502; pub const ACRN_IOCTL_RESET_VM: u32 = 536912405; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 536912436; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 2148049444; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 536936193; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 536936194; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 536936195; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 536936196; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 536936197; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 536936198; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 536936199; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 536936200; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 536936201; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 536936202; +pub const PIDFD_GET_INFO: u32 = 3227057931; pub const TCGETS2: u32 = 1076655123; pub const TCSETS2: u32 = 2150396948; pub const TCSETSF2: u32 = 2150396950; diff --git a/src/powerpc64/keyctl.rs b/src/powerpc64/keyctl.rs new file mode 100644 index 000000000..90381af27 --- /dev/null +++ b/src/powerpc64/keyctl.rs @@ -0,0 +1,172 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_long; +pub type __u64 = crate::ctypes::c_ulong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[repr(align(16))] +#[derive(Debug, Copy, Clone)] +pub struct __vector128 { +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/powerpc64/landlock.rs b/src/powerpc64/landlock.rs index 223905591..41197dcd9 100644 --- a/src/powerpc64/landlock.rs +++ b/src/powerpc64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -62,6 +63,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -78,9 +82,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -97,8 +103,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/powerpc64/loop_device.rs b/src/powerpc64/loop_device.rs index 7eb429dc3..552b448ff 100644 --- a/src/powerpc64/loop_device.rs +++ b/src/powerpc64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_old_dev_t = crate::ctypes::c_ulong; pub type __kernel_long_t = crate::ctypes::c_long; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc64/mempolicy.rs b/src/powerpc64/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/powerpc64/mempolicy.rs +++ b/src/powerpc64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/powerpc64/net.rs b/src/powerpc64/net.rs index 261208a42..9ec678601 100644 --- a/src/powerpc64/net.rs +++ b/src/powerpc64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -148,7 +152,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -185,7 +189,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -346,7 +349,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -373,7 +375,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -403,7 +404,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -456,6 +456,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -482,7 +490,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -498,7 +505,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -511,7 +517,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -529,7 +534,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1343,6 +1347,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2375,13 +2387,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2389,13 +2418,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2403,27 +2451,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2457,12 +2809,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2494,57 +2846,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2553,57 +2914,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2612,291 +2982,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -2905,194 +3320,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3101,109 +3672,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3212,161 +3800,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3375,109 +3988,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/powerpc64/netlink.rs b/src/powerpc64/netlink.rs index a66c3e896..59a031249 100644 --- a/src/powerpc64/netlink.rs +++ b/src/powerpc64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -145,6 +146,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -750,6 +756,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -762,6 +769,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -903,6 +911,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -981,6 +990,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1051,6 +1062,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1099,6 +1111,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1170,6 +1183,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1244,6 +1258,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1298,6 +1315,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1316,6 +1334,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1960,7 +1981,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2303,11 +2334,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2326,7 +2383,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2390,6 +2449,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2442,7 +2511,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2579,7 +2651,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2604,6 +2678,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2651,7 +2742,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2736,6 +2834,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2983,7 +3082,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3034,7 +3135,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3048,7 +3150,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3424,7 +3529,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3627,6 +3738,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3710,13 +3849,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3728,7 +3876,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3745,7 +3895,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3765,7 +3945,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3806,7 +3996,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3948,6 +4150,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4017,7 +4242,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4115,7 +4342,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4173,7 +4410,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4345,6 +4583,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4363,7 +4608,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4479,7 +4725,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4569,7 +4818,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4597,7 +4847,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5385,22 +5638,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5418,16 +5671,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5460,16 +5716,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5511,7 +5767,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5534,6 +5790,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5549,20 +5811,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5597,6 +5865,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/powerpc64/prctl.rs b/src/powerpc64/prctl.rs index 71247ba84..095472aa8 100644 --- a/src/powerpc64/prctl.rs +++ b/src/powerpc64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -156,6 +157,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -276,3 +278,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/powerpc64/ptrace.rs b/src/powerpc64/ptrace.rs index 9e4fc021e..2a9b3de69 100644 --- a/src/powerpc64/ptrace.rs +++ b/src/powerpc64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -397,6 +398,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/powerpc64/system.rs b/src/powerpc64/system.rs index d2df177c4..4dc15a8b5 100644 --- a/src/powerpc64/system.rs +++ b/src/powerpc64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc64/vm_sockets.rs b/src/powerpc64/vm_sockets.rs index 93d1629ef..7c9b7b9f7 100644 --- a/src/powerpc64/vm_sockets.rs +++ b/src/powerpc64/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/powerpc64/xdp.rs b/src/powerpc64/xdp.rs index 1d509520c..72347f351 100644 --- a/src/powerpc64/xdp.rs +++ b/src/powerpc64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv32/auxvec.rs b/src/riscv32/auxvec.rs index e28321d3a..bd7767aa3 100644 --- a/src/riscv32/auxvec.rs +++ b/src/riscv32/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_L1I_CACHESIZE: u32 = 40; diff --git a/src/riscv32/bootparam.rs b/src/riscv32/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/riscv32/bootparam.rs +++ b/src/riscv32/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/riscv32/btrfs.rs b/src/riscv32/btrfs.rs index bf523af31..02cb561ec 100644 --- a/src/riscv32/btrfs.rs +++ b/src/riscv32/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1338,6 +1373,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1353,6 +1389,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1384,6 +1421,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1429,6 +1467,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1480,6 +1521,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1545,6 +1589,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1605,6 +1650,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1621,6 +1676,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1670,6 +1726,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1749,7 +1808,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1757,6 +1818,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1859,6 +1921,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/riscv32/elf_uapi.rs b/src/riscv32/elf_uapi.rs index 9a42c19d3..5b7a87084 100644 --- a/src/riscv32/elf_uapi.rs +++ b/src/riscv32/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -622,6 +623,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/riscv32/errno.rs b/src/riscv32/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/riscv32/errno.rs +++ b/src/riscv32/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/riscv32/general.rs b/src/riscv32/general.rs index 9ccb390b8..e97372a5f 100644 --- a/src/riscv32/general.rs +++ b/src/riscv32/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -154,6 +155,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -285,10 +293,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -953,6 +961,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1063,7 +1099,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1079,9 +1114,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1169,6 +1204,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1244,6 +1280,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1255,6 +1293,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1414,6 +1453,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1430,6 +1470,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1461,6 +1502,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1506,6 +1548,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1557,6 +1602,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1573,7 +1621,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1587,6 +1637,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1602,6 +1664,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1728,6 +1792,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1917,7 +1983,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1939,6 +2010,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 64; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2644,6 +2716,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2756,6 +2830,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2886,6 +2986,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -2995,13 +3101,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3009,13 +3132,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3023,24 +3165,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3076,161 +3517,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/riscv32/if_arp.rs b/src/riscv32/if_arp.rs index c49c80cef..7fd8467be 100644 --- a/src/riscv32/if_arp.rs +++ b/src/riscv32/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -721,6 +722,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -729,6 +731,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -751,11 +754,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -785,6 +790,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1115,6 +1121,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1185,6 +1193,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1233,6 +1242,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1304,6 +1314,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1378,6 +1389,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1432,6 +1446,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1450,6 +1465,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1810,7 +1828,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1908,7 +1928,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1966,7 +1996,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2138,6 +2169,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2156,7 +2194,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2272,7 +2311,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2362,7 +2404,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2390,7 +2433,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/riscv32/if_ether.rs b/src/riscv32/if_ether.rs index 37b557031..bd28b4bd8 100644 --- a/src/riscv32/if_ether.rs +++ b/src/riscv32/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -102,6 +103,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -110,6 +112,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -132,11 +135,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -166,3 +171,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/riscv32/if_packet.rs b/src/riscv32/if_packet.rs index f5f2897b5..919deefad 100644 --- a/src/riscv32/if_packet.rs +++ b/src/riscv32/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv32/if_tun.rs b/src/riscv32/if_tun.rs index a2929007e..1330de1ef 100644 --- a/src/riscv32/if_tun.rs +++ b/src/riscv32/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -132,6 +133,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -140,6 +142,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -162,11 +165,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -196,6 +201,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/riscv32/image.rs b/src/riscv32/image.rs index bff15e373..c95e29d35 100644 --- a/src/riscv32/image.rs +++ b/src/riscv32/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/riscv32/io_uring.rs b/src/riscv32/io_uring.rs index b7ed64c39..fa10859c1 100644 --- a/src/riscv32/io_uring.rs +++ b/src/riscv32/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -49,6 +50,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -173,10 +177,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +324,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -400,7 +491,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -548,6 +639,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -579,7 +685,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -605,7 +711,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -675,52 +782,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -842,6 +903,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -857,6 +919,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -888,6 +951,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -933,6 +997,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -984,6 +1051,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1004,8 +1075,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1014,6 +1089,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1045,11 +1121,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1092,7 +1171,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1132,6 +1210,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1208,7 +1329,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1256,7 +1379,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1333,12 +1459,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1356,6 +1477,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1419,6 +1553,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1452,12 +1591,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/riscv32/ioctl.rs b/src/riscv32/ioctl.rs index 7d37c95d6..618fcda9c 100644 --- a/src/riscv32/ioctl.rs +++ b/src/riscv32/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076389384; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2149608705; -pub const ENI_SETMULT: u32 = 1074553191; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222036833; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074553230; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149319172; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074553184; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2147774477; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074553232; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2153251345; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2147773697; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3223087369; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074553139; pub const I2OPARMSET: u32 = 3222825219; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074553224; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1075866880; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074553223; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2147773506; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074553185; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2147774625; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074291464; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234616836; pub const RTC_EPOCH_SET: u32 = 1074032654; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074553170; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -819,7 +792,6 @@ pub const SWITCHTEC_IOCTL_FLASH_PART_INFO: u32 = 3222296385; pub const FW_CDEV_IOC_SEND_PHY_PACKET: u32 = 3222807317; pub const NBD_SET_FLAGS: u32 = 43786; pub const VFIO_DEVICE_GET_REGION_INFO: u32 = 15212; -pub const REISERFS_IOC_UNPACK: u32 = 1074056449; pub const FW_CDEV_IOC_REMOVE_DESCRIPTOR: u32 = 1074012935; pub const RIO_SET_EVENT_MASK: u32 = 1074031885; pub const SNAPSHOT_ALLOC_SWAP_PAGE: u32 = 2148021012; @@ -831,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3225703951; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -841,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -869,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -894,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -914,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074553220; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -924,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1079509648; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -950,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074032643; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074553187; pub const MTIOCPOS: u32 = 2147773699; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1029,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074291188; pub const FDSETPRM: u32 = 1075577410; pub const ATM_GETSTATZ: u32 = 1074553169; pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; @@ -1040,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074024454; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1073,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074553184; pub const ATM_SETLOOP: u32 = 1074553171; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221512970; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1105,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074553231; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1156,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222038786; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074553186; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1185,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1198,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074025836; pub const FDWERRORGET: u32 = 2149057047; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1211,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1219,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221504262; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1237,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074553217; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1246,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074553222; pub const PHN_GET_REGS: u32 = 3221516290; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1266,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1278,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074553138; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1322,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1342,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2149581333; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074553186; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1354,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1365,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1385,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1398,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223606824; @@ -1419,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074553228; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074553225; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074032652; @@ -1432,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3225703953; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2147773698; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074049280; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1471,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1500,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/riscv32/keyctl.rs b/src/riscv32/keyctl.rs new file mode 100644 index 000000000..9b9b7908a --- /dev/null +++ b/src/riscv32/keyctl.rs @@ -0,0 +1,164 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/riscv32/landlock.rs b/src/riscv32/landlock.rs index 003e937b4..8fb2dab84 100644 --- a/src/riscv32/landlock.rs +++ b/src/riscv32/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -70,9 +74,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -89,8 +95,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/riscv32/loop_device.rs b/src/riscv32/loop_device.rs index ea21927f7..e32b7f411 100644 --- a/src/riscv32/loop_device.rs +++ b/src/riscv32/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv32/mempolicy.rs b/src/riscv32/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/riscv32/mempolicy.rs +++ b/src/riscv32/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/riscv32/net.rs b/src/riscv32/net.rs index 5b47bb5c5..d7b1bd34a 100644 --- a/src/riscv32/net.rs +++ b/src/riscv32/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1329,6 +1333,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2361,13 +2373,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2375,13 +2404,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2389,27 +2437,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2443,12 +2795,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2480,57 +2832,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2539,57 +2900,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2598,291 +2968,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2891,194 +3306,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3087,109 +3658,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3198,161 +3786,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3361,109 +3974,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/riscv32/netlink.rs b/src/riscv32/netlink.rs index 54bbc5639..59bced4fe 100644 --- a/src/riscv32/netlink.rs +++ b/src/riscv32/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -742,6 +748,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -754,6 +761,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -895,6 +903,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -973,6 +982,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1043,6 +1054,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1091,6 +1103,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1162,6 +1175,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1236,6 +1250,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1290,6 +1307,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1308,6 +1326,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1952,7 +1973,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2295,11 +2326,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2318,7 +2375,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2382,6 +2441,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2434,7 +2503,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2571,7 +2643,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2596,6 +2670,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2643,7 +2734,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2728,6 +2826,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2975,7 +3074,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3026,7 +3127,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3040,7 +3142,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3416,7 +3521,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3619,6 +3730,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3702,13 +3841,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3720,7 +3868,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3737,7 +3887,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3757,7 +3937,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3798,7 +3988,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3940,6 +4142,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4009,7 +4234,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4107,7 +4334,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4165,7 +4402,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4337,6 +4575,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4355,7 +4600,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4471,7 +4717,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4561,7 +4810,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4589,7 +4839,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5377,22 +5630,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5410,16 +5663,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5452,16 +5708,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5503,7 +5759,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5526,6 +5782,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5541,20 +5803,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5589,6 +5857,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/riscv32/prctl.rs b/src/riscv32/prctl.rs index ff251ffad..28a69b9d7 100644 --- a/src/riscv32/prctl.rs +++ b/src/riscv32/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -148,6 +149,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -268,3 +270,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/riscv32/ptrace.rs b/src/riscv32/ptrace.rs index 7af625796..5a6069478 100644 --- a/src/riscv32/ptrace.rs +++ b/src/riscv32/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -260,6 +261,22 @@ pub vreg: __IncompleteArrayField, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct __sc_riscv_cfi_state { +pub ss_ptr: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __cfi_status { +pub cfi_state: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_cfi_state { +pub cfi_status: __cfi_status, +pub shstk_ptr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct seccomp_data { pub nr: crate::ctypes::c_int, pub arch: __u32, @@ -440,6 +457,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -781,6 +800,12 @@ pub const PTRACE_GETFDPIC: u32 = 33; pub const PTRACE_GETFDPIC_EXEC: u32 = 0; pub const PTRACE_GETFDPIC_INTERP: u32 = 1; pub const RISCV_MAX_VLENB: u32 = 8192; +pub const PTRACE_CFI_BRANCH_LANDING_PAD_EN_BIT: u32 = 0; +pub const PTRACE_CFI_BRANCH_LANDING_PAD_LOCK_BIT: u32 = 1; +pub const PTRACE_CFI_BRANCH_EXPECTED_LANDING_PAD_BIT: u32 = 2; +pub const PTRACE_CFI_SHADOW_STACK_EN_BIT: u32 = 3; +pub const PTRACE_CFI_SHADOW_STACK_LOCK_BIT: u32 = 4; +pub const PTRACE_CFI_SHADOW_STACK_PTR_BIT: u32 = 5; pub const SECCOMP_MODE_DISABLED: u32 = 0; pub const SECCOMP_MODE_STRICT: u32 = 1; pub const SECCOMP_MODE_FILTER: u32 = 2; diff --git a/src/riscv32/system.rs b/src/riscv32/system.rs index 7ed06a505..65795dd7d 100644 --- a/src/riscv32/system.rs +++ b/src/riscv32/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv32/vm_sockets.rs b/src/riscv32/vm_sockets.rs index 5d0bb47dd..f55f5fa41 100644 --- a/src/riscv32/vm_sockets.rs +++ b/src/riscv32/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv32/xdp.rs b/src/riscv32/xdp.rs index 4eee12505..c6c30ecda 100644 --- a/src/riscv32/xdp.rs +++ b/src/riscv32/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv64/auxvec.rs b/src/riscv64/auxvec.rs index e28321d3a..bd7767aa3 100644 --- a/src/riscv64/auxvec.rs +++ b/src/riscv64/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_L1I_CACHESIZE: u32 = 40; diff --git a/src/riscv64/bootparam.rs b/src/riscv64/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/riscv64/bootparam.rs +++ b/src/riscv64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/riscv64/btrfs.rs b/src/riscv64/btrfs.rs index a64f6c3c0..4f59e9b69 100644 --- a/src/riscv64/btrfs.rs +++ b/src/riscv64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -554,7 +555,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -741,7 +742,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, @@ -759,6 +760,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -912,7 +930,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1176,6 +1197,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1214,6 +1244,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1340,6 +1375,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1355,6 +1391,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1386,6 +1423,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1431,6 +1469,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1482,6 +1523,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1547,6 +1591,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1607,6 +1652,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1623,6 +1678,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1672,6 +1728,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1751,7 +1810,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1759,6 +1820,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1861,6 +1923,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/riscv64/elf_uapi.rs b/src/riscv64/elf_uapi.rs index 595b774c4..73481751e 100644 --- a/src/riscv64/elf_uapi.rs +++ b/src/riscv64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -624,6 +625,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/riscv64/errno.rs b/src/riscv64/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/riscv64/errno.rs +++ b/src/riscv64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/riscv64/general.rs b/src/riscv64/general.rs index 59632f6ae..da1270417 100644 --- a/src/riscv64/general.rs +++ b/src/riscv64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -156,6 +157,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -287,10 +295,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -955,6 +963,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1041,7 +1077,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1057,9 +1092,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1147,6 +1182,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1219,6 +1255,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1230,6 +1268,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1389,6 +1428,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1405,6 +1445,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1436,6 +1477,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1481,6 +1523,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1532,6 +1577,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1548,7 +1596,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1562,6 +1612,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1577,6 +1639,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1703,6 +1767,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1892,7 +1958,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1914,6 +1985,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const _NSIG: u32 = 64; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2629,6 +2701,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2741,6 +2815,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2871,6 +2971,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -2980,13 +3086,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2994,13 +3117,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3008,24 +3150,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3061,161 +3502,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/riscv64/if_arp.rs b/src/riscv64/if_arp.rs index 0c2cbf499..bb5d4cd60 100644 --- a/src/riscv64/if_arp.rs +++ b/src/riscv64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -723,6 +724,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -731,6 +733,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -753,11 +756,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -787,6 +792,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1117,6 +1123,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1187,6 +1195,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1235,6 +1244,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1306,6 +1316,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1380,6 +1391,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1434,6 +1448,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1452,6 +1467,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1812,7 +1830,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1910,7 +1930,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1968,7 +1998,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2140,6 +2171,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2158,7 +2196,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2274,7 +2313,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2364,7 +2406,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2392,7 +2435,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/riscv64/if_ether.rs b/src/riscv64/if_ether.rs index 12173e635..15a333698 100644 --- a/src/riscv64/if_ether.rs +++ b/src/riscv64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -104,6 +105,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -112,6 +114,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -134,11 +137,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -168,3 +173,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/riscv64/if_packet.rs b/src/riscv64/if_packet.rs index 4b64e0204..8acd09e1f 100644 --- a/src/riscv64/if_packet.rs +++ b/src/riscv64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv64/if_tun.rs b/src/riscv64/if_tun.rs index b36990b1a..27388d1c0 100644 --- a/src/riscv64/if_tun.rs +++ b/src/riscv64/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -134,6 +135,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -142,6 +144,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -164,11 +167,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -198,6 +203,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/riscv64/image.rs b/src/riscv64/image.rs index bff15e373..c95e29d35 100644 --- a/src/riscv64/image.rs +++ b/src/riscv64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/riscv64/io_uring.rs b/src/riscv64/io_uring.rs index 0fefed607..5d986d5b5 100644 --- a/src/riscv64/io_uring.rs +++ b/src/riscv64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -175,10 +179,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -322,6 +326,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -402,7 +493,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -550,6 +641,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -581,7 +687,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -607,7 +713,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -677,52 +784,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -844,6 +905,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -859,6 +921,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -890,6 +953,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -935,6 +999,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -986,6 +1053,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1006,8 +1077,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1016,6 +1091,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1047,11 +1123,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1094,7 +1173,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1134,6 +1212,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1210,7 +1331,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1258,7 +1381,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1335,12 +1461,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1358,6 +1479,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1421,6 +1555,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1454,12 +1593,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/riscv64/ioctl.rs b/src/riscv64/ioctl.rs index b4c68a59a..c4039b7b9 100644 --- a/src/riscv64/ioctl.rs +++ b/src/riscv64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076389384; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149581316; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2148036621; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2155872785; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2148035841; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2148035650; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2148036769; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074815752; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074815314; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -830,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -840,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -868,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -893,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -913,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074815364; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -923,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1082131088; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -949,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; pub const MTIOCPOS: u32 = 2148035843; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1028,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; pub const FDSETPRM: u32 = 1075839554; pub const ATM_GETSTATZ: u32 = 1074815313; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1039,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074286598; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1072,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1104,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1155,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1184,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1197,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074287980; pub const FDWERRORGET: u32 = 2150105623; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1210,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1218,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1236,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074815361; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1245,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1265,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1277,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1321,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1341,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2150105621; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1353,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1364,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1384,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1397,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1418,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074815372; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074294796; @@ -1431,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2148035842; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1470,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1499,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/riscv64/keyctl.rs b/src/riscv64/keyctl.rs new file mode 100644 index 000000000..b65e51d4f --- /dev/null +++ b/src/riscv64/keyctl.rs @@ -0,0 +1,166 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/riscv64/landlock.rs b/src/riscv64/landlock.rs index b4adb6c11..922d8b0a4 100644 --- a/src/riscv64/landlock.rs +++ b/src/riscv64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -56,6 +57,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -72,9 +76,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -91,8 +97,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/riscv64/loop_device.rs b/src/riscv64/loop_device.rs index 5e1a2291b..5978602e2 100644 --- a/src/riscv64/loop_device.rs +++ b/src/riscv64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_long_t = crate::ctypes::c_long; pub type __kernel_ulong_t = crate::ctypes::c_ulong; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv64/mempolicy.rs b/src/riscv64/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/riscv64/mempolicy.rs +++ b/src/riscv64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/riscv64/net.rs b/src/riscv64/net.rs index 276f8de63..73605bf73 100644 --- a/src/riscv64/net.rs +++ b/src/riscv64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -142,7 +146,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -179,7 +183,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -340,7 +343,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -367,7 +369,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -397,7 +398,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -450,6 +450,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -476,7 +484,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1337,6 +1341,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2369,13 +2381,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2383,13 +2412,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2397,27 +2445,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2451,12 +2803,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2488,57 +2840,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2547,57 +2908,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2606,291 +2976,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2899,194 +3314,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3095,109 +3666,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3206,161 +3794,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3369,109 +3982,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/riscv64/netlink.rs b/src/riscv64/netlink.rs index 736004e6c..0bf3a0e0c 100644 --- a/src/riscv64/netlink.rs +++ b/src/riscv64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -139,6 +140,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -744,6 +750,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -756,6 +763,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -897,6 +905,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -975,6 +984,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1045,6 +1056,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1093,6 +1105,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1164,6 +1177,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1238,6 +1252,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1292,6 +1309,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1310,6 +1328,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1954,7 +1975,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2297,11 +2328,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2320,7 +2377,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2384,6 +2443,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2436,7 +2505,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2573,7 +2645,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2598,6 +2672,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2645,7 +2736,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2730,6 +2828,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2977,7 +3076,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3028,7 +3129,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3042,7 +3144,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3418,7 +3523,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3621,6 +3732,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3704,13 +3843,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3722,7 +3870,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3739,7 +3889,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3759,7 +3939,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3800,7 +3990,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3942,6 +4144,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4011,7 +4236,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4109,7 +4336,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4167,7 +4404,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4339,6 +4577,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4357,7 +4602,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4473,7 +4719,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4563,7 +4812,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4591,7 +4841,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5379,22 +5632,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5412,16 +5665,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5454,16 +5710,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5505,7 +5761,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5528,6 +5784,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5543,20 +5805,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5591,6 +5859,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/riscv64/prctl.rs b/src/riscv64/prctl.rs index bc9d4fcc0..99da85dd2 100644 --- a/src/riscv64/prctl.rs +++ b/src/riscv64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -150,6 +151,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -270,3 +272,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/riscv64/ptrace.rs b/src/riscv64/ptrace.rs index fd719a12d..3c63bbc6f 100644 --- a/src/riscv64/ptrace.rs +++ b/src/riscv64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -262,6 +263,22 @@ pub vreg: __IncompleteArrayField, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct __sc_riscv_cfi_state { +pub ss_ptr: crate::ctypes::c_ulong, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __cfi_status { +pub cfi_state: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct user_cfi_state { +pub cfi_status: __cfi_status, +pub shstk_ptr: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct seccomp_data { pub nr: crate::ctypes::c_int, pub arch: __u32, @@ -442,6 +459,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -783,6 +802,12 @@ pub const PTRACE_GETFDPIC: u32 = 33; pub const PTRACE_GETFDPIC_EXEC: u32 = 0; pub const PTRACE_GETFDPIC_INTERP: u32 = 1; pub const RISCV_MAX_VLENB: u32 = 8192; +pub const PTRACE_CFI_BRANCH_LANDING_PAD_EN_BIT: u32 = 0; +pub const PTRACE_CFI_BRANCH_LANDING_PAD_LOCK_BIT: u32 = 1; +pub const PTRACE_CFI_BRANCH_EXPECTED_LANDING_PAD_BIT: u32 = 2; +pub const PTRACE_CFI_SHADOW_STACK_EN_BIT: u32 = 3; +pub const PTRACE_CFI_SHADOW_STACK_LOCK_BIT: u32 = 4; +pub const PTRACE_CFI_SHADOW_STACK_PTR_BIT: u32 = 5; pub const SECCOMP_MODE_DISABLED: u32 = 0; pub const SECCOMP_MODE_STRICT: u32 = 1; pub const SECCOMP_MODE_FILTER: u32 = 2; diff --git a/src/riscv64/system.rs b/src/riscv64/system.rs index 67f1be19f..375d1ab62 100644 --- a/src/riscv64/system.rs +++ b/src/riscv64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv64/vm_sockets.rs b/src/riscv64/vm_sockets.rs index 9e7323834..f992c4a7a 100644 --- a/src/riscv64/vm_sockets.rs +++ b/src/riscv64/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/riscv64/xdp.rs b/src/riscv64/xdp.rs index 6f3c9097a..76b1e0d38 100644 --- a/src/riscv64/xdp.rs +++ b/src/riscv64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/s390x/auxvec.rs b/src/s390x/auxvec.rs index 0ea172da5..4143eb739 100644 --- a/src/s390x/auxvec.rs +++ b/src/s390x/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_VECTOR_SIZE_ARCH: u32 = 1; diff --git a/src/s390x/bootparam.rs b/src/s390x/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/s390x/bootparam.rs +++ b/src/s390x/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/s390x/btrfs.rs b/src/s390x/btrfs.rs index b37fa3053..fcd6e88cc 100644 --- a/src/s390x/btrfs.rs +++ b/src/s390x/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -187,10 +188,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -568,7 +569,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -755,7 +756,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, @@ -773,6 +774,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -926,7 +944,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1190,6 +1211,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1228,6 +1258,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1354,6 +1389,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1369,6 +1405,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1400,6 +1437,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1445,6 +1483,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1496,6 +1537,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1561,6 +1605,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1621,6 +1666,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1637,6 +1692,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1686,6 +1742,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1765,7 +1824,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1773,6 +1834,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1881,6 +1943,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/s390x/elf_uapi.rs b/src/s390x/elf_uapi.rs index f2006a8e7..bc7d86a02 100644 --- a/src/s390x/elf_uapi.rs +++ b/src/s390x/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -638,6 +639,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/s390x/errno.rs b/src/s390x/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/s390x/errno.rs +++ b/src/s390x/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/s390x/general.rs b/src/s390x/general.rs index 196d4a587..2a8195ae1 100644 --- a/src/s390x/general.rs +++ b/src/s390x/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -34,6 +34,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,6 +172,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -302,10 +310,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -627,7 +635,7 @@ pub tz_minuteswest: crate::ctypes::c_int, pub tz_dsttime: crate::ctypes::c_int, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Debug)] pub struct pt_regs { _unused: [u8; 0], } @@ -971,6 +979,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1039,7 +1075,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1056,9 +1091,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1146,6 +1181,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1218,6 +1254,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1229,6 +1267,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1388,6 +1427,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1404,6 +1444,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1435,6 +1476,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1480,6 +1522,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1531,6 +1576,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1547,7 +1595,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1561,6 +1611,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1576,6 +1638,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1702,6 +1766,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1891,7 +1957,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1913,6 +1984,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const ITIMER_REAL: u32 = 0; pub const ITIMER_VIRTUAL: u32 = 1; pub const ITIMER_PROF: u32 = 2; @@ -2690,6 +2762,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2802,6 +2876,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2939,6 +3039,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigaction__bindgen_ty_1 { pub _sa_handler: __sighandler_t, pub _sa_sigaction: ::core::option::Option, @@ -3054,13 +3160,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3068,13 +3191,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3082,24 +3224,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3135,161 +3576,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/s390x/if_arp.rs b/src/s390x/if_arp.rs index 7e3208f57..32670e8ef 100644 --- a/src/s390x/if_arp.rs +++ b/src/s390x/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -737,6 +738,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -745,6 +747,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -767,11 +770,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -801,6 +806,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1131,6 +1137,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1201,6 +1209,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1249,6 +1258,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1320,6 +1330,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1394,6 +1405,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1448,6 +1462,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1466,6 +1481,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1826,7 +1844,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1924,7 +1944,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1982,7 +2012,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2154,6 +2185,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2172,7 +2210,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2288,7 +2327,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2378,7 +2420,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2406,7 +2449,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/s390x/if_ether.rs b/src/s390x/if_ether.rs index 1ccd26a87..fdd2b79ca 100644 --- a/src/s390x/if_ether.rs +++ b/src/s390x/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -118,6 +119,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -126,6 +128,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -148,11 +151,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -182,6 +187,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; #[repr(C)] #[derive(Copy, Clone)] pub union __vector128__bindgen_ty_1 { diff --git a/src/s390x/if_packet.rs b/src/s390x/if_packet.rs index ce94d0a28..258bf2026 100644 --- a/src/s390x/if_packet.rs +++ b/src/s390x/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/s390x/if_tun.rs b/src/s390x/if_tun.rs index 0e29f4468..6e05e38fb 100644 --- a/src/s390x/if_tun.rs +++ b/src/s390x/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -148,6 +149,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -156,6 +158,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -178,11 +181,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -212,6 +217,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/s390x/image.rs b/src/s390x/image.rs index bff15e373..c95e29d35 100644 --- a/src/s390x/image.rs +++ b/src/s390x/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/s390x/io_uring.rs b/src/s390x/io_uring.rs index 9ff9df5b6..8cfd6d7b1 100644 --- a/src/s390x/io_uring.rs +++ b/src/s390x/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -189,10 +193,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -336,6 +340,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -416,7 +507,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -564,6 +655,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -595,7 +701,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -621,7 +727,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -691,52 +798,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -858,6 +919,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -873,6 +935,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -904,6 +967,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -949,6 +1013,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1000,6 +1067,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1020,8 +1091,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1030,6 +1105,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1061,11 +1137,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1108,7 +1187,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1148,6 +1226,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1224,7 +1345,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1272,7 +1395,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1349,12 +1475,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1378,6 +1499,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1441,6 +1575,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1474,12 +1613,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/s390x/ioctl.rs b/src/s390x/ioctl.rs index 6b91e3588..0eda8d025 100644 --- a/src/s390x/ioctl.rs +++ b/src/s390x/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076389384; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149581316; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2148036621; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2155872785; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2148035841; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2148035650; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2148036769; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074815752; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074815314; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -830,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -840,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -868,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -893,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -913,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074815364; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -923,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1082131088; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -949,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; pub const MTIOCPOS: u32 = 2148035843; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1028,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; pub const FDSETPRM: u32 = 1075839554; pub const ATM_GETSTATZ: u32 = 1074815313; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1039,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074286598; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1072,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1104,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1155,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1184,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1197,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074287980; pub const FDWERRORGET: u32 = 2150105623; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1210,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1218,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1236,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074815361; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1245,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1265,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1277,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1321,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1341,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2150105621; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1353,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1364,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1384,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1397,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1418,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074815372; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074294796; @@ -1431,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2148035842; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1470,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1499,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/s390x/keyctl.rs b/src/s390x/keyctl.rs new file mode 100644 index 000000000..738c2390f --- /dev/null +++ b/src/s390x/keyctl.rs @@ -0,0 +1,186 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type addr_t = crate::ctypes::c_ulong; +pub type saddr_t = crate::ctypes::c_long; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_ulong; +pub type __kernel_ssize_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_ino_t = crate::ctypes::c_uint; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_sigset_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C, packed(4))] +#[derive(Copy, Clone)] +pub struct __vector128 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __vector128__bindgen_ty_1__bindgen_ty_1 { +pub high: __u64, +pub low: __u64, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __vector128__bindgen_ty_1 { +pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1, +pub u: [__u32; 4usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/s390x/landlock.rs b/src/s390x/landlock.rs index e139cbf2b..8837a209f 100644 --- a/src/s390x/landlock.rs +++ b/src/s390x/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -70,6 +71,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -86,9 +90,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -105,8 +111,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/s390x/loop_device.rs b/src/s390x/loop_device.rs index 51cfdd166..aa10ed846 100644 --- a/src/s390x/loop_device.rs +++ b/src/s390x/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_size_t = crate::ctypes::c_ulong; pub type __kernel_ssize_t = crate::ctypes::c_long; @@ -21,6 +21,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/s390x/mempolicy.rs b/src/s390x/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/s390x/mempolicy.rs +++ b/src/s390x/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/s390x/net.rs b/src/s390x/net.rs index 52fbdbf47..9a1d50fc8 100644 --- a/src/s390x/net.rs +++ b/src/s390x/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -60,6 +61,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -156,7 +160,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -193,7 +197,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -354,7 +357,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -381,7 +383,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -411,7 +412,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -464,6 +464,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -490,7 +498,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -506,7 +513,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -519,7 +525,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -537,7 +542,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1351,6 +1355,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2389,13 +2401,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2403,13 +2432,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2417,27 +2465,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2471,12 +2823,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2508,57 +2860,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2567,57 +2928,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2626,291 +2996,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -2919,194 +3334,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3115,109 +3686,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3226,161 +3814,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3389,109 +4002,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/s390x/netlink.rs b/src/s390x/netlink.rs index c53eb6b42..1d58f6452 100644 --- a/src/s390x/netlink.rs +++ b/src/s390x/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -34,6 +34,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -153,6 +154,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -758,6 +764,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -770,6 +777,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -911,6 +919,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -989,6 +998,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1059,6 +1070,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1107,6 +1119,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1178,6 +1191,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1252,6 +1266,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1306,6 +1323,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1324,6 +1342,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1968,7 +1989,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2311,11 +2342,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2334,7 +2391,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2398,6 +2457,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2450,7 +2519,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2587,7 +2659,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2612,6 +2686,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2659,7 +2750,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2744,6 +2842,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2991,7 +3090,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3042,7 +3143,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3056,7 +3158,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3432,7 +3537,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3635,6 +3746,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3718,13 +3857,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3736,7 +3884,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3753,7 +3903,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3773,7 +3953,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3814,7 +4004,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3956,6 +4158,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4025,7 +4250,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4123,7 +4350,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4181,7 +4418,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4353,6 +4591,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4371,7 +4616,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4487,7 +4733,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4577,7 +4826,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4605,7 +4855,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5399,22 +5652,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5432,16 +5685,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5474,16 +5730,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5525,7 +5781,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5548,6 +5804,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5563,20 +5825,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5611,6 +5879,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/s390x/prctl.rs b/src/s390x/prctl.rs index 34759a6da..85853a780 100644 --- a/src/s390x/prctl.rs +++ b/src/s390x/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -164,6 +165,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -284,6 +286,13 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; #[repr(C)] #[derive(Copy, Clone)] pub union __vector128__bindgen_ty_1 { diff --git a/src/s390x/ptrace.rs b/src/s390x/ptrace.rs index 6194649f5..2e9a0b5ae 100644 --- a/src/s390x/ptrace.rs +++ b/src/s390x/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -231,7 +232,6 @@ pub cr: [crate::ctypes::c_ulong; 3usize], #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct per_cr_bits { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>, pub starting_addr: crate::ctypes::c_ulong, pub ending_addr: crate::ctypes::c_ulong, @@ -246,10 +246,8 @@ pub access_id: crate::ctypes::c_uchar, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct per_lowcore_bits { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub address: crate::ctypes::c_ulong, -pub _bitfield_align_2: [u8; 0], pub _bitfield_2: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 7usize], } @@ -257,7 +255,6 @@ pub __bindgen_padding_0: [u8; 7usize], #[derive(Copy, Clone)] pub struct per_struct { pub control_regs: per_struct__bindgen_ty_1, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub starting_addr: crate::ctypes::c_ulong, pub ending_addr: crate::ctypes::c_ulong, @@ -470,6 +467,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -1066,13 +1065,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -1080,13 +1096,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -1094,24 +1129,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -1144,187 +1478,216 @@ fmt.write_str("__IncompleteArrayField") } impl per_cr_bits { #[inline] +#[allow(unnecessary_transmutes)] pub fn em_branching(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(32usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<32usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_em_branching(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(32usize, 1u8, val as u64) +self._bitfield_1.set_const::<32usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn em_branching_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 32usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<32usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_em_branching_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 32usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<32usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn em_instruction_fetch(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(33usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<33usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_em_instruction_fetch(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(33usize, 1u8, val as u64) +self._bitfield_1.set_const::<33usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn em_instruction_fetch_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 33usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<33usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_em_instruction_fetch_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 33usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<33usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn em_storage_alteration(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(34usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<34usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_em_storage_alteration(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(34usize, 1u8, val as u64) +self._bitfield_1.set_const::<34usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn em_storage_alteration_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 34usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<34usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_em_storage_alteration_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 34usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<34usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn em_gpr_alt_unused(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(35usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<35usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_em_gpr_alt_unused(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(35usize, 1u8, val as u64) +self._bitfield_1.set_const::<35usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn em_gpr_alt_unused_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 35usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<35usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_em_gpr_alt_unused_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 35usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<35usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn em_store_real_address(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(36usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<36usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_em_store_real_address(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(36usize, 1u8, val as u64) +self._bitfield_1.set_const::<36usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn em_store_real_address_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 36usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<36usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_em_store_real_address_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 36usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<36usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn branch_addr_ctl(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(40usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<40usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_branch_addr_ctl(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(40usize, 1u8, val as u64) +self._bitfield_1.set_const::<40usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn branch_addr_ctl_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 40usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<40usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_branch_addr_ctl_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 40usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<40usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn storage_alt_space_ctl(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(42usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<42usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_storage_alt_space_ctl(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(42usize, 1u8, val as u64) +self._bitfield_1.set_const::<42usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn storage_alt_space_ctl_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 42usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<42usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_storage_alt_space_ctl_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 42usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<42usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(em_branching: crate::ctypes::c_uint, em_instruction_fetch: crate::ctypes::c_uint, em_storage_alteration: crate::ctypes::c_uint, em_gpr_alt_unused: crate::ctypes::c_uint, em_store_real_address: crate::ctypes::c_uint, branch_addr_ctl: crate::ctypes::c_uint, storage_alt_space_ctl: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 8usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default(); -__bindgen_bitfield_unit.set(32usize, 1u8, { +__bindgen_bitfield_unit.set_const::<32usize, 1u8>({ let em_branching: u32 = unsafe { ::core::mem::transmute(em_branching) }; em_branching as u64 }); -__bindgen_bitfield_unit.set(33usize, 1u8, { +__bindgen_bitfield_unit.set_const::<33usize, 1u8>({ let em_instruction_fetch: u32 = unsafe { ::core::mem::transmute(em_instruction_fetch) }; em_instruction_fetch as u64 }); -__bindgen_bitfield_unit.set(34usize, 1u8, { +__bindgen_bitfield_unit.set_const::<34usize, 1u8>({ let em_storage_alteration: u32 = unsafe { ::core::mem::transmute(em_storage_alteration) }; em_storage_alteration as u64 }); -__bindgen_bitfield_unit.set(35usize, 1u8, { +__bindgen_bitfield_unit.set_const::<35usize, 1u8>({ let em_gpr_alt_unused: u32 = unsafe { ::core::mem::transmute(em_gpr_alt_unused) }; em_gpr_alt_unused as u64 }); -__bindgen_bitfield_unit.set(36usize, 1u8, { +__bindgen_bitfield_unit.set_const::<36usize, 1u8>({ let em_store_real_address: u32 = unsafe { ::core::mem::transmute(em_store_real_address) }; em_store_real_address as u64 }); -__bindgen_bitfield_unit.set(40usize, 1u8, { +__bindgen_bitfield_unit.set_const::<40usize, 1u8>({ let branch_addr_ctl: u32 = unsafe { ::core::mem::transmute(branch_addr_ctl) }; branch_addr_ctl as u64 }); -__bindgen_bitfield_unit.set(42usize, 1u8, { +__bindgen_bitfield_unit.set_const::<42usize, 1u8>({ let storage_alt_space_ctl: u32 = unsafe { ::core::mem::transmute(storage_alt_space_ctl) }; storage_alt_space_ctl as u64 }); @@ -1333,270 +1696,319 @@ __bindgen_bitfield_unit } impl per_lowcore_bits { #[inline] +#[allow(unnecessary_transmutes)] pub fn perc_branching(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_perc_branching(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn perc_branching_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_perc_branching_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn perc_instruction_fetch(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_perc_instruction_fetch(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn perc_instruction_fetch_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_perc_instruction_fetch_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn perc_storage_alteration(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_perc_storage_alteration(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn perc_storage_alteration_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_perc_storage_alteration_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn perc_gpr_alt_unused(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_perc_gpr_alt_unused(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn perc_gpr_alt_unused_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_perc_gpr_alt_unused_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn perc_store_real_address(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_perc_store_real_address(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn perc_store_real_address_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_perc_store_real_address_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn atmid_psw_bit_31(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_atmid_psw_bit_31(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn atmid_psw_bit_31_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_atmid_psw_bit_31_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn atmid_validity_bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_atmid_validity_bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn atmid_validity_bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_atmid_validity_bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn atmid_psw_bit_32(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_atmid_psw_bit_32(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn atmid_psw_bit_32_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_atmid_psw_bit_32_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn atmid_psw_bit_5(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_atmid_psw_bit_5(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn atmid_psw_bit_5_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_atmid_psw_bit_5_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn atmid_psw_bit_16(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_atmid_psw_bit_16(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn atmid_psw_bit_16_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_atmid_psw_bit_16_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn atmid_psw_bit_17(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_atmid_psw_bit_17(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn atmid_psw_bit_17_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_atmid_psw_bit_17_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn si(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_si(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 2u8, val as u64) +self._bitfield_1.set_const::<14usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn si_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_si_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1( perc_branching: crate::ctypes::c_uint, perc_instruction_fetch: crate::ctypes::c_uint, @@ -1612,82 +2024,87 @@ atmid_psw_bit_17: crate::ctypes::c_uint, si: crate::ctypes::c_uint, ) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let perc_branching: u32 = unsafe { ::core::mem::transmute(perc_branching) }; perc_branching as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let perc_instruction_fetch: u32 = unsafe { ::core::mem::transmute(perc_instruction_fetch) }; perc_instruction_fetch as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let perc_storage_alteration: u32 = unsafe { ::core::mem::transmute(perc_storage_alteration) }; perc_storage_alteration as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let perc_gpr_alt_unused: u32 = unsafe { ::core::mem::transmute(perc_gpr_alt_unused) }; perc_gpr_alt_unused as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let perc_store_real_address: u32 = unsafe { ::core::mem::transmute(perc_store_real_address) }; perc_store_real_address as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let atmid_psw_bit_31: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_31) }; atmid_psw_bit_31 as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let atmid_validity_bit: u32 = unsafe { ::core::mem::transmute(atmid_validity_bit) }; atmid_validity_bit as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let atmid_psw_bit_32: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_32) }; atmid_psw_bit_32 as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let atmid_psw_bit_5: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_5) }; atmid_psw_bit_5 as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let atmid_psw_bit_16: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_16) }; atmid_psw_bit_16 as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let atmid_psw_bit_17: u32 = unsafe { ::core::mem::transmute(atmid_psw_bit_17) }; atmid_psw_bit_17 as u64 }); -__bindgen_bitfield_unit.set(14usize, 2u8, { +__bindgen_bitfield_unit.set_const::<14usize, 2u8>({ let si: u32 = unsafe { ::core::mem::transmute(si) }; si as u64 }); __bindgen_bitfield_unit } #[inline] +#[allow(unnecessary_transmutes)] pub fn access_id(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_2.get(4usize, 4u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_access_id(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_2.set(4usize, 4u8, val as u64) +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn access_id_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_2), 4usize, 4u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_access_id_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_2), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_2(access_id: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let access_id: u32 = unsafe { ::core::mem::transmute(access_id) }; access_id as u64 }); @@ -1696,57 +2113,66 @@ __bindgen_bitfield_unit } impl per_struct { #[inline] +#[allow(unnecessary_transmutes)] pub fn single_step(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_single_step(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn single_step_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_single_step_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn instruction_fetch(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_instruction_fetch(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn instruction_fetch_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_instruction_fetch_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(single_step: crate::ctypes::c_uint, instruction_fetch: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let single_step: u32 = unsafe { ::core::mem::transmute(single_step) }; single_step as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let instruction_fetch: u32 = unsafe { ::core::mem::transmute(instruction_fetch) }; instruction_fetch as u64 }); diff --git a/src/s390x/system.rs b/src/s390x/system.rs index 5742a223c..3fe94aae1 100644 --- a/src/s390x/system.rs +++ b/src/s390x/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/s390x/vm_sockets.rs b/src/s390x/vm_sockets.rs index 051c1a534..624e72064 100644 --- a/src/s390x/vm_sockets.rs +++ b/src/s390x/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -34,6 +34,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/s390x/xdp.rs b/src/s390x/xdp.rs index 4b7e0a6bf..98403f50b 100644 --- a/src/s390x/xdp.rs +++ b/src/s390x/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -33,6 +33,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc/auxvec.rs b/src/sparc/auxvec.rs index 2aff98a54..4e3261847 100644 --- a/src/sparc/auxvec.rs +++ b/src/sparc/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_ADI_BLKSZ: u32 = 48; diff --git a/src/sparc/bootparam.rs b/src/sparc/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/sparc/bootparam.rs +++ b/src/sparc/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/sparc/btrfs.rs b/src/sparc/btrfs.rs index c4ef80a13..405e235ab 100644 --- a/src/sparc/btrfs.rs +++ b/src/sparc/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1339,6 +1374,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1354,6 +1390,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1385,6 +1422,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1430,6 +1468,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1481,6 +1522,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1546,6 +1590,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1606,6 +1651,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1622,6 +1677,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1671,6 +1727,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1750,7 +1809,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1758,6 +1819,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1860,6 +1922,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/sparc/elf_uapi.rs b/src/sparc/elf_uapi.rs index cc05d9e18..2b23cea53 100644 --- a/src/sparc/elf_uapi.rs +++ b/src/sparc/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -622,6 +623,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/sparc/errno.rs b/src/sparc/errno.rs index 743e86bb9..7c14aae67 100644 --- a/src/sparc/errno.rs +++ b/src/sparc/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -76,6 +76,7 @@ pub const ETIME: u32 = 73; pub const ENOSR: u32 = 74; pub const ENOMSG: u32 = 75; pub const EBADMSG: u32 = 76; +pub const EFSBADCRC: u32 = 76; pub const EIDRM: u32 = 77; pub const EDEADLK: u32 = 78; pub const ENOLCK: u32 = 79; @@ -117,6 +118,7 @@ pub const ELIBACC: u32 = 114; pub const ENOTUNIQ: u32 = 115; pub const ERESTART: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -135,3 +137,4 @@ pub const EOWNERDEAD: u32 = 132; pub const ENOTRECOVERABLE: u32 = 133; pub const ERFKILL: u32 = 134; pub const EHWPOISON: u32 = 135; +pub const EFTYPE: u32 = 136; diff --git a/src/sparc/general.rs b/src/sparc/general.rs index e4379f189..96b0ba48b 100644 --- a/src/sparc/general.rs +++ b/src/sparc/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -156,6 +157,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -287,10 +295,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -970,6 +978,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1077,7 +1113,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1093,9 +1128,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1192,6 +1227,7 @@ pub const O_WRONLY: u32 = 1; pub const O_RDWR: u32 = 2; pub const O_DIRECTORY: u32 = 65536; pub const O_NOFOLLOW: u32 = 131072; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 33619968; pub const F_DUPFD: u32 = 0; pub const F_GETFD: u32 = 1; @@ -1258,6 +1294,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1269,6 +1307,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1429,6 +1468,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 4194304; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1445,6 +1485,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1476,6 +1517,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1521,6 +1563,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1572,6 +1617,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1588,7 +1636,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1602,6 +1652,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1617,6 +1679,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1743,6 +1807,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1933,7 +1999,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1955,6 +2026,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; pub const SIGQUIT: u32 = 3; @@ -2783,6 +2855,7 @@ pub const __NR_fsconfig: u32 = 431; pub const __NR_fsmount: u32 = 432; pub const __NR_fspick: u32 = 433; pub const __NR_pidfd_open: u32 = 434; +pub const __NR_clone3: u32 = 435; pub const __NR_close_range: u32 = 436; pub const __NR_openat2: u32 = 437; pub const __NR_pidfd_getfd: u32 = 438; @@ -2816,6 +2889,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const KERN_FEATURE_MIXED_MODE_STACK: u32 = 1; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; @@ -2929,6 +3004,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 16384; +pub const PIDFD_THREAD: u32 = 2048; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3059,6 +3160,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3168,13 +3275,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3182,13 +3306,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3196,24 +3339,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3249,161 +3691,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/sparc/if_arp.rs b/src/sparc/if_arp.rs index ca22d6640..19ca58676 100644 --- a/src/sparc/if_arp.rs +++ b/src/sparc/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -721,6 +722,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -729,6 +731,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -751,11 +754,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -785,6 +790,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const ASI_NULL1: u32 = 0; pub const ASI_NULL2: u32 = 1; @@ -1331,6 +1337,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1401,6 +1409,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1449,6 +1458,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1520,6 +1530,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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 +1605,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1648,6 +1662,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1666,6 +1681,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -2026,7 +2044,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -2124,7 +2144,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -2182,7 +2212,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2354,6 +2385,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2372,7 +2410,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2488,7 +2527,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2578,7 +2620,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2606,7 +2649,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/sparc/if_ether.rs b/src/sparc/if_ether.rs index 1eb9a7a19..134eea552 100644 --- a/src/sparc/if_ether.rs +++ b/src/sparc/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -102,6 +103,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -110,6 +112,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -132,11 +135,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -166,3 +171,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/sparc/if_packet.rs b/src/sparc/if_packet.rs index c84c62f2b..b94e5f2ec 100644 --- a/src/sparc/if_packet.rs +++ b/src/sparc/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc/if_tun.rs b/src/sparc/if_tun.rs index 09e26a00c..a3b2054fa 100644 --- a/src/sparc/if_tun.rs +++ b/src/sparc/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -132,6 +133,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -140,6 +142,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -162,11 +165,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -196,6 +201,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/sparc/image.rs b/src/sparc/image.rs index bff15e373..c95e29d35 100644 --- a/src/sparc/image.rs +++ b/src/sparc/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/sparc/io_uring.rs b/src/sparc/io_uring.rs index aa69507c1..144fb0ef4 100644 --- a/src/sparc/io_uring.rs +++ b/src/sparc/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -49,6 +50,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -173,10 +177,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +324,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -400,7 +491,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -548,6 +639,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -579,7 +685,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -605,7 +711,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -675,52 +782,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -843,6 +904,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -858,6 +920,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -889,6 +952,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -934,6 +998,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -985,6 +1052,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1005,8 +1076,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1015,6 +1090,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1046,11 +1122,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1093,7 +1172,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1133,6 +1211,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1209,7 +1330,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1257,7 +1380,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1334,12 +1460,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1357,6 +1478,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1420,6 +1554,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1453,12 +1592,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/sparc/ioctl.rs b/src/sparc/ioctl.rs index bff15e373..c95e29d35 100644 --- a/src/sparc/ioctl.rs +++ b/src/sparc/ioctl.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/sparc/keyctl.rs b/src/sparc/keyctl.rs new file mode 100644 index 000000000..5ea8f2c5e --- /dev/null +++ b/src/sparc/keyctl.rs @@ -0,0 +1,164 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_long; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_daddr_t = crate::ctypes::c_long; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/sparc/landlock.rs b/src/sparc/landlock.rs index fcede1342..645539257 100644 --- a/src/sparc/landlock.rs +++ b/src/sparc/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -70,9 +74,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -89,8 +95,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/sparc/loop_device.rs b/src/sparc/loop_device.rs index e08def3b8..d90d42ccb 100644 --- a/src/sparc/loop_device.rs +++ b/src/sparc/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_size_t = crate::ctypes::c_uint; pub type __kernel_ssize_t = crate::ctypes::c_int; @@ -20,6 +20,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc/mempolicy.rs b/src/sparc/mempolicy.rs index b25b97d13..00e05a975 100644 --- a/src/sparc/mempolicy.rs +++ b/src/sparc/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -76,6 +76,7 @@ pub const ETIME: u32 = 73; pub const ENOSR: u32 = 74; pub const ENOMSG: u32 = 75; pub const EBADMSG: u32 = 76; +pub const EFSBADCRC: u32 = 76; pub const EIDRM: u32 = 77; pub const EDEADLK: u32 = 78; pub const ENOLCK: u32 = 79; @@ -117,6 +118,7 @@ pub const ELIBACC: u32 = 114; pub const ENOTUNIQ: u32 = 115; pub const ERESTART: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -135,10 +137,12 @@ pub const EOWNERDEAD: u32 = 132; pub const ENOTRECOVERABLE: u32 = 133; pub const ERFKILL: u32 = 134; pub const EHWPOISON: u32 = 135; +pub const EFTYPE: u32 = 136; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/sparc/net.rs b/src/sparc/net.rs index 3f90f50a8..72f2d65a6 100644 --- a/src/sparc/net.rs +++ b/src/sparc/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1545,6 +1549,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2577,13 +2589,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2591,13 +2620,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2605,27 +2653,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2659,12 +3011,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2696,57 +3048,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2755,57 +3116,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2814,291 +3184,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -3107,194 +3522,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3303,109 +3874,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3414,161 +4002,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3577,109 +4190,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/sparc/netlink.rs b/src/sparc/netlink.rs index 3da0b4bcc..8eca7ba07 100644 --- a/src/sparc/netlink.rs +++ b/src/sparc/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -742,6 +748,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -754,6 +761,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -895,6 +903,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -973,6 +982,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1043,6 +1054,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1091,6 +1103,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1162,6 +1175,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1236,6 +1250,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1290,6 +1307,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1308,6 +1326,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1952,7 +1973,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2295,11 +2326,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2318,7 +2375,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2382,6 +2441,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2434,7 +2503,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2571,7 +2643,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2596,6 +2670,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2643,7 +2734,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2728,6 +2826,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2975,7 +3074,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3026,7 +3127,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3040,7 +3142,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3416,7 +3521,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3619,6 +3730,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3702,13 +3841,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3720,7 +3868,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3737,7 +3887,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3757,7 +3937,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3798,7 +3988,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3940,6 +4142,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4009,7 +4234,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4107,7 +4334,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4165,7 +4402,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4337,6 +4575,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4355,7 +4600,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4471,7 +4717,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4561,7 +4810,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4589,7 +4839,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5377,22 +5630,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5410,16 +5663,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5452,16 +5708,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5503,7 +5759,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5526,6 +5782,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5541,20 +5803,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5589,6 +5857,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/sparc/prctl.rs b/src/sparc/prctl.rs index b63839ec3..0b8827fd3 100644 --- a/src/sparc/prctl.rs +++ b/src/sparc/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -148,6 +149,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -268,3 +270,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/sparc/ptrace.rs b/src/sparc/ptrace.rs index cd6bd9356..ad63611f1 100644 --- a/src/sparc/ptrace.rs +++ b/src/sparc/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -376,6 +377,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/sparc/system.rs b/src/sparc/system.rs index 49bc94e08..919c0b1d0 100644 --- a/src/sparc/system.rs +++ b/src/sparc/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc/vm_sockets.rs b/src/sparc/vm_sockets.rs index a2b1cc774..3e377b9b8 100644 --- a/src/sparc/vm_sockets.rs +++ b/src/sparc/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc/xdp.rs b/src/sparc/xdp.rs index 80ab865b1..037faee9a 100644 --- a/src/sparc/xdp.rs +++ b/src/sparc/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_old_uid_t = __kernel_uid_t; pub type __kernel_old_gid_t = __kernel_gid_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc64/auxvec.rs b/src/sparc64/auxvec.rs index 2aff98a54..4e3261847 100644 --- a/src/sparc64/auxvec.rs +++ b/src/sparc64/auxvec.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; pub const AT_ADI_BLKSZ: u32 = 48; diff --git a/src/sparc64/bootparam.rs b/src/sparc64/bootparam.rs index bff15e373..c95e29d35 100644 --- a/src/sparc64/bootparam.rs +++ b/src/sparc64/bootparam.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/sparc64/btrfs.rs b/src/sparc64/btrfs.rs index 2a8791893..098f303cb 100644 --- a/src/sparc64/btrfs.rs +++ b/src/sparc64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -179,10 +180,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -560,7 +561,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -747,7 +748,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, @@ -765,6 +766,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -918,7 +936,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1182,6 +1203,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1220,6 +1250,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1347,6 +1382,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1362,6 +1398,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1393,6 +1430,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1438,6 +1476,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1489,6 +1530,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1554,6 +1598,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1614,6 +1659,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1630,6 +1685,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1679,6 +1735,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1758,7 +1817,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1766,6 +1827,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1868,6 +1930,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/sparc64/elf_uapi.rs b/src/sparc64/elf_uapi.rs index 8e5a895f0..57150c16d 100644 --- a/src/sparc64/elf_uapi.rs +++ b/src/sparc64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -630,6 +631,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/sparc64/errno.rs b/src/sparc64/errno.rs index 743e86bb9..7c14aae67 100644 --- a/src/sparc64/errno.rs +++ b/src/sparc64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -76,6 +76,7 @@ pub const ETIME: u32 = 73; pub const ENOSR: u32 = 74; pub const ENOMSG: u32 = 75; pub const EBADMSG: u32 = 76; +pub const EFSBADCRC: u32 = 76; pub const EIDRM: u32 = 77; pub const EDEADLK: u32 = 78; pub const ENOLCK: u32 = 79; @@ -117,6 +118,7 @@ pub const ELIBACC: u32 = 114; pub const ENOTUNIQ: u32 = 115; pub const ERESTART: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -135,3 +137,4 @@ pub const EOWNERDEAD: u32 = 132; pub const ENOTRECOVERABLE: u32 = 133; pub const ERFKILL: u32 = 134; pub const EHWPOISON: u32 = 135; +pub const EFTYPE: u32 = 136; diff --git a/src/sparc64/general.rs b/src/sparc64/general.rs index cc877b07b..efc88a46b 100644 --- a/src/sparc64/general.rs +++ b/src/sparc64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -164,6 +165,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -295,10 +303,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -972,6 +980,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1074,7 +1110,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1090,9 +1125,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1189,6 +1224,7 @@ pub const O_WRONLY: u32 = 1; pub const O_RDWR: u32 = 2; pub const O_DIRECTORY: u32 = 65536; pub const O_NOFOLLOW: u32 = 131072; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 33619968; pub const F_DUPFD: u32 = 0; pub const F_GETFD: u32 = 1; @@ -1252,6 +1288,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1263,6 +1301,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1423,6 +1462,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 4194304; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1439,6 +1479,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1470,6 +1511,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1515,6 +1557,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1566,6 +1611,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1582,7 +1630,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1596,6 +1646,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1611,6 +1673,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1737,6 +1801,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const PROT_READ: u32 = 1; pub const PROT_WRITE: u32 = 2; pub const PROT_EXEC: u32 = 4; @@ -1927,7 +1993,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1949,6 +2020,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; pub const SIGQUIT: u32 = 3; @@ -2740,6 +2812,7 @@ pub const __NR_fsconfig: u32 = 431; pub const __NR_fsmount: u32 = 432; pub const __NR_fspick: u32 = 433; pub const __NR_pidfd_open: u32 = 434; +pub const __NR_clone3: u32 = 435; pub const __NR_close_range: u32 = 436; pub const __NR_openat2: u32 = 437; pub const __NR_pidfd_getfd: u32 = 438; @@ -2773,6 +2846,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const KERN_FEATURE_MIXED_MODE_STACK: u32 = 1; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; @@ -2886,6 +2961,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 16384; +pub const PIDFD_THREAD: u32 = 2048; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3015,6 +3116,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3124,13 +3231,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3138,13 +3262,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3152,24 +3295,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3205,161 +3647,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/sparc64/if_arp.rs b/src/sparc64/if_arp.rs index d14a84cd8..41c090e0a 100644 --- a/src/sparc64/if_arp.rs +++ b/src/sparc64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -729,6 +730,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -737,6 +739,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -759,11 +762,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -793,6 +798,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __BIG_ENDIAN: u32 = 4321; pub const ASI_NULL1: u32 = 0; pub const ASI_NULL2: u32 = 1; @@ -1339,6 +1345,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1409,6 +1417,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1457,6 +1466,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1528,6 +1538,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1602,6 +1613,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1656,6 +1670,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1674,6 +1689,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -2034,7 +2052,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -2132,7 +2152,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -2190,7 +2220,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2362,6 +2393,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2380,7 +2418,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2496,7 +2535,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2586,7 +2628,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2614,7 +2657,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/sparc64/if_ether.rs b/src/sparc64/if_ether.rs index c5a81c8fc..bf79c8047 100644 --- a/src/sparc64/if_ether.rs +++ b/src/sparc64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -110,6 +111,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -118,6 +120,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -140,11 +143,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -174,3 +179,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/sparc64/if_packet.rs b/src/sparc64/if_packet.rs index 5866a9793..e9816def5 100644 --- a/src/sparc64/if_packet.rs +++ b/src/sparc64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc64/if_tun.rs b/src/sparc64/if_tun.rs index 116b7d9ba..bf4f2ce82 100644 --- a/src/sparc64/if_tun.rs +++ b/src/sparc64/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -140,6 +141,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -148,6 +150,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -170,11 +173,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -204,6 +209,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/sparc64/image.rs b/src/sparc64/image.rs index bff15e373..c95e29d35 100644 --- a/src/sparc64/image.rs +++ b/src/sparc64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/sparc64/io_uring.rs b/src/sparc64/io_uring.rs index eb3eebe88..5e97ec2f9 100644 --- a/src/sparc64/io_uring.rs +++ b/src/sparc64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -181,10 +185,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -328,6 +332,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -402,7 +493,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -550,6 +641,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -581,7 +687,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -607,7 +713,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -677,52 +784,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -845,6 +906,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -860,6 +922,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -891,6 +954,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -936,6 +1000,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -987,6 +1054,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1007,8 +1078,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1017,6 +1092,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1048,11 +1124,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1095,7 +1174,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1135,6 +1213,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1211,7 +1332,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1259,7 +1382,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1336,12 +1462,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1359,6 +1480,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1422,6 +1556,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1455,12 +1594,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/sparc64/ioctl.rs b/src/sparc64/ioctl.rs index bff15e373..c95e29d35 100644 --- a/src/sparc64/ioctl.rs +++ b/src/sparc64/ioctl.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/sparc64/keyctl.rs b/src/sparc64/keyctl.rs new file mode 100644 index 000000000..c46dcad23 --- /dev/null +++ b/src/sparc64/keyctl.rs @@ -0,0 +1,172 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_suseconds_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_dev_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __kernel_old_timeval { +pub tv_sec: __kernel_long_t, +pub tv_usec: __kernel_suseconds_t, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/sparc64/landlock.rs b/src/sparc64/landlock.rs index a05ae5f5c..5f05472fe 100644 --- a/src/sparc64/landlock.rs +++ b/src/sparc64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -62,6 +63,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -78,9 +82,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -97,8 +103,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/sparc64/loop_device.rs b/src/sparc64/loop_device.rs index c64807b9e..2c7172a98 100644 --- a/src/sparc64/loop_device.rs +++ b/src/sparc64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_old_uid_t = crate::ctypes::c_ushort; pub type __kernel_old_gid_t = crate::ctypes::c_ushort; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc64/mempolicy.rs b/src/sparc64/mempolicy.rs index b25b97d13..00e05a975 100644 --- a/src/sparc64/mempolicy.rs +++ b/src/sparc64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -76,6 +76,7 @@ pub const ETIME: u32 = 73; pub const ENOSR: u32 = 74; pub const ENOMSG: u32 = 75; pub const EBADMSG: u32 = 76; +pub const EFSBADCRC: u32 = 76; pub const EIDRM: u32 = 77; pub const EDEADLK: u32 = 78; pub const ENOLCK: u32 = 79; @@ -117,6 +118,7 @@ pub const ELIBACC: u32 = 114; pub const ENOTUNIQ: u32 = 115; pub const ERESTART: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -135,10 +137,12 @@ pub const EOWNERDEAD: u32 = 132; pub const ENOTRECOVERABLE: u32 = 133; pub const ERFKILL: u32 = 134; pub const EHWPOISON: u32 = 135; +pub const EFTYPE: u32 = 136; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/sparc64/net.rs b/src/sparc64/net.rs index c691d4fbf..6e087a59f 100644 --- a/src/sparc64/net.rs +++ b/src/sparc64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -148,7 +152,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -185,7 +189,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -346,7 +349,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -373,7 +375,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -403,7 +404,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -456,6 +456,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -482,7 +490,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -498,7 +505,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -511,7 +517,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -529,7 +534,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1559,6 +1563,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2591,13 +2603,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2605,13 +2634,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2619,27 +2667,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2673,12 +3025,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2710,57 +3062,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, ihl: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); @@ -2769,57 +3130,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(version: __u8, priority: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); @@ -2828,291 +3198,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 3u8, val as u64) +self._bitfield_1.set_const::<4usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(doff: __u16, res1: __u16, ae: __u16, cwr: __u16, ece: __u16, urg: __u16, ack: __u16, psh: __u16, rst: __u16, syn: __u16, fin: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(4usize, 3u8, { +__bindgen_bitfield_unit.set_const::<4usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); @@ -3121,194 +3536,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3317,109 +3888,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3428,161 +4016,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3591,109 +4204,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/sparc64/netlink.rs b/src/sparc64/netlink.rs index 1cbe88755..d4a6737fb 100644 --- a/src/sparc64/netlink.rs +++ b/src/sparc64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -145,6 +146,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -750,6 +756,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -762,6 +769,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -903,6 +911,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -981,6 +990,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1051,6 +1062,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1099,6 +1111,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1170,6 +1183,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1244,6 +1258,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1298,6 +1315,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1316,6 +1334,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1960,7 +1981,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2303,11 +2334,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2326,7 +2383,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2390,6 +2449,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2442,7 +2511,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2579,7 +2651,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2604,6 +2678,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2651,7 +2742,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2736,6 +2834,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2983,7 +3082,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3034,7 +3135,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3048,7 +3150,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3424,7 +3529,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3627,6 +3738,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3710,13 +3849,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3728,7 +3876,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3745,7 +3895,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3765,7 +3945,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3806,7 +3996,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3948,6 +4150,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4017,7 +4242,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4115,7 +4342,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4173,7 +4410,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4345,6 +4583,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4363,7 +4608,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4479,7 +4725,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4569,7 +4818,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4597,7 +4847,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5385,22 +5638,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5418,16 +5671,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5460,16 +5716,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5511,7 +5767,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5534,6 +5790,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5549,20 +5811,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5597,6 +5865,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/sparc64/prctl.rs b/src/sparc64/prctl.rs index b972403fe..fecb062e3 100644 --- a/src/sparc64/prctl.rs +++ b/src/sparc64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -156,6 +157,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -276,3 +278,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/sparc64/ptrace.rs b/src/sparc64/ptrace.rs index ce3bf6926..f9500a905 100644 --- a/src/sparc64/ptrace.rs +++ b/src/sparc64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -419,6 +420,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; diff --git a/src/sparc64/system.rs b/src/sparc64/system.rs index 8e9b49889..9eb45b77f 100644 --- a/src/sparc64/system.rs +++ b/src/sparc64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc64/vm_sockets.rs b/src/sparc64/vm_sockets.rs index bd6303f4e..3a1ada2e6 100644 --- a/src/sparc64/vm_sockets.rs +++ b/src/sparc64/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/sparc64/xdp.rs b/src/sparc64/xdp.rs index 5ce4ff873..3d4d67d9f 100644 --- a/src/sparc64/xdp.rs +++ b/src/sparc64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x32/auxvec.rs b/src/x32/auxvec.rs index 1e56e6186..18eec07e0 100644 --- a/src/x32/auxvec.rs +++ b/src/x32/auxvec.rs @@ -1,7 +1,7 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 3; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; pub const AT_NULL: u32 = 0; pub const AT_IGNORE: u32 = 1; pub const AT_EXECFD: u32 = 2; diff --git a/src/x32/bootparam.rs b/src/x32/bootparam.rs index e65038151..ee23d58ff 100644 --- a/src/x32/bootparam.rs +++ b/src/x32/bootparam.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x32/btrfs.rs b/src/x32/btrfs.rs index fcd13dfbd..a94dd3fed 100644 --- a/src/x32/btrfs.rs +++ b/src/x32/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -554,7 +555,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -741,7 +742,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, @@ -759,6 +760,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -912,7 +930,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1176,6 +1197,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1214,6 +1244,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1340,6 +1375,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1355,6 +1391,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1386,6 +1423,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1431,6 +1469,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1482,6 +1523,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1547,6 +1591,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1607,6 +1652,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1623,6 +1678,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1672,6 +1728,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1751,7 +1810,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1759,6 +1820,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1861,6 +1923,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/x32/elf_uapi.rs b/src/x32/elf_uapi.rs index c4258678e..c4699c7fc 100644 --- a/src/x32/elf_uapi.rs +++ b/src/x32/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -624,6 +625,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/x32/errno.rs b/src/x32/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/x32/errno.rs +++ b/src/x32/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/x32/general.rs b/src/x32/general.rs index 993970fbf..436637b02 100644 --- a/src/x32/general.rs +++ b/src/x32/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -155,6 +156,13 @@ pub flags: __u64, pub mode: __u64, pub resolve: __u64, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct epoll_event { @@ -288,10 +296,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -618,7 +626,7 @@ pub _pid: __kernel_pid_t, pub _uid: __kernel_uid32_t, pub _sigval: sigval_t, } -#[repr(C)] +#[repr(C, packed(4))] #[derive(Debug, Copy, Clone)] pub struct __sifields__bindgen_ty_4 { pub _pid: __kernel_pid_t, @@ -953,6 +961,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1052,7 +1088,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1069,9 +1104,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1159,6 +1194,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1234,6 +1270,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1245,6 +1283,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1404,6 +1443,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1420,6 +1460,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1451,6 +1492,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1496,6 +1538,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1547,6 +1592,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1563,7 +1611,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1577,6 +1627,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1592,6 +1654,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1718,6 +1782,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const MAP_32BIT: u32 = 64; pub const MAP_ABOVE4G: u32 = 128; pub const PROT_READ: u32 = 1; @@ -1909,7 +1975,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1931,6 +2002,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const NSIG: u32 = 32; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2610,6 +2682,7 @@ pub const __NR_statx: u32 = 1073742156; pub const __NR_io_pgetevents: u32 = 1073742157; pub const __NR_rseq: u32 = 1073742158; pub const __NR_uretprobe: u32 = 1073742159; +pub const __NR_uprobe: u32 = 1073742160; pub const __NR_pidfd_send_signal: u32 = 1073742248; pub const __NR_io_uring_setup: u32 = 1073742249; pub const __NR_io_uring_enter: u32 = 1073742250; @@ -2656,6 +2729,8 @@ pub const __NR_removexattrat: u32 = 1073742290; pub const __NR_open_tree_attr: u32 = 1073742291; pub const __NR_file_getattr: u32 = 1073742292; pub const __NR_file_setattr: u32 = 1073742293; +pub const __NR_listns: u32 = 1073742294; +pub const __NR_rseq_slice_yield: u32 = 1073742295; pub const __NR_rt_sigaction: u32 = 1073742336; pub const __NR_rt_sigreturn: u32 = 1073742337; pub const __NR_ioctl: u32 = 1073742338; @@ -2804,6 +2879,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2936,6 +3037,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3045,13 +3152,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3059,13 +3183,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3073,24 +3216,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3126,187 +3568,216 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn lm(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_lm(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn lm_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_lm_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint, lm: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let lm: u32 = unsafe { ::core::mem::transmute(lm) }; lm as u64 }); diff --git a/src/x32/if_arp.rs b/src/x32/if_arp.rs index 70e204bae..4cdf4674e 100644 --- a/src/x32/if_arp.rs +++ b/src/x32/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -723,6 +724,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -731,6 +733,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -753,11 +756,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -787,6 +792,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1117,6 +1123,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1187,6 +1195,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1235,6 +1244,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1306,6 +1316,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1380,6 +1391,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1434,6 +1448,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1452,6 +1467,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1812,7 +1830,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1910,7 +1930,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1968,7 +1998,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2140,6 +2171,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2158,7 +2196,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2274,7 +2313,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2364,7 +2406,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2392,7 +2435,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x32/if_ether.rs b/src/x32/if_ether.rs index 5224b4c64..f93cae7e7 100644 --- a/src/x32/if_ether.rs +++ b/src/x32/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -104,6 +105,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -112,6 +114,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -134,11 +137,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -168,3 +173,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/x32/if_packet.rs b/src/x32/if_packet.rs index cf6136f3b..d0f558810 100644 --- a/src/x32/if_packet.rs +++ b/src/x32/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x32/if_tun.rs b/src/x32/if_tun.rs index 2d2a2ec51..ec11d4723 100644 --- a/src/x32/if_tun.rs +++ b/src/x32/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -134,6 +135,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -142,6 +144,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -164,11 +167,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -198,6 +203,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/x32/image.rs b/src/x32/image.rs index bff15e373..c95e29d35 100644 --- a/src/x32/image.rs +++ b/src/x32/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/x32/io_uring.rs b/src/x32/io_uring.rs index 21429fc77..9e09109d6 100644 --- a/src/x32/io_uring.rs +++ b/src/x32/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -175,10 +179,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -322,6 +326,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -402,7 +493,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -550,6 +641,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -581,7 +687,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -607,7 +713,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -677,52 +784,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -844,6 +905,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -859,6 +921,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -890,6 +953,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -935,6 +999,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -986,6 +1053,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1006,8 +1077,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1016,6 +1091,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1047,11 +1123,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1094,7 +1173,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1134,6 +1212,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1210,7 +1331,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1258,7 +1381,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1335,12 +1461,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1358,6 +1479,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1421,6 +1555,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1454,12 +1593,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/x32/ioctl.rs b/src/x32/ioctl.rs index b4c68a59a..c4039b7b9 100644 --- a/src/x32/ioctl.rs +++ b/src/x32/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076389384; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149581316; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2148036621; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2155872785; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2148035841; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2148035650; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2148036769; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074815752; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074815314; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -830,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -840,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -868,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -893,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -913,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074815364; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -923,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1082131088; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -949,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; pub const MTIOCPOS: u32 = 2148035843; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1028,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; pub const FDSETPRM: u32 = 1075839554; pub const ATM_GETSTATZ: u32 = 1074815313; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1039,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074286598; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1072,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1104,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1155,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1184,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1197,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074287980; pub const FDWERRORGET: u32 = 2150105623; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1210,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1218,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1236,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074815361; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1245,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1265,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1277,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1321,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1341,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2150105621; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1353,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1364,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1384,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1397,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1418,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074815372; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074294796; @@ -1431,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2148035842; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1470,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1499,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/x32/keyctl.rs b/src/x32/keyctl.rs new file mode 100644 index 000000000..ba955e797 --- /dev/null +++ b/src/x32/keyctl.rs @@ -0,0 +1,166 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_long_t = crate::ctypes::c_longlong; +pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/x32/landlock.rs b/src/x32/landlock.rs index 99228e47c..1c045024f 100644 --- a/src/x32/landlock.rs +++ b/src/x32/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -56,6 +57,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -72,9 +76,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -91,8 +97,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/x32/loop_device.rs b/src/x32/loop_device.rs index d27e64dee..4fb2e2f89 100644 --- a/src/x32/loop_device.rs +++ b/src/x32/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_long_t = crate::ctypes::c_longlong; pub type __kernel_ulong_t = crate::ctypes::c_ulonglong; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x32/mempolicy.rs b/src/x32/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/x32/mempolicy.rs +++ b/src/x32/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/x32/net.rs b/src/x32/net.rs index 0f8da94c9..6bd2f7e1e 100644 --- a/src/x32/net.rs +++ b/src/x32/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -142,7 +146,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -179,7 +183,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -340,7 +343,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -367,7 +369,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -397,7 +398,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -450,6 +450,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -477,7 +485,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -494,7 +501,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -507,7 +513,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -525,7 +530,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1339,6 +1343,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2371,13 +2383,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2385,13 +2414,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2399,27 +2447,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2453,12 +2805,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2490,57 +2842,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2549,57 +2910,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2608,291 +2978,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2901,194 +3316,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3097,109 +3668,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3208,161 +3796,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3371,109 +3984,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/x32/netlink.rs b/src/x32/netlink.rs index 905e150ae..2109bd74a 100644 --- a/src/x32/netlink.rs +++ b/src/x32/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -139,6 +140,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -744,6 +750,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -756,6 +763,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -897,6 +905,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -975,6 +984,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1045,6 +1056,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1093,6 +1105,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1164,6 +1177,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1238,6 +1252,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1292,6 +1309,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1310,6 +1328,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1954,7 +1975,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2297,11 +2328,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2320,7 +2377,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2384,6 +2443,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2436,7 +2505,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2573,7 +2645,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2598,6 +2672,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2645,7 +2736,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2730,6 +2828,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2977,7 +3076,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3028,7 +3129,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3042,7 +3144,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3418,7 +3523,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3621,6 +3732,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3704,13 +3843,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3722,7 +3870,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3739,7 +3889,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3759,7 +3939,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3800,7 +3990,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3942,6 +4144,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4011,7 +4236,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4109,7 +4336,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4167,7 +4404,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4339,6 +4577,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4357,7 +4602,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4473,7 +4719,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4563,7 +4812,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4591,7 +4841,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5379,22 +5632,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5412,16 +5665,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5454,16 +5710,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5505,7 +5761,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5528,6 +5784,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5543,20 +5805,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5591,6 +5859,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/x32/prctl.rs b/src/x32/prctl.rs index 3344cd112..26f508ad6 100644 --- a/src/x32/prctl.rs +++ b/src/x32/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -150,6 +151,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -270,3 +272,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/x32/ptrace.rs b/src/x32/ptrace.rs index c8174cea9..feddc35a7 100644 --- a/src/x32/ptrace.rs +++ b/src/x32/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -377,6 +378,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -785,6 +788,7 @@ pub const X86_CR4_SMEP_BIT: u32 = 20; pub const X86_CR4_SMAP_BIT: u32 = 21; pub const X86_CR4_PKE_BIT: u32 = 22; pub const X86_CR4_CET_BIT: u32 = 23; +pub const X86_CR4_LASS_BIT: u32 = 27; pub const X86_CR4_LAM_SUP_BIT: u32 = 28; pub const X86_CR4_FRED_BIT: u32 = 32; pub const CX86_PCR0: u32 = 32; diff --git a/src/x32/system.rs b/src/x32/system.rs index 2eeaadd62..4f066e20f 100644 --- a/src/x32/system.rs +++ b/src/x32/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x32/vm_sockets.rs b/src/x32/vm_sockets.rs index d0b63ab79..9734550c0 100644 --- a/src/x32/vm_sockets.rs +++ b/src/x32/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x32/xdp.rs b/src/x32/xdp.rs index 6c4071814..853e81d18 100644 --- a/src/x32/xdp.rs +++ b/src/x32/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86/auxvec.rs b/src/x86/auxvec.rs index 175aeefbd..87fd8e7f5 100644 --- a/src/x86/auxvec.rs +++ b/src/x86/auxvec.rs @@ -1,8 +1,8 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO: u32 = 32; pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 3; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; pub const AT_NULL: u32 = 0; pub const AT_IGNORE: u32 = 1; pub const AT_EXECFD: u32 = 2; diff --git a/src/x86/bootparam.rs b/src/x86/bootparam.rs index 30775d200..9d4ef79ce 100644 --- a/src/x86/bootparam.rs +++ b/src/x86/bootparam.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86/btrfs.rs b/src/x86/btrfs.rs index f394082cc..f6ca96281 100644 --- a/src/x86/btrfs.rs +++ b/src/x86/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -171,10 +172,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -552,7 +553,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -739,7 +740,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, @@ -757,6 +758,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -910,7 +928,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1174,6 +1195,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1212,6 +1242,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1338,6 +1373,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1353,6 +1389,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1384,6 +1421,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1429,6 +1467,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1480,6 +1521,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1545,6 +1589,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1605,6 +1650,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1621,6 +1676,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1670,6 +1726,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1749,7 +1808,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1757,6 +1818,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1859,6 +1921,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/x86/elf_uapi.rs b/src/x86/elf_uapi.rs index a926d64ea..3c566b578 100644 --- a/src/x86/elf_uapi.rs +++ b/src/x86/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -622,6 +623,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/x86/errno.rs b/src/x86/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/x86/errno.rs +++ b/src/x86/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/x86/general.rs b/src/x86/general.rs index df5e36853..c68f68c1f 100644 --- a/src/x86/general.rs +++ b/src/x86/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -154,6 +155,13 @@ pub resolve: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct epoll_event { pub events: __poll_t, pub data: __u64, @@ -285,10 +293,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -951,6 +959,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulonglong, @@ -1073,7 +1109,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1090,9 +1125,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1180,6 +1215,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1255,6 +1291,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1266,6 +1304,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1425,6 +1464,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1441,6 +1481,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1472,6 +1513,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1517,6 +1559,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1568,6 +1613,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1584,7 +1632,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1598,6 +1648,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1613,6 +1675,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1739,6 +1803,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const MAP_32BIT: u32 = 64; pub const MAP_ABOVE4G: u32 = 128; pub const PROT_READ: u32 = 1; @@ -1930,7 +1996,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1952,6 +2023,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const NSIG: u32 = 32; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2801,6 +2873,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2913,6 +2987,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -3046,6 +3146,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigaction__bindgen_ty_1 { pub _sa_handler: __sighandler_t, pub _sa_sigaction: ::core::option::Option, @@ -3161,13 +3267,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3175,13 +3298,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3189,24 +3331,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3242,161 +3683,186 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); diff --git a/src/x86/if_arp.rs b/src/x86/if_arp.rs index 258b3344c..129a70e6f 100644 --- a/src/x86/if_arp.rs +++ b/src/x86/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -723,6 +724,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -731,6 +733,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -753,11 +756,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -787,6 +792,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1117,6 +1123,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1187,6 +1195,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1235,6 +1244,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1306,6 +1316,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1380,6 +1391,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1434,6 +1448,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1452,6 +1467,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1812,7 +1830,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1910,7 +1930,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1968,7 +1998,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2140,6 +2171,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2158,7 +2196,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2274,7 +2313,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2364,7 +2406,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2392,7 +2435,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x86/if_ether.rs b/src/x86/if_ether.rs index 8fb6dcaae..dae5505fd 100644 --- a/src/x86/if_ether.rs +++ b/src/x86/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -102,6 +103,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -110,6 +112,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -132,11 +135,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -166,3 +171,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/x86/if_packet.rs b/src/x86/if_packet.rs index 5c9eb4db1..0569031e3 100644 --- a/src/x86/if_packet.rs +++ b/src/x86/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86/if_tun.rs b/src/x86/if_tun.rs index 33d4aa16e..d98016e54 100644 --- a/src/x86/if_tun.rs +++ b/src/x86/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -132,6 +133,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -140,6 +142,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -162,11 +165,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -196,6 +201,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/x86/image.rs b/src/x86/image.rs index bff15e373..c95e29d35 100644 --- a/src/x86/image.rs +++ b/src/x86/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/x86/io_uring.rs b/src/x86/io_uring.rs index 25b871cac..a77b9f820 100644 --- a/src/x86/io_uring.rs +++ b/src/x86/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -320,6 +321,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -552,6 +640,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -609,7 +712,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -679,52 +783,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -846,6 +904,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -861,6 +920,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -892,6 +952,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -937,6 +998,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -988,6 +1052,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1008,8 +1076,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1018,6 +1090,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1049,11 +1122,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1096,7 +1172,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1136,6 +1211,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1212,7 +1330,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1260,7 +1380,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1337,12 +1460,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1360,6 +1478,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1456,12 +1587,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/x86/ioctl.rs b/src/x86/ioctl.rs index 3a104deee..7511adeae 100644 --- a/src/x86/ioctl.rs +++ b/src/x86/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074034178; pub const EXT4_IOC_GETRSVSZ: u32 = 2147771909; pub const EXT4_IOC_SETRSVSZ: u32 = 1074030086; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074030087; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076127240; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2149608705; -pub const ENI_SETMULT: u32 = 1074553191; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222036833; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074553230; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149319172; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074553184; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2147774477; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074553232; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2153251345; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2147773697; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225441817; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3221766944; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223092226; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076110081; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3223087369; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074553139; pub const I2OPARMSET: u32 = 3222825219; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074553224; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3226747403; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1075866880; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074553223; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2147773506; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074553185; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2147774625; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3237500508; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228508482; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223069448; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223606825; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074032378; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2147774200; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074291464; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074032376; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234616836; pub const RTC_EPOCH_SET: u32 = 1074032654; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074553170; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -830,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3225703951; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221509831; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -840,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2149345557; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222565638; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -868,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225441817; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -893,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -913,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074553220; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -923,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1079509648; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -949,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074032643; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074553187; pub const MTIOCPOS: u32 = 2147773699; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1028,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074291188; pub const FDSETPRM: u32 = 1075577410; pub const ATM_GETSTATZ: u32 = 1074553169; pub const ISST_IF_MSR_COMMAND: u32 = 3221552644; @@ -1039,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074024454; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074013190; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1072,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074553184; pub const ATM_SETLOOP: u32 = 1074553171; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221512970; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1104,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391394869; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222545172; -pub const ATM_DELLECSADDR: u32 = 1074553231; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1155,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222038786; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074553186; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1184,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1197,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074025836; pub const FDWERRORGET: u32 = 2149057047; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223606824; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1210,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2147762693; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1218,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221504262; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1236,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074553217; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1245,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074553222; pub const PHN_GET_REGS: u32 = 3221516290; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1265,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1277,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074553138; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1321,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1341,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2149581333; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226228250; -pub const ZATM_GETPOOLZ: u32 = 1074553186; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1353,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2147774201; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1364,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1384,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1397,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223606824; @@ -1418,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074553228; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074553225; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074032652; @@ -1431,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3225703953; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2147773698; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074049280; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1470,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221516026; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1499,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074045476; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/x86/keyctl.rs b/src/x86/keyctl.rs new file mode 100644 index 000000000..d99761abe --- /dev/null +++ b/src/x86/keyctl.rs @@ -0,0 +1,164 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_mode_t = crate::ctypes::c_ushort; +pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; +pub type __kernel_uid_t = crate::ctypes::c_ushort; +pub type __kernel_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ushort; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_old_uid_t = __kernel_uid_t; +pub type __kernel_old_gid_t = __kernel_gid_t; +pub type __kernel_size_t = crate::ctypes::c_uint; +pub type __kernel_ssize_t = crate::ctypes::c_int; +pub type __kernel_ptrdiff_t = crate::ctypes::c_int; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/x86/landlock.rs b/src/x86/landlock.rs index 2f9257ddf..cd2463a82 100644 --- a/src/x86/landlock.rs +++ b/src/x86/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -54,6 +55,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -70,9 +74,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -89,8 +95,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/x86/loop_device.rs b/src/x86/loop_device.rs index a69c0087d..b01a7a325 100644 --- a/src/x86/loop_device.rs +++ b/src/x86/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_mode_t = crate::ctypes::c_ushort; pub type __kernel_ipc_pid_t = crate::ctypes::c_ushort; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86/mempolicy.rs b/src/x86/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/x86/mempolicy.rs +++ b/src/x86/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/x86/net.rs b/src/x86/net.rs index f3093ac80..89af7d68c 100644 --- a/src/x86/net.rs +++ b/src/x86/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -55,6 +56,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C)] +pub struct __BindgenOpaqueArray(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -140,7 +144,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u32; 67usize], +pub bindgen_union_field: __BindgenOpaqueArray<[u32; 67usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -177,7 +181,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -338,7 +341,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -365,7 +367,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -395,7 +396,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -448,6 +448,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -475,7 +483,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -506,7 +512,6 @@ pub keyflags: __u8, #[repr(align(8))] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -525,7 +530,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1331,6 +1335,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2363,13 +2375,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2377,13 +2406,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2391,27 +2439,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2445,12 +2797,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2482,57 +2834,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2541,57 +2902,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2600,291 +2970,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2893,194 +3308,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3089,109 +3660,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3200,161 +3788,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3363,109 +3976,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/x86/netlink.rs b/src/x86/netlink.rs index 287111f8e..d7a199dfc 100644 --- a/src/x86/netlink.rs +++ b/src/x86/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -137,6 +138,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -742,6 +748,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -754,6 +761,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -895,6 +903,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -973,6 +982,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1043,6 +1054,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1091,6 +1103,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1162,6 +1175,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1236,6 +1250,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1290,6 +1307,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1308,6 +1326,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1952,7 +1973,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2295,11 +2326,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2318,7 +2375,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2382,6 +2441,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2434,7 +2503,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2571,7 +2643,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2596,6 +2670,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2643,7 +2734,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2728,6 +2826,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2975,7 +3074,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3026,7 +3127,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3040,7 +3142,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3416,7 +3521,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3619,6 +3730,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3702,13 +3841,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3720,7 +3868,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3737,7 +3887,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3757,7 +3937,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3798,7 +3988,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3940,6 +4142,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4009,7 +4234,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4107,7 +4334,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4165,7 +4402,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4337,6 +4575,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4355,7 +4600,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4471,7 +4717,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4561,7 +4810,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4589,7 +4839,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5377,22 +5630,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5410,16 +5663,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5452,16 +5708,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5503,7 +5759,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5526,6 +5782,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5541,20 +5803,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5589,6 +5857,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/x86/prctl.rs b/src/x86/prctl.rs index 88cdc034f..7a50cf773 100644 --- a/src/x86/prctl.rs +++ b/src/x86/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -148,6 +149,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -268,3 +270,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/x86/ptrace.rs b/src/x86/ptrace.rs index cabcf0295..76179fd69 100644 --- a/src/x86/ptrace.rs +++ b/src/x86/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -371,6 +372,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -795,6 +798,7 @@ pub const X86_CR4_SMEP_BIT: u32 = 20; pub const X86_CR4_SMAP_BIT: u32 = 21; pub const X86_CR4_PKE_BIT: u32 = 22; pub const X86_CR4_CET_BIT: u32 = 23; +pub const X86_CR4_LASS_BIT: u32 = 27; pub const X86_CR4_LAM_SUP_BIT: u32 = 28; pub const X86_CR4_FRED: u32 = 0; pub const CX86_PCR0: u32 = 32; diff --git a/src/x86/system.rs b/src/x86/system.rs index 87e1c0a59..745a1dfb2 100644 --- a/src/x86/system.rs +++ b/src/x86/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86/vm_sockets.rs b/src/x86/vm_sockets.rs index 378bf38e1..d2be6d81e 100644 --- a/src/x86/vm_sockets.rs +++ b/src/x86/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86/xdp.rs b/src/x86/xdp.rs index 49cb739dc..0d14c70a1 100644 --- a/src/x86/xdp.rs +++ b/src/x86/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = crate::ctypes::c_int; pub type __kernel_ptrdiff_t = crate::ctypes::c_int; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86_64/auxvec.rs b/src/x86_64/auxvec.rs index 1e56e6186..18eec07e0 100644 --- a/src/x86_64/auxvec.rs +++ b/src/x86_64/auxvec.rs @@ -1,7 +1,7 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const AT_SYSINFO_EHDR: u32 = 33; -pub const AT_VECTOR_SIZE_ARCH: u32 = 3; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; pub const AT_NULL: u32 = 0; pub const AT_IGNORE: u32 = 1; pub const AT_EXECFD: u32 = 2; diff --git a/src/x86_64/bootparam.rs b/src/x86_64/bootparam.rs index 59527fba2..fdeca167e 100644 --- a/src/x86_64/bootparam.rs +++ b/src/x86_64/bootparam.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86_64/btrfs.rs b/src/x86_64/btrfs.rs index c7cf4e1d7..8fc0f8593 100644 --- a/src/x86_64/btrfs.rs +++ b/src/x86_64/btrfs.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -173,10 +174,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -554,7 +555,7 @@ pub buf: [crate::ctypes::c_char; 3992usize], pub struct btrfs_ioctl_search_args_v2 { pub key: btrfs_ioctl_search_key, pub buf_size: __u64, -pub buf: __IncompleteArrayField<__u64>, +pub buf: __IncompleteArrayField<__u8>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -741,7 +742,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, @@ -759,6 +760,23 @@ pub subvolid: __u64, pub mode: __u32, pub count: __u32, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_ioctl_get_csums_entry { +pub offset: __u64, +pub length: __u64, +pub type_: __u32, +pub reserved: __u32, +} +#[repr(C)] +#[derive(Debug)] +pub struct btrfs_ioctl_get_csums_args { +pub offset: __u64, +pub length: __u64, +pub buf_size: __u64, +pub flags: __u64, +pub buf: __IncompleteArrayField<__u8>, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct btrfs_disk_key { @@ -912,7 +930,10 @@ pub cache_generation: __le64, pub uuid_tree_generation: __le64, pub metadata_uuid: [__u8; 16usize], pub nr_global_roots: __u64, -pub reserved: [__le64; 27usize], +pub remap_root: __le64, +pub remap_root_generation: __le64, +pub remap_root_level: __u8, +pub reserved: [__u8; 199usize], pub sys_chunk_array: [__u8; 2048usize], pub super_roots: [btrfs_root_backup; 4usize], pub padding: [__u8; 565usize], @@ -1176,6 +1197,15 @@ pub flags: __le64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] +pub struct btrfs_block_group_item_v2 { +pub used: __le64, +pub chunk_objectid: __le64, +pub flags: __le64, +pub remap_bytes: __le64, +pub identity_remap_count: __le32, +} +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] pub struct btrfs_free_space_info { pub extent_count: __le32, pub flags: __le32, @@ -1214,6 +1244,11 @@ pub size: __le64, pub reserved: [__le64; 2usize], pub encryption: __u8, } +#[repr(C, packed)] +#[derive(Debug, Copy, Clone)] +pub struct btrfs_remap_item { +pub address: __le64, +} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -1340,6 +1375,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -1355,6 +1391,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1386,6 +1423,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1431,6 +1469,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1482,6 +1523,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const BTRFS_IOCTL_MAGIC: u32 = 148; pub const BTRFS_VOL_NAME_MAX: u32 = 255; pub const BTRFS_LABEL_SIZE: u32 = 256; @@ -1547,6 +1591,7 @@ pub const BTRFS_FEATURE_INCOMPAT_ZONED: u32 = 4096; pub const BTRFS_FEATURE_INCOMPAT_EXTENT_TREE_V2: u32 = 8192; pub const BTRFS_FEATURE_INCOMPAT_RAID_STRIPE_TREE: u32 = 16384; pub const BTRFS_FEATURE_INCOMPAT_SIMPLE_QUOTA: u32 = 65536; +pub const BTRFS_FEATURE_INCOMPAT_REMAP_TREE: u32 = 131072; pub const BTRFS_BALANCE_CTL_PAUSE: u32 = 1; pub const BTRFS_BALANCE_CTL_CANCEL: u32 = 2; pub const BTRFS_BALANCE_DATA: u32 = 1; @@ -1607,6 +1652,16 @@ 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_GET_CSUMS_HAS_CSUMS: u32 = 1; +pub const BTRFS_GET_CSUMS_ZEROED: u32 = 2; +pub const BTRFS_GET_CSUMS_NODATASUM: u32 = 4; +pub const BTRFS_GET_CSUMS_COMPRESSED: u32 = 8; +pub const BTRFS_GET_CSUMS_ENCRYPTED: u32 = 16; +pub const BTRFS_GET_CSUMS_INLINE: u32 = 32; +pub const BTRFS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const BTRFS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const BTRFS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const BTRFS_SHUTDOWN_FLAGS_LAST: u32 = 3; pub const BTRFS_MAGIC: u64 = 5575266562640200287; pub const BTRFS_MAX_LEVEL: u32 = 8; pub const BTRFS_NAME_LEN: u32 = 255; @@ -1623,6 +1678,7 @@ pub const BTRFS_UUID_TREE_OBJECTID: u32 = 9; pub const BTRFS_FREE_SPACE_TREE_OBJECTID: u32 = 10; pub const BTRFS_BLOCK_GROUP_TREE_OBJECTID: u32 = 11; pub const BTRFS_RAID_STRIPE_TREE_OBJECTID: u32 = 12; +pub const BTRFS_REMAP_TREE_OBJECTID: u32 = 13; pub const BTRFS_DEV_STATS_OBJECTID: u32 = 0; pub const BTRFS_BALANCE_OBJECTID: i32 = -4; pub const BTRFS_ORPHAN_OBJECTID: i32 = -5; @@ -1672,6 +1728,9 @@ pub const BTRFS_DEV_EXTENT_KEY: u32 = 204; pub const BTRFS_DEV_ITEM_KEY: u32 = 216; pub const BTRFS_CHUNK_ITEM_KEY: u32 = 228; pub const BTRFS_RAID_STRIPE_KEY: u32 = 230; +pub const BTRFS_IDENTITY_REMAP_KEY: u32 = 234; +pub const BTRFS_REMAP_KEY: u32 = 235; +pub const BTRFS_REMAP_BACKREF_KEY: u32 = 236; pub const BTRFS_QGROUP_STATUS_KEY: u32 = 240; pub const BTRFS_QGROUP_INFO_KEY: u32 = 242; pub const BTRFS_QGROUP_LIMIT_KEY: u32 = 244; @@ -1751,7 +1810,9 @@ pub const BTRFS_BLOCK_GROUP_RAID5: u32 = 128; pub const BTRFS_BLOCK_GROUP_RAID6: u32 = 256; pub const BTRFS_BLOCK_GROUP_RAID1C3: u32 = 512; pub const BTRFS_BLOCK_GROUP_RAID1C4: u32 = 1024; -pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 7; +pub const BTRFS_BLOCK_GROUP_REMAPPED: u32 = 2048; +pub const BTRFS_BLOCK_GROUP_METADATA_REMAP: u32 = 4096; +pub const BTRFS_BLOCK_GROUP_TYPE_MASK: u32 = 4103; pub const BTRFS_BLOCK_GROUP_PROFILE_MASK: u32 = 2040; pub const BTRFS_BLOCK_GROUP_RAID56_MASK: u32 = 384; pub const BTRFS_BLOCK_GROUP_RAID1_MASK: u32 = 1552; @@ -1759,6 +1820,7 @@ pub const BTRFS_AVAIL_ALLOC_BIT_SINGLE: u64 = 281474976710656; pub const BTRFS_SPACE_INFO_GLOBAL_RSV: u64 = 562949953421312; pub const BTRFS_EXTENDED_PROFILE_MASK: u64 = 281474976712696; pub const BTRFS_FREE_SPACE_USING_BITMAPS: u32 = 1; +pub const BTRFS_FREE_SPACE_FLAGS_MASK: u32 = 1; pub const BTRFS_QGROUP_LEVEL_SHIFT: u32 = 48; pub const BTRFS_QGROUP_STATUS_FLAG_ON: u32 = 1; pub const BTRFS_QGROUP_STATUS_FLAG_RESCAN: u32 = 2; @@ -1861,6 +1923,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union btrfs_ioctl_vol_args_v2__bindgen_ty_1 { pub __bindgen_anon_1: btrfs_ioctl_vol_args_v2__bindgen_ty_1__bindgen_ty_1, pub unused: [__u64; 4usize], diff --git a/src/x86_64/elf_uapi.rs b/src/x86_64/elf_uapi.rs index d0b58c4ce..fff1ee896 100644 --- a/src/x86_64/elf_uapi.rs +++ b/src/x86_64/elf_uapi.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -624,6 +625,8 @@ pub const NN_RISCV_VECTOR: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_VECTOR: u32 = 2305; pub const NN_RISCV_TAGGED_ADDR_CTRL: &[u8; 6] = b"LINUX\0"; pub const NT_RISCV_TAGGED_ADDR_CTRL: u32 = 2306; +pub const NN_RISCV_USER_CFI: &[u8; 6] = b"LINUX\0"; +pub const NT_RISCV_USER_CFI: u32 = 2307; pub const NN_LOONGARCH_CPUCFG: &[u8; 6] = b"LINUX\0"; pub const NT_LOONGARCH_CPUCFG: u32 = 2560; pub const NN_LOONGARCH_CSR: &[u8; 6] = b"LINUX\0"; diff --git a/src/x86_64/errno.rs b/src/x86_64/errno.rs index 48eaf61f9..fb76f82e8 100644 --- a/src/x86_64/errno.rs +++ b/src/x86_64/errno.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,3 +135,4 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; diff --git a/src/x86_64/general.rs b/src/x86_64/general.rs index 2c052e7f0..ca5672de4 100644 --- a/src/x86_64/general.rs +++ b/src/x86_64/general.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -154,6 +155,13 @@ pub flags: __u64, pub mode: __u64, pub resolve: __u64, } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct delegation { +pub d_flags: __u32, +pub d_type: __u16, +pub __pad: __u16, +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct epoll_event { @@ -287,10 +295,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -951,6 +959,34 @@ pub mode: __u64, pub move_: __s64, } #[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info { +pub mask: __u64, +pub cgroupid: __u64, +pub pid: __u32, +pub tgid: __u32, +pub ppid: __u32, +pub ruid: __u32, +pub rgid: __u32, +pub euid: __u32, +pub egid: __u32, +pub suid: __u32, +pub sgid: __u32, +pub fsuid: __u32, +pub fsgid: __u32, +pub exit_code: __s32, +pub __bindgen_anon_1: pidfd_info__bindgen_ty_1, +pub supported_mask: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pidfd_info__bindgen_ty_1 { +pub coredump_mask: __u32, +pub coredump_signal: __u32, +pub coredump_code: __u32, +pub coredump_pad: __u32, +} +#[repr(C)] #[derive(Debug)] pub struct linux_dirent64 { pub d_ino: crate::ctypes::c_ulong, @@ -1050,7 +1086,6 @@ pub struct user_desc { pub entry_number: crate::ctypes::c_uint, pub base_addr: crate::ctypes::c_uint, pub limit: crate::ctypes::c_uint, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub __bindgen_padding_0: [u8; 3usize], } @@ -1067,9 +1102,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 = 397568; -pub const LINUX_VERSION_MAJOR: u32 = 6; -pub const LINUX_VERSION_PATCHLEVEL: u32 = 17; +pub const LINUX_VERSION_CODE: u32 = 459264; +pub const LINUX_VERSION_MAJOR: u32 = 7; +pub const LINUX_VERSION_PATCHLEVEL: u32 = 2; pub const LINUX_VERSION_SUBLEVEL: u32 = 0; pub const __BITS_PER_LONG_LONG: u32 = 64; pub const __FD_SETSIZE: u32 = 1024; @@ -1157,6 +1192,7 @@ pub const __O_SYNC: u32 = 1048576; pub const O_SYNC: u32 = 1052672; pub const O_PATH: u32 = 2097152; pub const __O_TMPFILE: u32 = 4194304; +pub const O_EMPTYPATH: u32 = 67108864; pub const O_TMPFILE: u32 = 4259840; pub const O_NDELAY: u32 = 2048; pub const F_DUPFD: u32 = 0; @@ -1229,6 +1265,8 @@ pub const RWH_WRITE_LIFE_MEDIUM: u32 = 3; pub const RWH_WRITE_LIFE_LONG: u32 = 4; pub const RWH_WRITE_LIFE_EXTREME: u32 = 5; pub const RWF_WRITE_LIFE_NOT_SET: u32 = 0; +pub const F_GETDELEG: u32 = 1039; +pub const F_SETDELEG: u32 = 1040; pub const DN_ACCESS: u32 = 1; pub const DN_MODIFY: u32 = 2; pub const DN_CREATE: u32 = 4; @@ -1240,6 +1278,7 @@ 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_NSFS_ROOT: i32 = -10003; pub const FD_INVALID: i32 = -10009; pub const AT_SYMLINK_NOFOLLOW: u32 = 256; pub const AT_SYMLINK_FOLLOW: u32 = 1024; @@ -1399,6 +1438,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const OPEN_TREE_CLOEXEC: u32 = 524288; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; @@ -1415,6 +1455,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -1446,6 +1487,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -1491,6 +1533,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -1542,6 +1587,9 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; pub const FUTEX_WAIT: u32 = 0; pub const FUTEX_WAKE: u32 = 1; pub const FUTEX_FD: u32 = 2; @@ -1558,7 +1606,9 @@ pub const FUTEX_CMP_REQUEUE_PI: u32 = 12; pub const FUTEX_LOCK_PI2: u32 = 13; pub const FUTEX_PRIVATE_FLAG: u32 = 128; pub const FUTEX_CLOCK_REALTIME: u32 = 256; -pub const FUTEX_CMD_MASK: i32 = -385; +pub const FUTEX_ROBUST_UNLOCK: u32 = 512; +pub const FUTEX_ROBUST_LIST32: u32 = 1024; +pub const FUTEX_CMD_MASK: i32 = -1921; pub const FUTEX_WAIT_PRIVATE: u32 = 128; pub const FUTEX_WAKE_PRIVATE: u32 = 129; pub const FUTEX_REQUEUE_PRIVATE: u32 = 131; @@ -1572,6 +1622,18 @@ pub const FUTEX_WAIT_BITSET_PRIVATE: u32 = 137; pub const FUTEX_WAKE_BITSET_PRIVATE: u32 = 138; pub const FUTEX_WAIT_REQUEUE_PI_PRIVATE: u32 = 139; pub const FUTEX_CMP_REQUEUE_PI_PRIVATE: u32 = 140; +pub const FUTEX_UNLOCK_PI_LIST64: u32 = 519; +pub const FUTEX_UNLOCK_PI_LIST64_PRIVATE: u32 = 647; +pub const FUTEX_UNLOCK_PI_LIST32: u32 = 1543; +pub const FUTEX_UNLOCK_PI_LIST32_PRIVATE: u32 = 1671; +pub const FUTEX_UNLOCK_WAKE_LIST64: u32 = 513; +pub const FUTEX_UNLOCK_WAKE_LIST64_PRIVATE: u32 = 641; +pub const FUTEX_UNLOCK_WAKE_LIST32: u32 = 1537; +pub const FUTEX_UNLOCK_WAKE_LIST32_PRIVATE: u32 = 1665; +pub const FUTEX_UNLOCK_BITSET_LIST64: u32 = 522; +pub const FUTEX_UNLOCK_BITSET_LIST64_PRIVATE: u32 = 650; +pub const FUTEX_UNLOCK_BITSET_LIST32: u32 = 1546; +pub const FUTEX_UNLOCK_BITSET_LIST32_PRIVATE: u32 = 1674; pub const FUTEX2_SIZE_U8: u32 = 0; pub const FUTEX2_SIZE_U16: u32 = 1; pub const FUTEX2_SIZE_U32: u32 = 2; @@ -1587,6 +1649,8 @@ pub const FUTEX_WAITERS: u32 = 2147483648; pub const FUTEX_OWNER_DIED: u32 = 1073741824; pub const FUTEX_TID_MASK: u32 = 1073741823; pub const ROBUST_LIST_LIMIT: u32 = 2048; +pub const FUTEX_ROBUST_MOD_PI: u32 = 1; +pub const FUTEX_ROBUST_MOD_MASK: u32 = 1; pub const FUTEX_BITSET_MATCH_ANY: u32 = 4294967295; pub const FUTEX_OP_SET: u32 = 0; pub const FUTEX_OP_ADD: u32 = 1; @@ -1713,6 +1777,8 @@ pub const DMA_BUF_MAGIC: u32 = 1145913666; pub const DEVMEM_MAGIC: u32 = 1162691661; pub const SECRETMEM_MAGIC: u32 = 1397048141; pub const PID_FS_MAGIC: u32 = 1346978886; +pub const GUEST_MEMFD_MAGIC: u32 = 1196246349; +pub const NULL_FS_MAGIC: u32 = 1314212940; pub const MAP_32BIT: u32 = 64; pub const MAP_ABOVE4G: u32 = 128; pub const PROT_READ: u32 = 1; @@ -1904,7 +1970,12 @@ pub const CLONE_NEWNET: u32 = 1073741824; pub const CLONE_IO: u32 = 2147483648; pub const CLONE_CLEAR_SIGHAND: u64 = 4294967296; pub const CLONE_INTO_CGROUP: u64 = 8589934592; +pub const CLONE_AUTOREAP: u64 = 17179869184; +pub const CLONE_NNP: u64 = 34359738368; +pub const CLONE_PIDFD_AUTOKILL: u64 = 68719476736; +pub const CLONE_EMPTY_MNTNS: u64 = 137438953472; pub const CLONE_NEWTIME: u32 = 128; +pub const UNSHARE_EMPTY_MNTNS: u32 = 1048576; pub const CLONE_ARGS_SIZE_VER0: u32 = 64; pub const CLONE_ARGS_SIZE_VER1: u32 = 80; pub const CLONE_ARGS_SIZE_VER2: u32 = 88; @@ -1926,6 +1997,7 @@ pub const SCHED_FLAG_UTIL_CLAMP_MAX: u32 = 64; pub const SCHED_FLAG_KEEP_ALL: u32 = 24; pub const SCHED_FLAG_UTIL_CLAMP: u32 = 96; pub const SCHED_FLAG_ALL: u32 = 127; +pub const SCHED_GETATTR_FLAG_DL_DYNAMIC: u32 = 1; pub const NSIG: u32 = 32; pub const SIGHUP: u32 = 1; pub const SIGINT: u32 = 2; @@ -2652,6 +2724,7 @@ pub const __NR_statx: u32 = 332; pub const __NR_io_pgetevents: u32 = 333; pub const __NR_rseq: u32 = 334; pub const __NR_uretprobe: u32 = 335; +pub const __NR_uprobe: u32 = 336; pub const __NR_pidfd_send_signal: u32 = 424; pub const __NR_io_uring_setup: u32 = 425; pub const __NR_io_uring_enter: u32 = 426; @@ -2698,6 +2771,8 @@ 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 __NR_listns: u32 = 470; +pub const __NR_rseq_slice_yield: u32 = 471; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WSTOPPED: u32 = 2; @@ -2810,6 +2885,32 @@ pub const UFFD_FEATURE_POISON: u32 = 16384; pub const UFFD_FEATURE_WP_ASYNC: u32 = 32768; pub const UFFD_FEATURE_MOVE: u32 = 65536; pub const UFFD_USER_MODE_ONLY: u32 = 1; +pub const CLOSE_RANGE_UNSHARE: u32 = 2; +pub const CLOSE_RANGE_CLOEXEC: u32 = 4; +pub const PIDFD_NONBLOCK: u32 = 2048; +pub const PIDFD_THREAD: u32 = 128; +pub const PIDFD_SIGNAL_THREAD: u32 = 1; +pub const PIDFD_SIGNAL_THREAD_GROUP: u32 = 2; +pub const PIDFD_SIGNAL_PROCESS_GROUP: u32 = 4; +pub const PIDFD_INFO_PID: u32 = 1; +pub const PIDFD_INFO_CREDS: u32 = 2; +pub const PIDFD_INFO_CGROUPID: u32 = 4; +pub const PIDFD_INFO_EXIT: u32 = 8; +pub const PIDFD_INFO_COREDUMP: u32 = 16; +pub const PIDFD_INFO_SUPPORTED_MASK: u32 = 32; +pub const PIDFD_INFO_COREDUMP_SIGNAL: u32 = 64; +pub const PIDFD_INFO_COREDUMP_CODE: u32 = 128; +pub const PIDFD_INFO_SIZE_VER0: u32 = 64; +pub const PIDFD_INFO_SIZE_VER1: u32 = 72; +pub const PIDFD_INFO_SIZE_VER2: u32 = 80; +pub const PIDFD_INFO_SIZE_VER3: u32 = 88; +pub const PIDFD_COREDUMPED: u32 = 1; +pub const PIDFD_COREDUMP_SKIP: u32 = 2; +pub const PIDFD_COREDUMP_USER: u32 = 4; +pub const PIDFD_COREDUMP_ROOT: u32 = 8; +pub const PIDFD_SELF: i32 = -10000; +pub const PIDFD_SELF_PROCESS: i32 = -10001; +pub const PIDFS_IOCTL_MAGIC: u32 = 255; pub const DT_UNKNOWN: u32 = 0; pub const DT_FIFO: u32 = 1; pub const DT_CHR: u32 = 2; @@ -2942,6 +3043,12 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union sigval { pub sival_int: crate::ctypes::c_int, pub sival_ptr: *mut crate::ctypes::c_void, @@ -3051,13 +3158,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3065,13 +3189,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +} +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; } +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -3079,24 +3222,323 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } @@ -3132,187 +3574,216 @@ pub const MEMBARRIER_CMD_SHARED: membarrier_cmd = membarrier_cmd::MEMBARRIER_CMD } impl user_desc { #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_32bit(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_32bit(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_32bit_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_32bit_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn contents(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 2u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_contents(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 2u8, val as u64) +self._bitfield_1.set_const::<1usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn contents_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 2u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_contents_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn read_exec_only(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_read_exec_only(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn read_exec_only_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_read_exec_only_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn limit_in_pages(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_limit_in_pages(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn limit_in_pages_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_limit_in_pages_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn seg_not_present(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_seg_not_present(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 1u8, val as u64) +self._bitfield_1.set_const::<5usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn seg_not_present_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_seg_not_present_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn useable(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_useable(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(6usize, 1u8, val as u64) +self._bitfield_1.set_const::<6usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn useable_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 6usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_useable_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 6usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn lm(&self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_lm(&mut self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(7usize, 1u8, val as u64) +self._bitfield_1.set_const::<7usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn lm_raw(this: *const Self) -> crate::ctypes::c_uint { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 7usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<7usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_lm_raw(this: *mut Self, val: crate::ctypes::c_uint) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 7usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<7usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(seg_32bit: crate::ctypes::c_uint, contents: crate::ctypes::c_uint, read_exec_only: crate::ctypes::c_uint, limit_in_pages: crate::ctypes::c_uint, seg_not_present: crate::ctypes::c_uint, useable: crate::ctypes::c_uint, lm: crate::ctypes::c_uint) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let seg_32bit: u32 = unsafe { ::core::mem::transmute(seg_32bit) }; seg_32bit as u64 }); -__bindgen_bitfield_unit.set(1usize, 2u8, { +__bindgen_bitfield_unit.set_const::<1usize, 2u8>({ let contents: u32 = unsafe { ::core::mem::transmute(contents) }; contents as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let read_exec_only: u32 = unsafe { ::core::mem::transmute(read_exec_only) }; read_exec_only as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let limit_in_pages: u32 = unsafe { ::core::mem::transmute(limit_in_pages) }; limit_in_pages as u64 }); -__bindgen_bitfield_unit.set(5usize, 1u8, { +__bindgen_bitfield_unit.set_const::<5usize, 1u8>({ let seg_not_present: u32 = unsafe { ::core::mem::transmute(seg_not_present) }; seg_not_present as u64 }); -__bindgen_bitfield_unit.set(6usize, 1u8, { +__bindgen_bitfield_unit.set_const::<6usize, 1u8>({ let useable: u32 = unsafe { ::core::mem::transmute(useable) }; useable as u64 }); -__bindgen_bitfield_unit.set(7usize, 1u8, { +__bindgen_bitfield_unit.set_const::<7usize, 1u8>({ let lm: u32 = unsafe { ::core::mem::transmute(lm) }; lm as u64 }); diff --git a/src/x86_64/if_arp.rs b/src/x86_64/if_arp.rs index b049cfec9..0fec37b7c 100644 --- a/src/x86_64/if_arp.rs +++ b/src/x86_64/if_arp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -723,6 +724,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -731,6 +733,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -753,11 +756,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -787,6 +792,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const __LITTLE_ENDIAN: u32 = 1234; pub const PACKET_HOST: u32 = 0; pub const PACKET_BROADCAST: u32 = 1; @@ -1117,6 +1123,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_4 = _bindgen_ty_4::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_4 = _bindgen_ty_4::IFLA_TAILROOM; 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; @@ -1187,6 +1195,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_9 = _bindgen_ty_9::BRIDGE_MODE_HAIRPIN; @@ -1235,6 +1244,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPO pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_10 = _bindgen_ty_10::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_10 = _bindgen_ty_10::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_11 = _bindgen_ty_11::IFLA_INFO_KIND; @@ -1306,6 +1316,7 @@ 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_HEADROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_20 = _bindgen_ty_20::IFLA_NETKIT_PAIRING; 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; @@ -1380,6 +1391,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_25 = _bindgen_ty_25::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_25 = _bindgen_ty_25::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_26 = _bindgen_ty_26::IFLA_BAREUDP_PORT; @@ -1434,6 +1448,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_MISSE 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_LACP_STRICT: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_LACP_STRICT; 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; @@ -1452,6 +1467,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_31 = _bindgen_ty_31::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_31 = _bindgen_ty_31::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_31 = _bindgen_ty_31::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_32 = _bindgen_ty_32::IFLA_VF_INFO; @@ -1812,7 +1830,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -1910,7 +1930,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -1968,7 +1998,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -2140,6 +2171,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -2158,7 +2196,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -2274,7 +2313,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -2364,7 +2406,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -2392,7 +2435,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] diff --git a/src/x86_64/if_ether.rs b/src/x86_64/if_ether.rs index 48b34ae75..6d4896fca 100644 --- a/src/x86_64/if_ether.rs +++ b/src/x86_64/if_ether.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -104,6 +105,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -112,6 +114,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -134,11 +137,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -168,3 +173,4 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; diff --git a/src/x86_64/if_packet.rs b/src/x86_64/if_packet.rs index d943d1785..4e886131c 100644 --- a/src/x86_64/if_packet.rs +++ b/src/x86_64/if_packet.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86_64/if_tun.rs b/src/x86_64/if_tun.rs index 0ab949a5d..138ce75cf 100644 --- a/src/x86_64/if_tun.rs +++ b/src/x86_64/if_tun.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -134,6 +135,7 @@ pub const ETH_P_ATMMPOA: u32 = 34892; pub const ETH_P_PPP_DISC: u32 = 34915; pub const ETH_P_PPP_SES: u32 = 34916; pub const ETH_P_LINK_CTL: u32 = 34924; +pub const ETH_P_8021AC: u32 = 34928; pub const ETH_P_ATMFATE: u32 = 34948; pub const ETH_P_PAE: u32 = 34958; pub const ETH_P_PROFINET: u32 = 34962; @@ -142,6 +144,7 @@ pub const ETH_P_AOE: u32 = 34978; pub const ETH_P_ETHERCAT: u32 = 34980; pub const ETH_P_8021AD: u32 = 34984; pub const ETH_P_802_EX1: u32 = 34997; +pub const ETH_P_MXLGSW: u32 = 35011; pub const ETH_P_PREAUTH: u32 = 35015; pub const ETH_P_TIPC: u32 = 35018; pub const ETH_P_LLDP: u32 = 35020; @@ -164,11 +167,13 @@ pub const ETH_P_LOOPBACK: u32 = 36864; pub const ETH_P_QINQ1: u32 = 37120; pub const ETH_P_QINQ2: u32 = 37376; pub const ETH_P_QINQ3: u32 = 37632; +pub const ETH_P_YT921X: u32 = 39304; pub const ETH_P_EDSA: u32 = 56026; pub const ETH_P_DSA_8021Q: u32 = 56027; pub const ETH_P_DSA_A5PSW: u32 = 57345; pub const ETH_P_IFE: u32 = 60734; pub const ETH_P_AF_IUCV: u32 = 64507; +pub const ETH_P_NXP_NETC: u32 = 64826; pub const ETH_P_802_3_MIN: u32 = 1536; pub const ETH_P_802_3: u32 = 1; pub const ETH_P_AX25: u32 = 2; @@ -198,6 +203,7 @@ pub const ETH_P_CAIF: u32 = 247; pub const ETH_P_XDSA: u32 = 248; pub const ETH_P_MAP: u32 = 249; pub const ETH_P_MCTP: u32 = 250; +pub const ETH_P_GRE_OSI: u32 = 254; pub const BPF_LD: u32 = 0; pub const BPF_LDX: u32 = 1; pub const BPF_ST: u32 = 2; diff --git a/src/x86_64/image.rs b/src/x86_64/image.rs index bff15e373..c95e29d35 100644 --- a/src/x86_64/image.rs +++ b/src/x86_64/image.rs @@ -1,3 +1,3 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ diff --git a/src/x86_64/io_uring.rs b/src/x86_64/io_uring.rs index 465f7d6b8..c62282c32 100644 --- a/src/x86_64/io_uring.rs +++ b/src/x86_64/io_uring.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -51,6 +52,9 @@ pub type __sum16 = __u16; pub type __wsum = __u32; pub type __poll_t = crate::ctypes::c_uint; pub type __kernel_rwf_t = crate::ctypes::c_int; +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -175,10 +179,10 @@ pub __spare2: [__u64; 43usize], pub str_: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] +#[derive(Copy, Clone)] pub struct mnt_id_req { pub size: __u32, -pub spare: __u32, +pub __bindgen_anon_1: mnt_id_req__bindgen_ty_1, pub mnt_id: __u64, pub param: __u64, pub mnt_ns_id: __u64, @@ -322,6 +326,93 @@ pub build_id_addr: __u64, } #[repr(C)] #[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_rqe { +pub off: __u64, +pub len: __u32, +pub __pad: __u32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_cqe { +pub off: __u64, +pub __pad: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_offsets { +pub head: __u32, +pub tail: __u32, +pub rqes: __u32, +pub __resv2: __u32, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_area_reg { +pub addr: __u64, +pub len: __u64, +pub rq_area_token: __u64, +pub flags: __u32, +pub dmabuf_fd: __u32, +pub __resv2: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_stats { +pub copy_count: __u64, +pub copy_bytes: __u64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_event_desc { +pub user_data: __u64, +pub type_mask: __u32, +pub flags: __u32, +pub stats_offset: __u64, +pub __resv2: [__u64; 9usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_zcrx_ifq_reg { +pub if_idx: __u32, +pub if_rxq: __u32, +pub rq_entries: __u32, +pub flags: __u32, +pub area_ptr: __u64, +pub region_ptr: __u64, +pub offsets: io_uring_zcrx_offsets, +pub zcrx_id: __u32, +pub rx_buf_len: __u32, +pub event_desc: __u64, +pub __resv: [__u64; 2usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_flush_rq { +pub __resv: [__u64; 6usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_export { +pub zcrx_fd: __u32, +pub __resv1: [__u32; 11usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct zcrx_ctrl_arm_event { +pub event_type: __u32, +pub __resv: [__u32; 11usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct zcrx_ctrl { +pub zcrx_id: __u32, +pub op: __u32, +pub __resv: [__u64; 2usize], +pub __bindgen_anon_1: zcrx_ctrl__bindgen_ty_1, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct __kernel_timespec { pub tv_sec: __kernel_time64_t, pub tv_nsec: crate::ctypes::c_longlong, @@ -402,7 +493,7 @@ pub __bindgen_anon_1: __BindgenUnionField, pub optval: __BindgenUnionField<__u64>, pub cmd: __BindgenUnionField<[__u8; 0usize]>, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -550,6 +641,21 @@ pub resv: __u8, pub resv2: [__u32; 3usize], } #[repr(C)] +pub struct io_uring_task_restriction { +pub flags: __u16, +pub nr_res: __u16, +pub resv: [__u32; 3usize], +pub __bindgen_anon_1: io_uring_task_restriction__bindgen_ty_1, +} +#[repr(C)] +pub struct io_uring_task_restriction__bindgen_ty_1 { +pub __empty_restrictions: io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1, +pub restrictions: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct io_uring_task_restriction__bindgen_ty_1__bindgen_ty_1 {} +#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct io_uring_clock_register { pub clockid: __u32, @@ -581,7 +687,7 @@ pub __bindgen_anon_1: io_uring_buf_ring__bindgen_ty_1, pub struct io_uring_buf_ring__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 2usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 16usize]>, } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -607,7 +713,8 @@ pub ring_addr: __u64, pub ring_entries: __u32, pub bgid: __u16, pub flags: __u16, -pub resv: [__u64; 3usize], +pub min_left: __u32, +pub resv: [__u32; 5usize], } #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -677,52 +784,6 @@ 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, -pub __pad: __u32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_cqe { -pub off: __u64, -pub __pad: __u64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_offsets { -pub head: __u32, -pub tail: __u32, -pub rqes: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_area_reg { -pub addr: __u64, -pub len: __u64, -pub rq_area_token: __u64, -pub flags: __u32, -pub dmabuf_fd: __u32, -pub __resv2: [__u64; 2usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct io_uring_zcrx_ifq_reg { -pub if_idx: __u32, -pub if_rxq: __u32, -pub rq_entries: __u32, -pub flags: __u32, -pub area_ptr: __u64, -pub region_ptr: __u64, -pub offsets: io_uring_zcrx_offsets, -pub zcrx_id: __u32, -pub __resv2: __u32, -pub __resv: [__u64; 3usize], -} pub const NR_OPEN: u32 = 1024; pub const NGROUPS_MAX: u32 = 65536; pub const ARG_MAX: u32 = 131072; @@ -844,6 +905,7 @@ pub const MS_RMT_MASK: u32 = 41943121; pub const MS_MGC_VAL: u32 = 3236757504; pub const MS_MGC_MSK: u32 = 4294901760; pub const OPEN_TREE_CLONE: u32 = 1; +pub const OPEN_TREE_NAMESPACE: u32 = 2; pub const MOVE_MOUNT_F_SYMLINKS: u32 = 1; pub const MOVE_MOUNT_F_AUTOMOUNTS: u32 = 2; pub const MOVE_MOUNT_F_EMPTY_PATH: u32 = 4; @@ -859,6 +921,7 @@ pub const FSPICK_SYMLINK_NOFOLLOW: u32 = 2; pub const FSPICK_NO_AUTOMOUNT: u32 = 4; pub const FSPICK_EMPTY_PATH: u32 = 8; pub const FSMOUNT_CLOEXEC: u32 = 1; +pub const FSMOUNT_NAMESPACE: u32 = 2; pub const MOUNT_ATTR_RDONLY: u32 = 1; pub const MOUNT_ATTR_NOSUID: u32 = 2; pub const MOUNT_ATTR_NODEV: u32 = 4; @@ -890,6 +953,7 @@ pub const STATMOUNT_MNT_UIDMAP: u32 = 8192; pub const STATMOUNT_MNT_GIDMAP: u32 = 16384; pub const LSMT_ROOT: i32 = -1; pub const LISTMOUNT_REVERSE: u32 = 1; +pub const STATMOUNT_BY_FD: u32 = 1; pub const INR_OPEN_CUR: u32 = 1024; pub const INR_OPEN_MAX: u32 = 4096; pub const BLOCK_SIZE_BITS: u32 = 10; @@ -935,6 +999,9 @@ pub const FS_XFLAG_NODEFRAG: u32 = 8192; pub const FS_XFLAG_FILESTREAM: u32 = 16384; pub const FS_XFLAG_DAX: u32 = 32768; pub const FS_XFLAG_COWEXTSIZE: u32 = 65536; +pub const FS_XFLAG_VERITY: u32 = 131072; +pub const FS_XFLAG_CASEFOLD: u32 = 262144; +pub const FS_XFLAG_CASENONPRESERVING: u32 = 524288; pub const FS_XFLAG_HASATTR: u32 = 2147483648; pub const BMAP_IOCTL: u32 = 1; pub const FSLABEL_MAX: u32 = 256; @@ -986,6 +1053,10 @@ pub const PAGE_IS_SOFT_DIRTY: u32 = 128; pub const PAGE_IS_GUARD: u32 = 256; pub const PM_SCAN_WP_MATCHING: u32 = 1; pub const PM_SCAN_CHECK_WPASYNC: u32 = 2; +pub const FS_SHUTDOWN_FLAGS_DEFAULT: u32 = 0; +pub const FS_SHUTDOWN_FLAGS_LOGFLUSH: u32 = 1; +pub const FS_SHUTDOWN_FLAGS_NOLOGFLUSH: u32 = 2; +pub const IORING_ZCRX_AREA_SHIFT: u32 = 48; pub const IORING_RW_ATTR_FLAG_PI: u32 = 1; pub const IORING_FILE_INDEX_ALLOC: i32 = -1; pub const IORING_SETUP_IOPOLL: u32 = 1; @@ -1006,8 +1077,12 @@ 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_SETUP_CQE_MIXED: u32 = 262144; +pub const IORING_SETUP_SQE_MIXED: u32 = 524288; +pub const IORING_SETUP_SQ_REWIND: u32 = 1048576; pub const IORING_URING_CMD_FIXED: u32 = 1; -pub const IORING_URING_CMD_MASK: u32 = 1; +pub const IORING_URING_CMD_MULTISHOT: u32 = 2; +pub const IORING_URING_CMD_MASK: u32 = 3; pub const IORING_FSYNC_DATASYNC: u32 = 1; pub const IORING_TIMEOUT_ABS: u32 = 1; pub const IORING_TIMEOUT_UPDATE: u32 = 2; @@ -1016,6 +1091,7 @@ pub const IORING_TIMEOUT_REALTIME: u32 = 8; pub const IORING_LINK_TIMEOUT_UPDATE: u32 = 16; pub const IORING_TIMEOUT_ETIME_SUCCESS: u32 = 32; pub const IORING_TIMEOUT_MULTISHOT: u32 = 64; +pub const IORING_TIMEOUT_IMMEDIATE_ARG: u32 = 128; pub const IORING_TIMEOUT_CLOCK_MASK: u32 = 12; pub const IORING_TIMEOUT_UPDATE_MASK: u32 = 18; pub const SPLICE_F_FD_IN_FIXED: u32 = 2147483648; @@ -1047,11 +1123,14 @@ 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_NOP_CQE32: u32 = 32; 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; pub const IORING_CQE_F_NOTIF: u32 = 8; pub const IORING_CQE_F_BUF_MORE: u32 = 16; +pub const IORING_CQE_F_SKIP: u32 = 32; +pub const IORING_CQE_F_32: u32 = 32768; pub const IORING_CQE_BUFFER_SHIFT: u32 = 16; pub const IORING_OFF_SQ_RING: u32 = 0; pub const IORING_OFF_CQ_RING: u32 = 134217728; @@ -1094,7 +1173,6 @@ 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; pub const IORING_REGISTER_SRC_REGISTERED: _bindgen_ty_3 = _bindgen_ty_3::IORING_REGISTER_SRC_REGISTERED; @@ -1134,6 +1212,49 @@ PROCMAP_QUERY_FILE_BACKED_VMA = 32, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum io_uring_zcrx_area_flags { +IORING_ZCRX_AREA_DMABUF = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_reg_flags { +ZCRX_REG_IMPORT = 1, +ZCRX_REG_NODEV = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_features { +ZCRX_FEATURE_RX_PAGE_SIZE = 1, +ZCRX_FEATURE_EVENT = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_type { +ZCRX_EVENT_ALLOC_FAIL = 0, +ZCRX_EVENT_COPY = 1, +__ZCRX_EVENT_TYPE_LAST = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_event_desc_flags { +ZCRX_EVENT_DESC_FLAG_STATS = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum zcrx_ctrl_op { +ZCRX_CTRL_FLUSH_RQ = 0, +ZCRX_CTRL_EXPORT = 1, +ZCRX_CTRL_ARM_EVENT = 2, +__ZCRX_CTRL_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum io_uring_sqe_flags_bit { IOSQE_FIXED_FILE_BIT = 0, IOSQE_IO_DRAIN_BIT = 1, @@ -1210,7 +1331,9 @@ IORING_OP_EPOLL_WAIT = 59, IORING_OP_READV_FIXED = 60, IORING_OP_WRITEV_FIXED = 61, IORING_OP_PIPE = 62, -IORING_OP_LAST = 63, +IORING_OP_NOP128 = 63, +IORING_OP_URING_CMD128 = 64, +IORING_OP_LAST = 65, } #[repr(u32)] #[non_exhaustive] @@ -1258,7 +1381,10 @@ IORING_REGISTER_SEND_MSG_RING = 31, IORING_REGISTER_ZCRX_IFQ = 32, IORING_REGISTER_RESIZE_RINGS = 33, IORING_REGISTER_MEM_REGION = 34, -IORING_REGISTER_LAST = 35, +IORING_REGISTER_QUERY = 35, +IORING_REGISTER_ZCRX_CTRL = 36, +IORING_REGISTER_BPF_FILTER = 37, +IORING_REGISTER_LAST = 38, IORING_REGISTER_USE_REGISTERED_RING = 2147483648, } #[repr(u32)] @@ -1335,12 +1461,7 @@ 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] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum io_uring_zcrx_area_flags { -IORING_ZCRX_AREA_DMABUF = 1, +SOCKET_URING_OP_GETSOCKNAME = 5, } #[repr(C)] #[derive(Copy, Clone)] @@ -1358,6 +1479,19 @@ pub identifier: [__u8; 16usize], } #[repr(C)] #[derive(Copy, Clone)] +pub union mnt_id_req__bindgen_ty_1 { +pub mnt_ns_fd: __u32, +pub mnt_fd: __u32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union zcrx_ctrl__bindgen_ty_1 { +pub zc_export: zcrx_ctrl_export, +pub zc_flush: zcrx_ctrl_flush_rq, +pub zc_arm_event: zcrx_ctrl_arm_event, +} +#[repr(C)] +#[derive(Copy, Clone)] pub union io_uring_sqe__bindgen_ty_1 { pub off: __u64, pub addr2: __u64, @@ -1421,6 +1555,11 @@ pub register_op: __u8, pub sqe_op: __u8, pub sqe_flags: __u8, } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -1454,12 +1593,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { diff --git a/src/x86_64/ioctl.rs b/src/x86_64/ioctl.rs index b4c68a59a..c4039b7b9 100644 --- a/src/x86_64/ioctl.rs +++ b/src/x86_64/ioctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const FIONREAD: u32 = 21531; pub const FIONBIO: u32 = 21537; @@ -268,8 +268,10 @@ pub const EXT4_IOC_SETVERSION_OLD: u32 = 1074296322; pub const EXT4_IOC_GETRSVSZ: u32 = 2148034053; pub const EXT4_IOC_SETRSVSZ: u32 = 1074292230; pub const EXT4_IOC_GROUP_EXTEND: u32 = 1074292231; +pub const EXT4_IOC_GROUP_ADD: u32 = 1076389384; pub const EXT4_IOC_MIGRATE: u32 = 26121; pub const EXT4_IOC_ALLOC_DA_BLKS: u32 = 26124; +pub const EXT4_IOC_MOVE_EXT: u32 = 3223873039; pub const EXT4_IOC_RESIZE_FS: u32 = 1074292240; pub const EXT4_IOC_SWAP_BOOT: u32 = 26129; pub const EXT4_IOC_PRECACHE_EXTENTS: u32 = 26130; @@ -277,6 +279,8 @@ pub const EXT4_IOC_CLEAR_ES_CACHE: u32 = 26152; pub const EXT4_IOC_GETSTATE: u32 = 1074030121; pub const EXT4_IOC_GET_ES_CACHE: u32 = 3223348778; pub const EXT4_IOC_CHECKPOINT: u32 = 1074030123; +pub const EXT4_IOC_GETFSUUID: u32 = 2148034092; +pub const EXT4_IOC_SETFSUUID: u32 = 1074292268; pub const EXT4_IOC_SHUTDOWN: u32 = 2147768445; pub const EXT4_IOC32_GETVERSION: u32 = 2147771907; pub const EXT4_IOC32_SETVERSION: u32 = 1074030084; @@ -297,8 +301,6 @@ pub const RIO_CM_EP_GET_LIST_SIZE: u32 = 3221512961; pub const TUNSETPERSIST: u32 = 1074025675; pub const FS_IOC_GET_ENCRYPTION_POLICY: u32 = 1074554389; pub const CEC_RECEIVE: u32 = 3224920326; -pub const MGSL_IOCGPARAMS: u32 = 2150657281; -pub const ENI_SETMULT: u32 = 1074815335; pub const RIO_GET_EVENT_MASK: u32 = 2147773710; pub const LIRC_GET_MAX_TIMEOUT: u32 = 2147772681; pub const USBDEVFS_CLAIMINTERFACE: u32 = 2147767567; @@ -335,19 +337,15 @@ pub const VIDIOC_SUBDEV_S_DV_TIMINGS: u32 = 3229898327; pub const ASPEED_LPC_CTRL_IOCTL_GET_SIZE: u32 = 3222319616; pub const DM_DEV_STATUS: u32 = 3241737479; pub const TEE_IOC_CLOSE_SESSION: u32 = 2147787781; -pub const NS_GETPSTAT: u32 = 3222298977; pub const UI_SET_PROPBIT: u32 = 1074025838; pub const TUNSETFILTEREBPF: u32 = 2147767521; pub const RIO_MPORT_MAINT_COMPTAG_SET: u32 = 1074031874; pub const AUTOFS_DEV_IOCTL_VERSION: u32 = 3222836081; pub const WDIOC_SETOPTIONS: u32 = 2147768068; pub const VHOST_SCSI_SET_ENDPOINT: u32 = 1088991040; -pub const MGSL_IOCGTXIDLE: u32 = 27907; -pub const ATM_ADDLECSADDR: u32 = 1074815374; pub const FSL_HV_IOCTL_GETPROP: u32 = 3223891719; pub const FDGETPRM: u32 = 2149581316; pub const HIDIOCAPPLICATION: u32 = 18434; -pub const ENI_MEMDUMP: u32 = 1074815328; pub const PTP_SYS_OFFSET2: u32 = 1128283406; pub const VIDIOC_SUBDEV_G_DV_TIMINGS: u32 = 3229898328; pub const DMA_BUF_SET_NAME_A: u32 = 1074029057; @@ -357,10 +355,8 @@ pub const DFL_FPGA_PORT_UINT_SET_IRQ: u32 = 1074312776; pub const RTC_EPOCH_READ: u32 = 2148036621; pub const VIDIOC_SUBDEV_S_SELECTION: u32 = 3225441854; pub const VIDIOC_QUERY_EXT_CTRL: u32 = 3236451943; -pub const ATM_GETLECSADDR: u32 = 1074815376; pub const FSL_HV_IOCTL_PARTITION_STOP: u32 = 3221794564; pub const SONET_GETDIAG: u32 = 2147770644; -pub const ATMMPC_DATA: u32 = 25049; pub const IPMICTL_UNREGISTER_FOR_CMD_CHANS: u32 = 2148296989; pub const HIDIOCGCOLLECTIONINDEX: u32 = 1075333136; pub const RPMSG_CREATE_EPT_IOCTL: u32 = 1076409601; @@ -408,7 +404,6 @@ pub const FDCLRPRM: u32 = 577; pub const BTRFS_IOC_SCRUB: u32 = 3288372251; pub const USBDEVFS_DISCONNECT: u32 = 21782; pub const TUNSETVNETBE: u32 = 1074025694; -pub const ATMTCP_REMOVE: u32 = 24975; pub const VHOST_VDPA_GET_CONFIG: u32 = 2148052851; pub const PPPIOCGNPMODE: u32 = 3221779532; pub const FDGETDRVPRM: u32 = 2155872785; @@ -419,7 +414,6 @@ pub const MMTIMER_GETRES: u32 = 2148035841; pub const VIDIOC_SUBDEV_ENUMSTD: u32 = 3225966105; pub const PPGETFLAGS: u32 = 2147774618; pub const VDUSE_DEV_GET_FEATURES: u32 = 2148040977; -pub const CAPI_MANUFACTURER_CMD: u32 = 3222291232; pub const VIDIOC_G_TUNER: u32 = 3226752541; pub const DM_TABLE_STATUS: u32 = 3241737484; pub const DM_DEV_ARM_POLL: u32 = 3241737488; @@ -427,13 +421,11 @@ pub const NE_CREATE_VM: u32 = 2148052512; pub const MEDIA_IOC_ENUM_LINKS: u32 = 3223878658; pub const F2FS_IOC_PRECACHE_EXTENTS: u32 = 62735; pub const DFL_FPGA_PORT_DMA_MAP: u32 = 46659; -pub const MGSL_IOCGXCTRL: u32 = 27926; pub const FW_CDEV_IOC_SEND_REQUEST: u32 = 1076372225; pub const SONYPI_IOCGBLUE: u32 = 2147579400; pub const F2FS_IOC_DECOMPRESS_FILE: u32 = 62743; pub const I2OHTML: u32 = 3224398089; pub const VFIO_GET_API_VERSION: u32 = 15204; -pub const IDT77105_GETSTATZ: u32 = 1074815283; pub const I2OPARMSET: u32 = 3223873795; pub const TEE_IOC_CANCEL: u32 = 2148049924; pub const PTP_SYS_OFFSET_PRECISE2: u32 = 3225435409; @@ -455,7 +447,6 @@ pub const PTP_CLOCK_GETCAPS: u32 = 2152742145; pub const FDGETMAXERRS: u32 = 2148794894; pub const TUNSETQUEUE: u32 = 1074025689; pub const PTP_ENABLE_PPS: u32 = 1074019588; -pub const SIOCSIFATMTCP: u32 = 24960; pub const CEC_ADAP_G_LOG_ADDRS: u32 = 2153537795; pub const ND_IOCTL_ARS_CAP: u32 = 3223342593; pub const NBD_SET_BLKSIZE: u32 = 43777; @@ -518,14 +509,11 @@ pub const ND_IOCTL_GET_CONFIG_SIZE: u32 = 3222031876; pub const FDEJECT: u32 = 602; pub const TUNSETOFFLOAD: u32 = 1074025680; pub const PPPIOCCONNECT: u32 = 1074033722; -pub const ATM_ADDADDR: u32 = 1074815368; pub const VDUSE_DEV_INJECT_CONFIG_IRQ: u32 = 33043; pub const AUTOFS_DEV_IOCTL_ASKUMOUNT: u32 = 3222836093; pub const VHOST_VDPA_GET_STATUS: u32 = 2147594097; pub const CCISS_PASSTHRU: u32 = 3227009547; -pub const MGSL_IOCCLRMODCOUNT: u32 = 27919; pub const TEE_IOC_SUPPL_SEND: u32 = 2148574215; -pub const ATMARPD_CTRL: u32 = 25057; pub const UI_ABS_SETUP: u32 = 1075598596; pub const UI_DEV_DESTROY: u32 = 21762; pub const BTRFS_IOC_QUOTA_CTL: u32 = 3222311976; @@ -552,7 +540,6 @@ pub const DM_DEV_WAIT: u32 = 3241737480; pub const RTC_WIE_ON: u32 = 28687; pub const MEDIA_IOC_DEVICE_INFO: u32 = 3238034432; pub const RIO_CM_CHAN_CREATE: u32 = 3221381891; -pub const MGSL_IOCSPARAMS: u32 = 1076915456; pub const RTC_SET_TIME: u32 = 1076129802; pub const VHOST_RESET_OWNER: u32 = 44802; pub const IOC_OPAL_PSID_REVERT_TPR: u32 = 1091072232; @@ -578,18 +565,14 @@ pub const RIO_MPORT_MAINT_WRITE_REMOTE: u32 = 1075342600; pub const VIDIOC_SUBDEV_S_CROP: u32 = 3224917564; pub const USBDEVFS_CONNECT: u32 = 21783; pub const SYNC_IOC_FILE_INFO: u32 = 3224911364; -pub const ATMARP_MKIP: u32 = 25058; pub const VFIO_IOMMU_SPAPR_TCE_GET_INFO: u32 = 15216; pub const CCISS_GETHEARTBEAT: u32 = 2147762694; -pub const ATM_RSTADDR: u32 = 1074815367; pub const NBD_SET_SIZE: u32 = 43778; pub const UDF_GETVOLIDENT: u32 = 2148035650; pub const GPIO_V2_LINE_GET_VALUES_IOCTL: u32 = 3222320142; -pub const MGSL_IOCSTXIDLE: u32 = 27906; pub const FSL_HV_IOCTL_SETPROP: u32 = 3223891720; pub const BTRFS_IOC_GET_DEV_STATS: u32 = 3288896564; pub const PPRSTATUS: u32 = 2147577985; -pub const MGSL_IOCTXENABLE: u32 = 27908; pub const UDF_GETEASIZE: u32 = 2147773504; pub const NVME_IOCTL_ADMIN64_CMD: u32 = 3226488391; pub const VHOST_SET_OWNER: u32 = 44801; @@ -622,7 +605,6 @@ pub const TEE_IOC_SHM_ALLOC: u32 = 3222316033; pub const PERF_EVENT_IOC_SET_BPF: u32 = 1074013192; pub const UDMABUF_CREATE_LIST: u32 = 1074296131; pub const VHOST_SET_LOG_BASE: u32 = 1074310916; -pub const ZATM_GETPOOL: u32 = 1074815329; pub const BR2684_SETFILT: u32 = 1075601808; pub const RNDGETPOOL: u32 = 2148028930; pub const PPS_GETPARAMS: u32 = 2148036769; @@ -639,7 +621,6 @@ pub const FSL_HV_IOCTL_PARTITION_RESTART: u32 = 3221794561; pub const CCISS_REGNEWD: u32 = 16910; pub const FAT_IOCTL_SET_ATTRIBUTES: u32 = 1074033169; pub const VIDIOC_CREATE_BUFS: u32 = 3238024796; -pub const CAPI_GET_VERSION: u32 = 3222291207; pub const SWITCHTEC_IOCTL_EVENT_SUMMARY: u32 = 2228770626; pub const VFIO_EEH_PE_OP: u32 = 15225; pub const FW_CDEV_IOC_CREATE_ISO_CONTEXT: u32 = 3223331592; @@ -669,7 +650,6 @@ pub const IPMICTL_GET_MY_CHANNEL_LUN_CMD: u32 = 2147772699; pub const STP_POLICY_ID_GET: u32 = 2148541697; pub const PPSETFLAGS: u32 = 1074032795; pub const CEC_ADAP_S_PHYS_ADDR: u32 = 1073897730; -pub const ATMTCP_CREATE: u32 = 24974; pub const IPMI_BMC_IOCTL_FORCE_ABORT: u32 = 45314; pub const PPPIOCGXASYNCMAP: u32 = 2149610576; pub const VHOST_SET_VRING_CALL: u32 = 1074310945; @@ -707,7 +687,6 @@ pub const VDUSE_GET_API_VERSION: u32 = 2148040960; pub const RTC_RD_TIME: u32 = 2149871625; pub const FDMSGOFF: u32 = 582; pub const IPMICTL_REGISTER_FOR_CMD_CHANS: u32 = 2148296988; -pub const CAPI_GET_ERRCODE: u32 = 2147631905; pub const PCITEST_SET_IRQTYPE: u32 = 1074024456; pub const VIDIOC_SUBDEV_S_EDID: u32 = 3223868969; pub const MATROXFB_SET_OUTPUT_MODE: u32 = 1074294522; @@ -726,7 +705,6 @@ pub const RIO_WAIT_FOR_ASYNC: u32 = 1074294038; pub const VHOST_SET_VRING_NUM: u32 = 1074310928; pub const AUTOFS_DEV_IOCTL_PROTOVER: u32 = 3222836082; pub const RIO_FREE_DMA: u32 = 1074294036; -pub const MGSL_IOCRXENABLE: u32 = 27909; pub const IOCTL_VM_SOCKETS_GET_LOCAL_CID: u32 = 1977; pub const IPMICTL_SET_TIMING_PARMS_CMD: u32 = 2148034838; pub const PPPIOCGL2TPSTATS: u32 = 2152231990; @@ -742,14 +720,12 @@ pub const CHIOPOSITION: u32 = 1074553603; pub const IPMICTL_SET_MAINTENANCE_MODE_CMD: u32 = 1074030879; pub const BTRFS_IOC_DEFAULT_SUBVOL: u32 = 1074304019; pub const RIO_UNMAP_OUTBOUND: u32 = 1076391184; -pub const CAPI_CLR_FLAGS: u32 = 2147762981; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE: u32 = 1075323663; pub const MATROXFB_GET_OUTPUT_CONNECTION: u32 = 2148036344; pub const EVIOCSMASK: u32 = 1074808211; pub const BTRFS_IOC_FORGET_DEV: u32 = 1342215173; pub const CXL_MEM_QUERY_COMMANDS: u32 = 2148060673; pub const CEC_S_MODE: u32 = 1074028809; -pub const MGSL_IOCSIF: u32 = 27914; pub const SWITCHTEC_IOCTL_PFF_TO_PORT: u32 = 3222034244; pub const PPSETMODE: u32 = 1074032768; pub const VFIO_DEVICE_SET_IRQS: u32 = 15214; @@ -773,12 +749,10 @@ pub const DM_DEV_SUSPEND: u32 = 3241737478; pub const F2FS_IOC_GET_COMPRESS_OPTION: u32 = 2147677461; pub const FW_CDEV_IOC_STOP_ISO: u32 = 1074012939; pub const GPIO_V2_GET_LINEINFO_IOCTL: u32 = 3238048773; -pub const ATMMPC_CTRL: u32 = 25048; pub const PPPIOCSXASYNCMAP: u32 = 1075868751; pub const CHIOGSTATUS: u32 = 1074815752; pub const FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE: u32 = 3222807309; pub const RIO_MPORT_MAINT_PORT_IDX_GET: u32 = 2147773699; -pub const CAPI_SET_FLAGS: u32 = 2147762980; pub const VFIO_GROUP_GET_DEVICE_FD: u32 = 15210; pub const VHOST_SET_MEM_TABLE: u32 = 1074310915; pub const MATROXFB_SET_OUTPUT_CONNECTION: u32 = 1074294520; @@ -791,7 +765,6 @@ pub const BTRFS_IOC_ADD_DEV: u32 = 1342215178; pub const JSIOCGCORR: u32 = 2149870114; pub const VIDIOC_G_FMT: u32 = 3234878980; pub const RTC_EPOCH_SET: u32 = 1074294798; -pub const CAPI_GET_PROFILE: u32 = 3225436937; pub const ATM_GETLOOP: u32 = 1074815314; pub const SCIF_LISTEN: u32 = 1074033410; pub const NBD_CLEAR_QUE: u32 = 43781; @@ -830,7 +803,6 @@ pub const VHOST_VDPA_GET_DEVICE_ID: u32 = 2147790704; pub const VIDIOC_QBUF: u32 = 3227014671; pub const VIDIOC_S_TUNER: u32 = 1079268894; pub const TUNGETVNETHDRSZ: u32 = 2147767511; -pub const CAPI_NCCI_GETUNIT: u32 = 2147762983; pub const DFL_FPGA_PORT_UINT_GET_IRQ_NUM: u32 = 2147792455; pub const VIDIOC_OMAP3ISP_STAT_EN: u32 = 3221771975; pub const GPIO_V2_LINE_SET_CONFIG_IOCTL: u32 = 3239097357; @@ -840,7 +812,6 @@ pub const IPMICTL_SEND_COMMAND_SETTIME: u32 = 2150656277; pub const VHOST_SET_LOG_FD: u32 = 1074048775; pub const SCIF_SEND: u32 = 3222827782; pub const VIDIOC_SUBDEV_G_FMT: u32 = 3227014660; -pub const NS_ADJBUFLEV: u32 = 24931; pub const VIDIOC_DBG_S_REGISTER: u32 = 1077433935; pub const NILFS_IOCTL_RESIZE: u32 = 1074294411; pub const PHN_GETREG: u32 = 3221778437; @@ -868,9 +839,7 @@ pub const MMTIMER_GETBITS: u32 = 27908; pub const VIDIOC_ENUMSTD: u32 = 3225966105; pub const VHOST_GET_VRING_BASE: u32 = 3221794578; pub const VFIO_DEVICE_IOEVENTFD: u32 = 15220; -pub const ATMARP_SETENTRY: u32 = 25059; pub const CCISS_REVALIDVOLS: u32 = 16906; -pub const MGSL_IOCLOOPTXDONE: u32 = 27913; pub const RTC_VL_READ: u32 = 2147774483; pub const ND_IOCTL_ARS_STATUS: u32 = 3224391171; pub const RIO_DEV_DEL: u32 = 1075866904; @@ -893,7 +862,6 @@ pub const TUNSETTXFILTER: u32 = 1074025681; pub const TUNGETVNETLE: u32 = 2147767517; pub const VIDIOC_ENUM_DV_TIMINGS: u32 = 3230946914; pub const BTRFS_IOC_INO_PATHS: u32 = 3224933411; -pub const MGSL_IOCGXSYNC: u32 = 27924; pub const HIDIOCGFIELDINFO: u32 = 3224913930; pub const VIDIOC_SUBDEV_G_STD: u32 = 2148029975; pub const I2OVALIDATE: u32 = 2147772680; @@ -913,8 +881,6 @@ pub const ATM_GETTYPE: u32 = 1074815364; pub const PHN_GETREGS: u32 = 3223875591; pub const FDSETEMSGTRESH: u32 = 586; pub const NILFS_IOCTL_GET_VINFO: u32 = 3222826630; -pub const MGSL_IOCWAITEVENT: u32 = 3221515528; -pub const CAPI_INSTALLED: u32 = 2147631906; pub const EVIOCGMASK: u32 = 2148550034; pub const BTRFS_IOC_SUBVOL_GETFLAGS: u32 = 2148045849; pub const FSL_HV_IOCTL_PARTITION_GET_STATUS: u32 = 3222056706; @@ -923,7 +889,6 @@ pub const GSMIOC_GETFIRST: u32 = 2147763972; pub const FW_CDEV_IOC_FLUSH_ISO: u32 = 1074012952; pub const VIDIOC_DBG_G_CHIP_INFO: u32 = 3234354790; pub const F2FS_IOC_RELEASE_VOLATILE_WRITE: u32 = 62724; -pub const CAPI_GET_SERIAL: u32 = 3221504776; pub const FDSETDRVPRM: u32 = 1082131088; pub const IOC_OPAL_SAVE: u32 = 1092120796; pub const VIDIOC_G_DV_TIMINGS: u32 = 3229898328; @@ -949,13 +914,10 @@ pub const USBDEVFS_RELEASEINTERFACE: u32 = 2147767568; pub const VIDIOC_CROPCAP: u32 = 3224131130; pub const DFL_FPGA_PORT_GET_INFO: u32 = 46657; pub const PHN_SET_REGS: u32 = 1074294787; -pub const ATMLEC_DATA: u32 = 25041; -pub const PPPOEIOCDFWD: u32 = 45313; pub const VIDIOC_S_SELECTION: u32 = 3225441887; pub const SNAPSHOT_FREE_SWAP_PAGES: u32 = 13065; pub const BTRFS_IOC_LOGICAL_INO: u32 = 3224933412; pub const VIDIOC_S_CTRL: u32 = 3221771804; -pub const ZATM_SETPOOL: u32 = 1074815331; pub const MTIOCPOS: u32 = 2148035843; pub const PMU_IOC_SLEEP: u32 = 16896; pub const AUTOFS_DEV_IOCTL_PROTOSUBVER: u32 = 3222836083; @@ -1028,7 +990,6 @@ pub const F2FS_IOC_GET_PIN_FILE: u32 = 2147808526; pub const SCIF_CONNECT: u32 = 3221779203; pub const BLKREPORTZONE: u32 = 3222278786; pub const AUTOFS_IOC_ASKUMOUNT: u32 = 2147783536; -pub const ATM_ADDPARTY: u32 = 1074815476; pub const FDSETPRM: u32 = 1075839554; pub const ATM_GETSTATZ: u32 = 1074815313; pub const ISST_IF_MSR_COMMAND: u32 = 3221814788; @@ -1039,7 +1000,6 @@ pub const GPIOHANDLE_SET_LINE_VALUES_IOCTL: u32 = 3225465865; pub const PCITEST_COPY: u32 = 1074286598; pub const IPMICTL_GET_MY_ADDRESS_CMD: u32 = 2147772690; pub const CHIOGPICKER: u32 = 2147771140; -pub const CAPI_NCCI_OPENCOUNT: u32 = 2147762982; pub const CXL_MEM_SEND_COMMAND: u32 = 3224423938; pub const PERF_EVENT_IOC_SET_FILTER: u32 = 1074275334; pub const IOC_OPAL_REVERT_TPR: u32 = 1091072226; @@ -1072,12 +1032,9 @@ pub const UI_SET_ABSBIT: u32 = 1074025831; pub const DFL_FPGA_PORT_ERR_GET_IRQ_NUM: u32 = 2147792453; pub const USBDEVFS_REAPURB32: u32 = 1074025740; pub const BTRFS_IOC_TRANS_END: u32 = 37895; -pub const CAPI_REGISTER: u32 = 1074545409; pub const F2FS_IOC_COMPRESS_FILE: u32 = 62744; pub const USBDEVFS_DISCARDURB: u32 = 21771; -pub const HE_GET_REG: u32 = 1074815328; pub const ATM_SETLOOP: u32 = 1074815315; -pub const ATMSIGD_CTRL: u32 = 25072; pub const CIOC_KERNEL_VERSION: u32 = 3221775114; pub const BTRFS_IOC_CLONE_RANGE: u32 = 1075876877; pub const SNAPSHOT_UNFREEZE: u32 = 13058; @@ -1104,7 +1061,6 @@ pub const BTRFS_IOC_DEV_REPLACE: u32 = 3391657013; pub const PPPIOCGFLAGS: u32 = 2147775578; pub const NILFS_IOCTL_SET_SUINFO: u32 = 1075342989; pub const FW_CDEV_IOC_GET_CYCLE_TIMER2: u32 = 3222807316; -pub const ATM_DELLECSADDR: u32 = 1074815375; pub const FW_CDEV_IOC_GET_SPEED: u32 = 8977; pub const PPPIOCGIDLE32: u32 = 2148037695; pub const VFIO_DEVICE_RESET: u32 = 15215; @@ -1155,7 +1111,6 @@ pub const VIDIOC_QUERYMENU: u32 = 3224131109; pub const DFL_FPGA_PORT_DMA_UNMAP: u32 = 46660; pub const I2OLCTGET: u32 = 3222825218; pub const FS_IOC_GET_ENCRYPTION_PWSALT: u32 = 1074816532; -pub const NS_SETBUFLEV: u32 = 1074815330; pub const BLKCLOSEZONE: u32 = 1074795143; pub const SONET_GETFRSENSE: u32 = 2147901719; pub const UI_SET_EVBIT: u32 = 1074025828; @@ -1184,7 +1139,6 @@ pub const CEC_G_MODE: u32 = 2147770632; pub const USBDEVFS_RESETEP: u32 = 2147767555; pub const MEDIA_REQUEST_IOC_QUEUE: u32 = 31872; pub const USBDEVFS_ALLOC_STREAMS: u32 = 2148029724; -pub const MGSL_IOCSXCTRL: u32 = 27925; pub const MEDIA_IOC_G_TOPOLOGY: u32 = 3225975812; pub const PPPIOCUNBRIDGECHAN: u32 = 29748; pub const F2FS_IOC_COMMIT_ATOMIC_WRITE: u32 = 62722; @@ -1197,7 +1151,6 @@ pub const FAT_IOCTL_GET_VOLUME_ID: u32 = 2147774995; pub const UI_SET_PHYS: u32 = 1074287980; pub const FDWERRORGET: u32 = 2150105623; pub const VIDIOC_SUBDEV_G_EDID: u32 = 3223868968; -pub const MGSL_IOCGSTATS: u32 = 27911; pub const RPROC_SET_SHUTDOWN_ON_RELEASE: u32 = 1074050817; pub const SIOCGSTAMP_NEW: u32 = 2148567302; pub const RTC_WKALM_RD: u32 = 2150133776; @@ -1210,7 +1163,6 @@ pub const VFIO_DEVICE_GET_GFX_DMABUF: u32 = 15219; pub const VHOST_SET_VRING_BUSYLOOP_TIMEOUT: u32 = 1074310947; pub const VIDIOC_SUBDEV_G_SELECTION: u32 = 3225441853; pub const BTRFS_IOC_RM_DEV_V2: u32 = 1342215226; -pub const MGSL_IOCWAITGPIO: u32 = 3222301970; pub const PMU_IOC_CAN_SLEEP: u32 = 2148024837; pub const KCOV_ENABLE: u32 = 25444; pub const BTRFS_IOC_CLONE: u32 = 1074041865; @@ -1218,8 +1170,6 @@ pub const F2FS_IOC_DEFRAGMENT: u32 = 3222336776; pub const FW_CDEV_IOC_DEALLOCATE_ISO_RESOURCE: u32 = 1074012942; pub const AGPIOC_ALLOCATE: u32 = 3221766406; pub const NE_SET_USER_MEMORY_REGION: u32 = 1075359267; -pub const MGSL_IOCTXABORT: u32 = 27910; -pub const MGSL_IOCSGPIO: u32 = 1074818320; pub const LIRC_SET_REC_CARRIER: u32 = 1074030868; pub const F2FS_IOC_FLUSH_DEVICE: u32 = 1074328842; pub const SNAPSHOT_ATOMIC_RESTORE: u32 = 13060; @@ -1236,8 +1186,6 @@ pub const WDIOC_GETTIMELEFT: u32 = 2147768074; pub const ATM_GETLINKRATE: u32 = 1074815361; pub const RTC_WKALM_SET: u32 = 1076391951; pub const VHOST_GET_BACKEND_FEATURES: u32 = 2148052774; -pub const ATMARP_ENCAP: u32 = 25061; -pub const CAPI_GET_FLAGS: u32 = 2147762979; pub const IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD: u32 = 2147772696; pub const DFL_FPGA_FME_PORT_ASSIGN: u32 = 1074050690; pub const NS_GET_OWNER_UID: u32 = 46852; @@ -1245,7 +1193,6 @@ pub const VIDIOC_OVERLAY: u32 = 1074025998; pub const BTRFS_IOC_WAIT_SYNC: u32 = 1074304022; pub const GPIOHANDLE_SET_CONFIG_IOCTL: u32 = 3226776586; pub const VHOST_GET_VRING_ENDIAN: u32 = 1074310932; -pub const ATM_GETADDR: u32 = 1074815366; pub const PHN_GET_REGS: u32 = 3221778434; pub const AUTOFS_DEV_IOCTL_REQUESTER: u32 = 3222836091; pub const AUTOFS_DEV_IOCTL_EXPIRE: u32 = 3222836092; @@ -1265,7 +1212,6 @@ pub const BLKOPENZONE: u32 = 1074795142; pub const DM_VERSION: u32 = 3241737472; pub const CEC_TRANSMIT: u32 = 3224920325; pub const FS_IOC_GET_ENCRYPTION_POLICY_EX: u32 = 3221841430; -pub const SIOCMKCLIP: u32 = 25056; pub const IPMI_BMC_IOCTL_CLEAR_SMS_ATN: u32 = 45313; pub const HIDIOCGVERSION: u32 = 2147764225; pub const VIDIOC_S_INPUT: u32 = 3221509671; @@ -1277,7 +1223,6 @@ pub const IOC_OPAL_GENERIC_TABLE_RW: u32 = 1094217963; pub const FS_IOC_READ_VERITY_METADATA: u32 = 3223873159; pub const ND_IOCTL_SET_CONFIG_DATA: u32 = 3221769734; pub const USBDEVFS_GETDRIVER: u32 = 1090802952; -pub const IDT77105_GETSTAT: u32 = 1074815282; pub const HIDIOCINITREPORT: u32 = 18437; pub const VFIO_DEVICE_GET_INFO: u32 = 15211; pub const RIO_CM_CHAN_RECEIVE: u32 = 3222299402; @@ -1321,7 +1266,6 @@ pub const SONYPI_IOCGBRT: u32 = 2147579392; pub const IOC_PR_RELEASE: u32 = 1074819274; pub const PPCLRIRQ: u32 = 2147774611; pub const IPMICTL_SET_MY_CHANNEL_LUN_CMD: u32 = 2147772698; -pub const MGSL_IOCSXSYNC: u32 = 27923; pub const HPET_IE_OFF: u32 = 26626; pub const IOC_OPAL_ACTIVATE_USR: u32 = 1091596513; pub const SONET_SETFRAMING: u32 = 1074028821; @@ -1341,7 +1285,6 @@ pub const FDGETFDCSTAT: u32 = 2150105621; pub const VIDIOC_S_PRIORITY: u32 = 1074026052; pub const SNAPSHOT_FREEZE: u32 = 13057; pub const VIDIOC_ENUMINPUT: u32 = 3226490394; -pub const ZATM_GETPOOLZ: u32 = 1074815330; pub const RIO_DISABLE_DOORBELL_RANGE: u32 = 1074294026; pub const GPIO_V2_GET_LINEINFO_WATCH_IOCTL: u32 = 3238048774; pub const VIDIOC_G_STD: u32 = 2148029975; @@ -1353,7 +1296,6 @@ pub const PPPIOCSRASYNCMAP: u32 = 1074033748; pub const IOCTL_MEI_NOTIFY_SET: u32 = 1074022402; pub const BTRFS_IOC_QUOTA_RESCAN_STATUS: u32 = 2151715885; pub const F2FS_IOC_GARBAGE_COLLECT: u32 = 1074066694; -pub const ATMLEC_CTRL: u32 = 25040; pub const MATROXFB_GET_AVAILABLE_OUTPUTS: u32 = 2148036345; pub const DM_DEV_CREATE: u32 = 3241737475; pub const VHOST_VDPA_GET_VRING_NUM: u32 = 2147659638; @@ -1364,7 +1306,6 @@ pub const WDIOC_KEEPALIVE: u32 = 2147768069; pub const NVME_IOCTL_SUBSYS_RESET: u32 = 20037; pub const PTP_EXTTS_REQUEST2: u32 = 1074806027; pub const PCITEST_BAR: u32 = 20481; -pub const MGSL_IOCGGPIO: u32 = 2148560145; pub const EVIOCSREP: u32 = 1074283779; pub const VFIO_DEVICE_GET_IRQ_INFO: u32 = 15213; pub const HPET_DPI: u32 = 26629; @@ -1384,7 +1325,6 @@ pub const VIDIOC_S_HW_FREQ_SEEK: u32 = 1076909650; pub const DM_TABLE_LOAD: u32 = 3241737481; pub const F2FS_IOC_START_ATOMIC_WRITE: u32 = 62721; pub const VIDIOC_G_OUTPUT: u32 = 2147767854; -pub const ATM_DROPPARTY: u32 = 1074029045; pub const CHIOGELEM: u32 = 1080845072; pub const BTRFS_IOC_GET_SUPPORTED_FEATURES: u32 = 2152240185; pub const EVIOCSKEYCODE: u32 = 1074283780; @@ -1397,7 +1337,6 @@ pub const IOC_OPAL_LR_SETUP: u32 = 1093169379; pub const FW_CDEV_IOC_DEALLOCATE: u32 = 1074012931; pub const WDIOC_SETTIMEOUT: u32 = 3221509894; pub const IOC_WATCH_QUEUE_SET_FILTER: u32 = 22369; -pub const CAPI_GET_MANUFACTURER: u32 = 3221504774; pub const VFIO_IOMMU_SPAPR_UNREGISTER_MEMORY: u32 = 15222; pub const ASPEED_P2A_CTRL_IOCTL_SET_WINDOW: u32 = 1074836224; pub const VIDIOC_G_EDID: u32 = 3223868968; @@ -1418,7 +1357,6 @@ pub const IOC_PR_PREEMPT_ABORT: u32 = 1075343564; pub const RIO_MAP_OUTBOUND: u32 = 3223874831; pub const ATM_SETESI: u32 = 1074815372; pub const FW_CDEV_IOC_START_ISO: u32 = 1074799370; -pub const ATM_DELADDR: u32 = 1074815369; pub const PPFCONTROL: u32 = 1073901710; pub const SONYPI_IOCGFAN: u32 = 2147579402; pub const RTC_IRQP_SET: u32 = 1074294796; @@ -1431,11 +1369,9 @@ pub const TOSHIBA_ACPI_SCI: u32 = 3222828177; pub const VIDIOC_DQBUF: u32 = 3227014673; pub const BTRFS_IOC_BALANCE_PROGRESS: u32 = 2214630434; pub const BTRFS_IOC_SUBVOL_SETFLAGS: u32 = 1074304026; -pub const ATMLEC_MCAST: u32 = 25042; pub const MMTIMER_GETFREQ: u32 = 2148035842; pub const VIDIOC_G_SELECTION: u32 = 3225441886; pub const RTC_ALM_SET: u32 = 1076129799; -pub const PPPOEIOCSFWD: u32 = 1074311424; pub const IPMICTL_GET_MAINTENANCE_MODE_CMD: u32 = 2147772702; pub const FS_IOC_ENABLE_VERITY: u32 = 1082156677; pub const NILFS_IOCTL_GET_BDESCS: u32 = 3222826631; @@ -1470,7 +1406,6 @@ pub const MATROXFB_GET_OUTPUT_MODE: u32 = 3221778170; pub const BTRFS_IOC_QUOTA_RESCAN_WAIT: u32 = 37934; pub const RIO_CM_CHAN_BIND: u32 = 1074291461; pub const HIDIOCGRDESC: u32 = 2416199682; -pub const MGSL_IOCGIF: u32 = 27915; pub const VIDIOC_S_OUTPUT: u32 = 3221509679; pub const HIDIOCGREPORTINFO: u32 = 3222030345; pub const WDIOC_GETBOOTSTATUS: u32 = 2147768066; @@ -1499,3 +1434,14 @@ pub const ACRN_IOCTL_DEASSIGN_PCIDEV: u32 = 1076142678; pub const ACRN_IOCTL_RESET_VM: u32 = 41493; pub const ACRN_IOCTL_DESTROY_IOREQ_CLIENT: u32 = 41524; pub const ACRN_IOCTL_VM_INTR_MONITOR: u32 = 1074307620; +pub const PIDFD_GET_CGROUP_NAMESPACE: u32 = 65281; +pub const PIDFD_GET_IPC_NAMESPACE: u32 = 65282; +pub const PIDFD_GET_MNT_NAMESPACE: u32 = 65283; +pub const PIDFD_GET_NET_NAMESPACE: u32 = 65284; +pub const PIDFD_GET_PID_NAMESPACE: u32 = 65285; +pub const PIDFD_GET_PID_FOR_CHILDREN_NAMESPACE: u32 = 65286; +pub const PIDFD_GET_TIME_NAMESPACE: u32 = 65287; +pub const PIDFD_GET_TIME_FOR_CHILDREN_NAMESPACE: u32 = 65288; +pub const PIDFD_GET_USER_NAMESPACE: u32 = 65289; +pub const PIDFD_GET_UTS_NAMESPACE: u32 = 65290; +pub const PIDFD_GET_INFO: u32 = 3227057931; diff --git a/src/x86_64/keyctl.rs b/src/x86_64/keyctl.rs new file mode 100644 index 000000000..f0bf48bf6 --- /dev/null +++ b/src/x86_64/keyctl.rs @@ -0,0 +1,166 @@ +/* automatically generated by rust-bindgen 0.73.2 */ + +pub type __s8 = crate::ctypes::c_schar; +pub type __u8 = crate::ctypes::c_uchar; +pub type __s16 = crate::ctypes::c_short; +pub type __u16 = crate::ctypes::c_ushort; +pub type __s32 = crate::ctypes::c_int; +pub type __u32 = crate::ctypes::c_uint; +pub type __s64 = crate::ctypes::c_longlong; +pub type __u64 = crate::ctypes::c_ulonglong; +pub type __kernel_key_t = crate::ctypes::c_int; +pub type __kernel_mqd_t = crate::ctypes::c_int; +pub type __kernel_old_uid_t = crate::ctypes::c_ushort; +pub type __kernel_old_gid_t = crate::ctypes::c_ushort; +pub type __kernel_old_dev_t = crate::ctypes::c_ulong; +pub type __kernel_long_t = crate::ctypes::c_long; +pub type __kernel_ulong_t = crate::ctypes::c_ulong; +pub type __kernel_ino_t = __kernel_ulong_t; +pub type __kernel_mode_t = crate::ctypes::c_uint; +pub type __kernel_pid_t = crate::ctypes::c_int; +pub type __kernel_ipc_pid_t = crate::ctypes::c_int; +pub type __kernel_uid_t = crate::ctypes::c_uint; +pub type __kernel_gid_t = crate::ctypes::c_uint; +pub type __kernel_suseconds_t = __kernel_long_t; +pub type __kernel_daddr_t = crate::ctypes::c_int; +pub type __kernel_uid32_t = crate::ctypes::c_uint; +pub type __kernel_gid32_t = crate::ctypes::c_uint; +pub type __kernel_size_t = __kernel_ulong_t; +pub type __kernel_ssize_t = __kernel_long_t; +pub type __kernel_ptrdiff_t = __kernel_long_t; +pub type __kernel_off_t = __kernel_long_t; +pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; +pub type __kernel_old_time_t = __kernel_long_t; +pub type __kernel_time_t = __kernel_long_t; +pub type __kernel_time64_t = crate::ctypes::c_longlong; +pub type __kernel_clock_t = __kernel_long_t; +pub type __kernel_timer_t = crate::ctypes::c_int; +pub type __kernel_clockid_t = crate::ctypes::c_int; +pub type __kernel_caddr_t = *mut crate::ctypes::c_char; +pub type __kernel_uid16_t = crate::ctypes::c_ushort; +pub type __kernel_gid16_t = crate::ctypes::c_ushort; +pub type __s128 = i128; +pub type __u128 = u128; +pub type __le16 = __u16; +pub type __be16 = __u16; +pub type __le32 = __u32; +pub type __be32 = __u32; +pub type __le64 = __u64; +pub type __be64 = __u64; +pub type __sum16 = __u16; +pub type __wsum = __u32; +pub type __poll_t = crate::ctypes::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_dh_params { +pub __bindgen_anon_1: keyctl_dh_params__bindgen_ty_1, +pub prime: __s32, +pub base: __s32, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_kdf_params { +pub hashname: *mut crate::ctypes::c_char, +pub otherinfo: *mut crate::ctypes::c_char, +pub otherinfolen: __u32, +pub __spare: [__u32; 8usize], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct keyctl_pkey_query { +pub supported_ops: __u32, +pub key_size: __u32, +pub max_data_size: __u16, +pub max_sig_size: __u16, +pub max_enc_size: __u16, +pub max_dec_size: __u16, +pub __spare: [__u32; 10usize], +} +#[repr(C)] +#[derive(Copy, Clone)] +pub struct keyctl_pkey_params { +pub key_id: __s32, +pub in_len: __u32, +pub __bindgen_anon_1: keyctl_pkey_params__bindgen_ty_1, +pub __spare: [__u32; 7usize], +} +pub const __BITS_PER_LONG_LONG: u32 = 64; +pub const KEY_SPEC_THREAD_KEYRING: i32 = -1; +pub const KEY_SPEC_PROCESS_KEYRING: i32 = -2; +pub const KEY_SPEC_SESSION_KEYRING: i32 = -3; +pub const KEY_SPEC_USER_KEYRING: i32 = -4; +pub const KEY_SPEC_USER_SESSION_KEYRING: i32 = -5; +pub const KEY_SPEC_GROUP_KEYRING: i32 = -6; +pub const KEY_SPEC_REQKEY_AUTH_KEY: i32 = -7; +pub const KEY_SPEC_REQUESTOR_KEYRING: i32 = -8; +pub const KEY_REQKEY_DEFL_NO_CHANGE: i32 = -1; +pub const KEY_REQKEY_DEFL_DEFAULT: u32 = 0; +pub const KEY_REQKEY_DEFL_THREAD_KEYRING: u32 = 1; +pub const KEY_REQKEY_DEFL_PROCESS_KEYRING: u32 = 2; +pub const KEY_REQKEY_DEFL_SESSION_KEYRING: u32 = 3; +pub const KEY_REQKEY_DEFL_USER_KEYRING: u32 = 4; +pub const KEY_REQKEY_DEFL_USER_SESSION_KEYRING: u32 = 5; +pub const KEY_REQKEY_DEFL_GROUP_KEYRING: u32 = 6; +pub const KEY_REQKEY_DEFL_REQUESTOR_KEYRING: u32 = 7; +pub const KEYCTL_GET_KEYRING_ID: u32 = 0; +pub const KEYCTL_JOIN_SESSION_KEYRING: u32 = 1; +pub const KEYCTL_UPDATE: u32 = 2; +pub const KEYCTL_REVOKE: u32 = 3; +pub const KEYCTL_CHOWN: u32 = 4; +pub const KEYCTL_SETPERM: u32 = 5; +pub const KEYCTL_DESCRIBE: u32 = 6; +pub const KEYCTL_CLEAR: u32 = 7; +pub const KEYCTL_LINK: u32 = 8; +pub const KEYCTL_UNLINK: u32 = 9; +pub const KEYCTL_SEARCH: u32 = 10; +pub const KEYCTL_READ: u32 = 11; +pub const KEYCTL_INSTANTIATE: u32 = 12; +pub const KEYCTL_NEGATE: u32 = 13; +pub const KEYCTL_SET_REQKEY_KEYRING: u32 = 14; +pub const KEYCTL_SET_TIMEOUT: u32 = 15; +pub const KEYCTL_ASSUME_AUTHORITY: u32 = 16; +pub const KEYCTL_GET_SECURITY: u32 = 17; +pub const KEYCTL_SESSION_TO_PARENT: u32 = 18; +pub const KEYCTL_REJECT: u32 = 19; +pub const KEYCTL_INSTANTIATE_IOV: u32 = 20; +pub const KEYCTL_INVALIDATE: u32 = 21; +pub const KEYCTL_GET_PERSISTENT: u32 = 22; +pub const KEYCTL_DH_COMPUTE: u32 = 23; +pub const KEYCTL_PKEY_QUERY: u32 = 24; +pub const KEYCTL_PKEY_ENCRYPT: u32 = 25; +pub const KEYCTL_PKEY_DECRYPT: u32 = 26; +pub const KEYCTL_PKEY_SIGN: u32 = 27; +pub const KEYCTL_PKEY_VERIFY: u32 = 28; +pub const KEYCTL_RESTRICT_KEYRING: u32 = 29; +pub const KEYCTL_MOVE: u32 = 30; +pub const KEYCTL_CAPABILITIES: u32 = 31; +pub const KEYCTL_WATCH_KEY: u32 = 32; +pub const KEYCTL_SUPPORTS_ENCRYPT: u32 = 1; +pub const KEYCTL_SUPPORTS_DECRYPT: u32 = 2; +pub const KEYCTL_SUPPORTS_SIGN: u32 = 4; +pub const KEYCTL_SUPPORTS_VERIFY: u32 = 8; +pub const KEYCTL_MOVE_EXCL: u32 = 1; +pub const KEYCTL_CAPS0_CAPABILITIES: u32 = 1; +pub const KEYCTL_CAPS0_PERSISTENT_KEYRINGS: u32 = 2; +pub const KEYCTL_CAPS0_DIFFIE_HELLMAN: u32 = 4; +pub const KEYCTL_CAPS0_PUBLIC_KEY: u32 = 8; +pub const KEYCTL_CAPS0_BIG_KEY: u32 = 16; +pub const KEYCTL_CAPS0_INVALIDATE: u32 = 32; +pub const KEYCTL_CAPS0_RESTRICT_KEYRING: u32 = 64; +pub const KEYCTL_CAPS0_MOVE: u32 = 128; +pub const KEYCTL_CAPS1_NS_KEYRING_NAME: u32 = 1; +pub const KEYCTL_CAPS1_NS_KEY_TAG: u32 = 2; +pub const KEYCTL_CAPS1_NOTIFICATIONS: u32 = 4; +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_dh_params__bindgen_ty_1 { +pub private: __s32, +pub priv_: __s32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union keyctl_pkey_params__bindgen_ty_1 { +pub out_len: __u32, +pub in2_len: __u32, +} diff --git a/src/x86_64/landlock.rs b/src/x86_64/landlock.rs index 506f9d2a3..62226a0d1 100644 --- a/src/x86_64/landlock.rs +++ b/src/x86_64/landlock.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -56,6 +57,9 @@ pub struct landlock_ruleset_attr { pub handled_access_fs: __u64, pub handled_access_net: __u64, pub scoped: __u64, +pub quiet_access_fs: __u64, +pub quiet_access_net: __u64, +pub quiet_scoped: __u64, } #[repr(C, packed)] #[derive(Debug, Copy, Clone)] @@ -72,9 +76,11 @@ pub port: __u64, pub const __BITS_PER_LONG_LONG: u32 = 64; pub const LANDLOCK_CREATE_RULESET_VERSION: u32 = 1; pub const LANDLOCK_CREATE_RULESET_ERRATA: u32 = 2; +pub const LANDLOCK_ADD_RULE_QUIET: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF: u32 = 1; pub const LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON: u32 = 2; pub const LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF: u32 = 4; +pub const LANDLOCK_RESTRICT_SELF_TSYNC: u32 = 8; pub const LANDLOCK_ACCESS_FS_EXECUTE: u32 = 1; pub const LANDLOCK_ACCESS_FS_WRITE_FILE: u32 = 2; pub const LANDLOCK_ACCESS_FS_READ_FILE: u32 = 4; @@ -91,8 +97,11 @@ pub const LANDLOCK_ACCESS_FS_MAKE_SYM: u32 = 4096; pub const LANDLOCK_ACCESS_FS_REFER: u32 = 8192; pub const LANDLOCK_ACCESS_FS_TRUNCATE: u32 = 16384; pub const LANDLOCK_ACCESS_FS_IOCTL_DEV: u32 = 32768; +pub const LANDLOCK_ACCESS_FS_RESOLVE_UNIX: u32 = 65536; pub const LANDLOCK_ACCESS_NET_BIND_TCP: u32 = 1; pub const LANDLOCK_ACCESS_NET_CONNECT_TCP: u32 = 2; +pub const LANDLOCK_ACCESS_NET_BIND_UDP: u32 = 4; +pub const LANDLOCK_ACCESS_NET_CONNECT_SEND_UDP: u32 = 8; pub const LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET: u32 = 1; pub const LANDLOCK_SCOPE_SIGNAL: u32 = 2; #[repr(u32)] diff --git a/src/x86_64/loop_device.rs b/src/x86_64/loop_device.rs index bb564539e..6e51ebd68 100644 --- a/src/x86_64/loop_device.rs +++ b/src/x86_64/loop_device.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_old_uid_t = crate::ctypes::c_ushort; pub type __kernel_old_gid_t = crate::ctypes::c_ushort; @@ -20,6 +20,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86_64/mempolicy.rs b/src/x86_64/mempolicy.rs index 51914ccda..475b657b2 100644 --- a/src/x86_64/mempolicy.rs +++ b/src/x86_64/mempolicy.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub const EPERM: u32 = 1; pub const ENOENT: u32 = 2; @@ -74,6 +74,7 @@ pub const EPROTO: u32 = 71; pub const EMULTIHOP: u32 = 72; pub const EDOTDOT: u32 = 73; pub const EBADMSG: u32 = 74; +pub const EFSBADCRC: u32 = 74; pub const EOVERFLOW: u32 = 75; pub const ENOTUNIQ: u32 = 76; pub const EBADFD: u32 = 77; @@ -117,6 +118,7 @@ pub const EALREADY: u32 = 114; pub const EINPROGRESS: u32 = 115; pub const ESTALE: u32 = 116; pub const EUCLEAN: u32 = 117; +pub const EFSCORRUPTED: u32 = 117; pub const ENOTNAM: u32 = 118; pub const ENAVAIL: u32 = 119; pub const EISNAM: u32 = 120; @@ -133,10 +135,12 @@ pub const EOWNERDEAD: u32 = 130; pub const ENOTRECOVERABLE: u32 = 131; pub const ERFKILL: u32 = 132; pub const EHWPOISON: u32 = 133; +pub const EFTYPE: u32 = 134; pub const MPOL_F_STATIC_NODES: u32 = 32768; pub const MPOL_F_RELATIVE_NODES: u32 = 16384; pub const MPOL_F_NUMA_BALANCING: u32 = 8192; pub const MPOL_MODE_FLAGS: u32 = 57344; +pub const MPOL_USER_NODEMASK_FLAGS: u32 = 49152; pub const MPOL_F_NODE: u32 = 1; pub const MPOL_F_ADDR: u32 = 2; pub const MPOL_F_MEMS_ALLOWED: u32 = 4; diff --git a/src/x86_64/net.rs b/src/x86_64/net.rs index 21cf8c2ab..853231e55 100644 --- a/src/x86_64/net.rs +++ b/src/x86_64/net.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -57,6 +58,9 @@ pub type socklen_t = crate::ctypes::c_uint; pub struct __BindgenBitfieldUnit { storage: Storage, } +#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)] +#[repr(C, align(8))] +pub struct __BindgenOpaqueArray8(pub T); #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::core::marker::PhantomData, [T; 0]); @@ -142,7 +146,7 @@ pub __bindgen_anon_1: group_filter__bindgen_ty_1, pub struct group_filter__bindgen_ty_1 { pub __bindgen_anon_1: __BindgenUnionField, pub __bindgen_anon_2: __BindgenUnionField, -pub bindgen_union_field: [u64; 34usize], +pub bindgen_union_field: __BindgenOpaqueArray8<[u8; 272usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -179,7 +183,6 @@ pub __pad: [crate::ctypes::c_uchar; 8usize], #[repr(C)] #[derive(Copy, Clone)] pub struct iphdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub tos: __u8, pub tot_len: __be16, @@ -340,7 +343,6 @@ pub addr: in6_addr, #[repr(C)] #[derive(Copy, Clone)] pub struct ipv6hdr { -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>, pub flow_lbl: [__u8; 3usize], pub payload_len: __be16, @@ -367,7 +369,6 @@ pub source: __be16, pub dest: __be16, pub seq: __be32, pub ack_seq: __be32, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub window: __be16, pub check: __sum16, @@ -397,7 +398,6 @@ pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, -pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, @@ -450,6 +450,14 @@ pub tcpi_rehash: __u32, pub tcpi_total_rto: __u16, pub tcpi_total_rto_recoveries: __u16, pub tcpi_total_rto_time: __u32, +pub tcpi_received_ce: __u32, +pub tcpi_delivered_e1_bytes: __u32, +pub tcpi_delivered_e0_bytes: __u32, +pub tcpi_delivered_ce_bytes: __u32, +pub tcpi_received_e1_bytes: __u32, +pub tcpi_received_e0_bytes: __u32, +pub tcpi_received_ce_bytes: __u32, +pub _bitfield_2: __BindgenBitfieldUnit<[u8; 4usize]>, } #[repr(C)] #[derive(Copy, Clone)] @@ -476,7 +484,6 @@ pub struct tcp_ao_add { pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -492,7 +499,6 @@ pub key: [__u8; 80usize], pub struct tcp_ao_del { pub addr: __kernel_sockaddr_storage, pub ifindex: __s32, -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub prefix: __u8, @@ -505,7 +511,6 @@ pub keyflags: __u8, #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct tcp_ao_info_opt { -pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, pub reserved2: __u16, pub current_key: __u8, @@ -523,7 +528,6 @@ pub addr: __kernel_sockaddr_storage, pub alg_name: [crate::ctypes::c_char; 64usize], pub key: [__u8; 80usize], pub nkeys: __u32, -pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>, pub sndid: __u8, pub rcvid: __u8, @@ -1337,6 +1341,14 @@ pub const TCPI_OPT_ECN_SEEN: u32 = 16; pub const TCPI_OPT_SYN_DATA: u32 = 32; pub const TCPI_OPT_USEC_TS: u32 = 64; pub const TCPI_OPT_TFO_CHILD: u32 = 128; +pub const TCPI_ECN_MODE_DISABLED: u32 = 0; +pub const TCPI_ECN_MODE_RFC3168: u32 = 1; +pub const TCPI_ECN_MODE_ACCECN: u32 = 2; +pub const TCPI_ECN_MODE_PENDING: u32 = 3; +pub const TCP_ACCECN_OPT_NOT_SEEN: u32 = 0; +pub const TCP_ACCECN_OPT_EMPTY_SEEN: u32 = 1; +pub const TCP_ACCECN_OPT_COUNTER_SEEN: u32 = 2; +pub const TCP_ACCECN_OPT_FAIL_SEEN: u32 = 3; pub const TCP_MD5SIG_MAXKEYLEN: u32 = 80; pub const TCP_MD5SIG_FLAG_PREFIX: u32 = 1; pub const TCP_MD5SIG_FLAG_IFINDEX: u32 = 2; @@ -2369,13 +2381,30 @@ unsafe { *byte = Self::change_bit(*byte, index, val) }; pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if self.get_bit(i + bit_offset) { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let storage = self.storage.as_ref(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +val |= (storage[start_byte + i] as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2383,13 +2412,32 @@ val pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -let mut val = 0; -for i in 0..(bit_width as usize) { -if unsafe { Self::raw_get_bit(this, i + bit_offset) } { -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -val |= 1 << index; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return 0; +} +let mut val = 0u64; +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if cfg!(target_endian = "big") { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); } +} else { +for i in 0..bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +} +} +val >>= bit_shift; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); } val } @@ -2397,27 +2445,331 @@ val pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -self.set_bit(index + bit_offset, val_bit_is_set); +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let storage = self.storage.as_mut(); +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +storage[start_byte + i] = new_byte.reverse_bits(); +} else { +storage[start_byte + i] = (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} } } #[inline] pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < core::mem::size_of::()); -debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); -for i in 0..(bit_width as usize) { -let mask = 1 << i; -let val_bit_is_set = val & mask == mask; -let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; -unsafe { Self::raw_set_bit(this, index + bit_offset, val_bit_is_set) }; +debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::()); +if bit_width == 0 { +return; +} +let mut val = val; +if bit_width < 64 { +val &= (1u64 << bit_width) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - bit_width as usize); +} +let start_byte = bit_offset / 8; +let bit_shift = bit_offset % 8; +let bytes_needed = (bit_width as usize + bit_shift + 7) / 8; +val <<= bit_shift; +let field_mask = if bit_width as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << bit_width) - 1) << bit_shift }; +let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 }; +for i in 0..bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +} +} +} +#[doc = " Const-generic methods for efficient bitfield access when offset and width"] +#[doc = " are known at compile time."] +impl __BindgenBitfieldUnit<[u8; N]> { +#[doc = " Get a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const fn get_const(&self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +val |= (self.storage[start_byte + i] as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Set a field using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub fn set_const(&mut self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +if cfg!(target_endian = "big") { +let byte = self.storage[start_byte + i].reverse_bits(); +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +self.storage[start_byte + i] = new_byte.reverse_bits(); +} else { +self.storage[start_byte + i] = (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask); +} +i += 1; +} +} +} +#[doc = " Raw pointer get using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub const unsafe fn raw_get_const(this: *const Self) -> u64 { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return 0; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 }; +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = 0usize; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as usize) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as usize) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val as u64 +} else { +let mut val = 0u64; +if cfg!(target_endian = "big") { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte.reverse_bits() as u64) << (i * 8); +i += 1; +} +} else { +let mut i = 0; +while i < bytes_needed { +let byte = unsafe { *storage_ptr.add(start_byte + i) }; +val |= (byte as u64) << (i * 8); +i += 1; +} +} +val >>= bit_shift; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val +} +} +#[doc = " Raw pointer set using const generics for compile-time optimization."] +#[doc = " Uses native word size operations when the field fits in usize."] +#[inline] +pub unsafe fn raw_set_const(this: *mut Self, val: u64) { +debug_assert!(BIT_WIDTH <= 64); +debug_assert!(BIT_OFFSET / 8 < N); +debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N); +if BIT_WIDTH == 0 { +return; +} +let start_byte = BIT_OFFSET / 8; +let bit_shift = BIT_OFFSET % 8; +let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8; +let storage_ptr = this.cast::<[u8; N]>().cast::(); +if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize { +let mut val = val as usize; +if (BIT_WIDTH as u32) < usize::BITS { +val &= (1usize << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize { !0usize << bit_shift } else { ((1usize << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} +} else { +let mut val = val; +if BIT_WIDTH < 64 { +val &= (1u64 << BIT_WIDTH) - 1; +} +if cfg!(target_endian = "big") { +val = val.reverse_bits() >> (64 - BIT_WIDTH as usize); +} +val <<= bit_shift; +let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 { !0u64 << bit_shift } else { ((1u64 << BIT_WIDTH) - 1) << bit_shift }; +let mut i = 0; +while i < bytes_needed { +let byte_val = (val >> (i * 8)) as u8; +let byte_mask = (field_mask >> (i * 8)) as u8; +let byte_ptr = unsafe { storage_ptr.add(start_byte + i) }; +if cfg!(target_endian = "big") { +let byte = unsafe { (*byte_ptr).reverse_bits() }; +let new_byte = (byte & !byte_mask) | (byte_val & byte_mask); +unsafe { *byte_ptr = new_byte.reverse_bits() }; +} else { +unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) }; +} +i += 1; +} } } } +impl Default for __BindgenOpaqueArray8<[T; N]> { +fn default() -> Self { +Self([::default(); N]) +} +} impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { @@ -2451,12 +2803,12 @@ pub const fn new() -> Self { __BindgenUnionField(::core::marker::PhantomData) } #[inline] -pub unsafe fn as_ref(&self) -> &T { -::core::mem::transmute(self) +pub const unsafe fn as_ref(&self) -> &T { +unsafe { ::core::mem::transmute(self) } } #[inline] -pub unsafe fn as_mut(&mut self) -> &mut T { -::core::mem::transmute(self) +pub const unsafe fn as_mut(&mut self) -> &mut T { +unsafe { ::core::mem::transmute(self) } } } impl ::core::default::Default for __BindgenUnionField { @@ -2488,57 +2840,66 @@ true impl ::core::cmp::Eq for __BindgenUnionField {} impl iphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ihl(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ihl(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ihl_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ihl_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ihl: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let ihl: u8 = unsafe { ::core::mem::transmute(ihl) }; ihl as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2547,57 +2908,66 @@ __bindgen_bitfield_unit } impl ipv6hdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn priority(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_priority(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn priority_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_priority_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn version(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_version(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn version_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_version_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(priority: __u8, version: __u8) -> __BindgenBitfieldUnit<[u8; 1usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let priority: u8 = unsafe { ::core::mem::transmute(priority) }; priority as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let version: u8 = unsafe { ::core::mem::transmute(version) }; version as u64 }); @@ -2606,291 +2976,336 @@ __bindgen_bitfield_unit } impl tcphdr { #[inline] +#[allow(unnecessary_transmutes)] pub fn ae(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ae(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ae_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ae_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn res1(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 3u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_res1(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 3u8, val as u64) +self._bitfield_1.set_const::<1usize, 3u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn res1_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 3u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 3u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_res1_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 3u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 3u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn doff(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_doff(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn doff_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_doff_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn fin(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_fin(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn fin_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_fin_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn syn(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_syn(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 1u8, val as u64) +self._bitfield_1.set_const::<9usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn syn_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_syn_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn rst(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<10usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rst(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(10usize, 1u8, val as u64) +self._bitfield_1.set_const::<10usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn rst_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 10usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<10usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rst_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 10usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<10usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn psh(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<11usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_psh(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(11usize, 1u8, val as u64) +self._bitfield_1.set_const::<11usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn psh_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 11usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<11usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_psh_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 11usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<11usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ack(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<12usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ack(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(12usize, 1u8, val as u64) +self._bitfield_1.set_const::<12usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ack_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 12usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<12usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ack_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 12usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<12usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn urg(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<13usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_urg(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(13usize, 1u8, val as u64) +self._bitfield_1.set_const::<13usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn urg_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 13usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<13usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_urg_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 13usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<13usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ece(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<14usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ece(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(14usize, 1u8, val as u64) +self._bitfield_1.set_const::<14usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ece_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 14usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<14usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ece_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 14usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<14usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn cwr(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<15usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_cwr(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(15usize, 1u8, val as u64) +self._bitfield_1.set_const::<15usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn cwr_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 15usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<15usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_cwr_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 15usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<15usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(ae: __u16, res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let ae: u16 = unsafe { ::core::mem::transmute(ae) }; ae as u64 }); -__bindgen_bitfield_unit.set(1usize, 3u8, { +__bindgen_bitfield_unit.set_const::<1usize, 3u8>({ let res1: u16 = unsafe { ::core::mem::transmute(res1) }; res1 as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let doff: u16 = unsafe { ::core::mem::transmute(doff) }; doff as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let fin: u16 = unsafe { ::core::mem::transmute(fin) }; fin as u64 }); -__bindgen_bitfield_unit.set(9usize, 1u8, { +__bindgen_bitfield_unit.set_const::<9usize, 1u8>({ let syn: u16 = unsafe { ::core::mem::transmute(syn) }; syn as u64 }); -__bindgen_bitfield_unit.set(10usize, 1u8, { +__bindgen_bitfield_unit.set_const::<10usize, 1u8>({ let rst: u16 = unsafe { ::core::mem::transmute(rst) }; rst as u64 }); -__bindgen_bitfield_unit.set(11usize, 1u8, { +__bindgen_bitfield_unit.set_const::<11usize, 1u8>({ let psh: u16 = unsafe { ::core::mem::transmute(psh) }; psh as u64 }); -__bindgen_bitfield_unit.set(12usize, 1u8, { +__bindgen_bitfield_unit.set_const::<12usize, 1u8>({ let ack: u16 = unsafe { ::core::mem::transmute(ack) }; ack as u64 }); -__bindgen_bitfield_unit.set(13usize, 1u8, { +__bindgen_bitfield_unit.set_const::<13usize, 1u8>({ let urg: u16 = unsafe { ::core::mem::transmute(urg) }; urg as u64 }); -__bindgen_bitfield_unit.set(14usize, 1u8, { +__bindgen_bitfield_unit.set_const::<14usize, 1u8>({ let ece: u16 = unsafe { ::core::mem::transmute(ece) }; ece as u64 }); -__bindgen_bitfield_unit.set(15usize, 1u8, { +__bindgen_bitfield_unit.set_const::<15usize, 1u8>({ let cwr: u16 = unsafe { ::core::mem::transmute(cwr) }; cwr as u64 }); @@ -2899,194 +3314,350 @@ __bindgen_bitfield_unit } impl tcp_info { #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_snd_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_snd_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 4u8, val as u64) +self._bitfield_1.set_const::<0usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_snd_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_snd_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_rcv_wscale(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 4u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_rcv_wscale(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 4u8, val as u64) +self._bitfield_1.set_const::<4usize, 4u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_rcv_wscale_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 4u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_rcv_wscale_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 4u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_delivery_rate_app_limited(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(8usize, 1u8, val as u64) +self._bitfield_1.set_const::<8usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_delivery_rate_app_limited_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 8usize, 1u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_delivery_rate_app_limited_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 8usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn tcpi_fastopen_client_fail(&self) -> __u8 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<9usize, 2u8>() as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -self._bitfield_1.set(9usize, 2u8, val as u64) +self._bitfield_1.set_const::<9usize, 2u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn tcpi_fastopen_client_fail_raw(this: *const Self) -> __u8 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 9usize, 2u8) as u8) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u8) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_tcpi_fastopen_client_fail_raw(this: *mut Self, val: __u8) { unsafe { let val: u8 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 9usize, 2u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 4u8, { +__bindgen_bitfield_unit.set_const::<0usize, 4u8>({ let tcpi_snd_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_snd_wscale) }; tcpi_snd_wscale as u64 }); -__bindgen_bitfield_unit.set(4usize, 4u8, { +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ let tcpi_rcv_wscale: u8 = unsafe { ::core::mem::transmute(tcpi_rcv_wscale) }; tcpi_rcv_wscale as u64 }); -__bindgen_bitfield_unit.set(8usize, 1u8, { +__bindgen_bitfield_unit.set_const::<8usize, 1u8>({ let tcpi_delivery_rate_app_limited: u8 = unsafe { ::core::mem::transmute(tcpi_delivery_rate_app_limited) }; tcpi_delivery_rate_app_limited as u64 }); -__bindgen_bitfield_unit.set(9usize, 2u8, { +__bindgen_bitfield_unit.set_const::<9usize, 2u8>({ let tcpi_fastopen_client_fail: u8 = unsafe { ::core::mem::transmute(tcpi_fastopen_client_fail) }; tcpi_fastopen_client_fail as u64 }); __bindgen_bitfield_unit } +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_ecn_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<0usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_ecn_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<0usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_ecn_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_ecn_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_opt_seen(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<2usize, 2u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_opt_seen(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<2usize, 2u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_opt_seen_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 2u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_opt_seen_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 2u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_accecn_fail_mode(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<4usize, 4u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_accecn_fail_mode(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<4usize, 4u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_accecn_fail_mode_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 4u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_accecn_fail_mode_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 4u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn tcpi_options2(&self) -> __u32 { +unsafe { ::core::mem::transmute(self._bitfield_2.get_const::<8usize, 24u8>() as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn set_tcpi_options2(&mut self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +self._bitfield_2.set_const::<8usize, 24u8>(val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn tcpi_options2_raw(this: *const Self) -> __u32 { +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<8usize, 24u8>(::core::ptr::addr_of!((*this)._bitfield_2)) as u32) } +} +#[inline] +#[allow(unnecessary_transmutes)] +pub unsafe fn set_tcpi_options2_raw(this: *mut Self, val: __u32) { +unsafe { +let val: u32 = ::core::mem::transmute(val); +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<8usize, 24u8>(::core::ptr::addr_of_mut!((*this)._bitfield_2), val as u64) +} +} +#[inline] +#[allow(unnecessary_transmutes)] +pub fn new_bitfield_2(tcpi_ecn_mode: __u32, tcpi_accecn_opt_seen: __u32, tcpi_accecn_fail_mode: __u32, tcpi_options2: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { +let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); +__bindgen_bitfield_unit.set_const::<0usize, 2u8>({ +let tcpi_ecn_mode: u32 = unsafe { ::core::mem::transmute(tcpi_ecn_mode) }; +tcpi_ecn_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<2usize, 2u8>({ +let tcpi_accecn_opt_seen: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_opt_seen) }; +tcpi_accecn_opt_seen as u64 +}); +__bindgen_bitfield_unit.set_const::<4usize, 4u8>({ +let tcpi_accecn_fail_mode: u32 = unsafe { ::core::mem::transmute(tcpi_accecn_fail_mode) }; +tcpi_accecn_fail_mode as u64 +}); +__bindgen_bitfield_unit.set_const::<8usize, 24u8>({ +let tcpi_options2: u32 = unsafe { ::core::mem::transmute(tcpi_options2) }; +tcpi_options2 as u64 +}); +__bindgen_bitfield_unit +} } impl tcp_ao_add { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 30u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 30u8, val as u64) +self._bitfield_1.set_const::<2usize, 30u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 30u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 30u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 30u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 30u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 30u8, { +__bindgen_bitfield_unit.set_const::<2usize, 30u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3095,109 +3666,126 @@ __bindgen_bitfield_unit } impl tcp_ao_del { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn del_async(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_del_async(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn del_async_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_del_async_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 29u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 29u8, val as u64) +self._bitfield_1.set_const::<3usize, 29u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 29u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 29u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 29u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 29u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, del_async: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let del_async: u32 = unsafe { ::core::mem::transmute(del_async) }; del_async as u64 }); -__bindgen_bitfield_unit.set(3usize, 29u8, { +__bindgen_bitfield_unit.set_const::<3usize, 29u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3206,161 +3794,186 @@ __bindgen_bitfield_unit } impl tcp_ao_info_opt { #[inline] +#[allow(unnecessary_transmutes)] pub fn set_current(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_current(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_current_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_current_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_rnext(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_rnext(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_rnext_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_rnext_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn ao_required(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_ao_required(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn ao_required_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_ao_required_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_counters(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_set_counters(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 1u8, val as u64) +self._bitfield_1.set_const::<3usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_counters_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<3usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_set_counters_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<3usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn accept_icmps(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_accept_icmps(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(4usize, 1u8, val as u64) +self._bitfield_1.set_const::<4usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn accept_icmps_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 4usize, 1u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<4usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_accept_icmps_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 4usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<4usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u32 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<5usize, 27u8>() as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -self._bitfield_1.set(5usize, 27u8, val as u64) +self._bitfield_1.set_const::<5usize, 27u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u32 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 5usize, 27u8) as u32) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get_const::<5usize, 27u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u32) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u32) { unsafe { let val: u32 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 5usize, 27u8, val as u64) +<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set_const::<5usize, 27u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(set_current: __u32, set_rnext: __u32, ao_required: __u32, set_counters: __u32, accept_icmps: __u32, reserved: __u32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let set_current: u32 = unsafe { ::core::mem::transmute(set_current) }; set_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let set_rnext: u32 = unsafe { ::core::mem::transmute(set_rnext) }; set_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let ao_required: u32 = unsafe { ::core::mem::transmute(ao_required) }; ao_required as u64 }); -__bindgen_bitfield_unit.set(3usize, 1u8, { +__bindgen_bitfield_unit.set_const::<3usize, 1u8>({ let set_counters: u32 = unsafe { ::core::mem::transmute(set_counters) }; set_counters as u64 }); -__bindgen_bitfield_unit.set(4usize, 1u8, { +__bindgen_bitfield_unit.set_const::<4usize, 1u8>({ let accept_icmps: u32 = unsafe { ::core::mem::transmute(accept_icmps) }; accept_icmps as u64 }); -__bindgen_bitfield_unit.set(5usize, 27u8, { +__bindgen_bitfield_unit.set_const::<5usize, 27u8>({ let reserved: u32 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); @@ -3369,109 +3982,126 @@ __bindgen_bitfield_unit } impl tcp_ao_getsockopt { #[inline] +#[allow(unnecessary_transmutes)] pub fn is_current(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_current(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(0usize, 1u8, val as u64) +self._bitfield_1.set_const::<0usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_current_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 0usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_current_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 0usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn is_rnext(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_is_rnext(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(1usize, 1u8, val as u64) +self._bitfield_1.set_const::<1usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn is_rnext_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 1usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_is_rnext_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 1usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn get_all(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_get_all(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(2usize, 1u8, val as u64) +self._bitfield_1.set_const::<2usize, 1u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn get_all_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 2usize, 1u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_get_all_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 2usize, 1u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn reserved(&self) -> __u16 { -unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(self._bitfield_1.get_const::<3usize, 13u8>() as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn set_reserved(&mut self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -self._bitfield_1.set(3usize, 13u8, val as u64) +self._bitfield_1.set_const::<3usize, 13u8>(val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn reserved_raw(this: *const Self) -> __u16 { -unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(::core::ptr::addr_of!((*this)._bitfield_1), 3usize, 13u8) as u16) } +unsafe { ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 13u8>(::core::ptr::addr_of!((*this)._bitfield_1)) as u16) } } #[inline] +#[allow(unnecessary_transmutes)] pub unsafe fn set_reserved_raw(this: *mut Self, val: __u16) { unsafe { let val: u16 = ::core::mem::transmute(val); -<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(::core::ptr::addr_of_mut!((*this)._bitfield_1), 3usize, 13u8, val as u64) +<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 13u8>(::core::ptr::addr_of_mut!((*this)._bitfield_1), val as u64) } } #[inline] +#[allow(unnecessary_transmutes)] pub fn new_bitfield_1(is_current: __u16, is_rnext: __u16, get_all: __u16, reserved: __u16) -> __BindgenBitfieldUnit<[u8; 2usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default(); -__bindgen_bitfield_unit.set(0usize, 1u8, { +__bindgen_bitfield_unit.set_const::<0usize, 1u8>({ let is_current: u16 = unsafe { ::core::mem::transmute(is_current) }; is_current as u64 }); -__bindgen_bitfield_unit.set(1usize, 1u8, { +__bindgen_bitfield_unit.set_const::<1usize, 1u8>({ let is_rnext: u16 = unsafe { ::core::mem::transmute(is_rnext) }; is_rnext as u64 }); -__bindgen_bitfield_unit.set(2usize, 1u8, { +__bindgen_bitfield_unit.set_const::<2usize, 1u8>({ let get_all: u16 = unsafe { ::core::mem::transmute(get_all) }; get_all as u64 }); -__bindgen_bitfield_unit.set(3usize, 13u8, { +__bindgen_bitfield_unit.set_const::<3usize, 13u8>({ let reserved: u16 = unsafe { ::core::mem::transmute(reserved) }; reserved as u64 }); diff --git a/src/x86_64/netlink.rs b/src/x86_64/netlink.rs index cc0a52de0..39bbc9fef 100644 --- a/src/x86_64/netlink.rs +++ b/src/x86_64/netlink.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -139,6 +140,11 @@ pub mcs: [__u16; 8usize], pub struct nl80211_txrate_he { pub mcs: [__u16; 8usize], } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nl80211_txrate_eht { +pub mcs: [__u16; 16usize], +} #[repr(C, packed)] #[derive(Debug, Copy, Clone)] pub struct nl80211_pattern_support { @@ -744,6 +750,7 @@ pub const NL80211_SCAN_RSSI_THOLD_OFF: i32 = -300; pub const NL80211_CQM_TXE_MAX_INTVL: u32 = 1800; pub const NL80211_VHT_NSS_MAX: u32 = 8; pub const NL80211_HE_NSS_MAX: u32 = 8; +pub const NL80211_EHT_NSS_MAX: u32 = 16; pub const NL80211_KCK_LEN: u32 = 16; pub const NL80211_KEK_LEN: u32 = 16; pub const NL80211_KCK_EXT_LEN: u32 = 24; @@ -756,6 +763,7 @@ pub const NL80211_NAN_FUNC_SERVICE_ID_LEN: u32 = 6; pub const NL80211_NAN_FUNC_SERVICE_SPEC_INFO_MAX_LEN: u32 = 255; pub const NL80211_NAN_FUNC_SRF_MAX_LEN: u32 = 255; pub const NL80211_FILS_DISCOVERY_TMPL_MIN_LEN: u32 = 42; +pub const NL80211_NAN_SCHED_NOT_AVAIL_SLOT: u32 = 255; pub const MACVLAN_FLAG_NOPROMISC: u32 = 1; pub const MACVLAN_FLAG_NODST: u32 = 2; pub const IPVLAN_F_PRIVATE: u32 = 1; @@ -897,6 +905,7 @@ pub const RTEXT_FILTER_MRP: u32 = 16; pub const RTEXT_FILTER_CFM_CONFIG: u32 = 32; pub const RTEXT_FILTER_CFM_STATUS: u32 = 64; pub const RTEXT_FILTER_MST: u32 = 128; +pub const RTEXT_FILTER_NAME_ONLY: u32 = 256; pub const FIB_RULE_PERMANENT: u32 = 1; pub const FIB_RULE_INVERT: u32 = 2; pub const FIB_RULE_UNRESOLVED: u32 = 4; @@ -975,6 +984,8 @@ pub const IFLA_GRO_IPV4_MAX_SIZE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_GRO_IPV4_M 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_NETNS_IMMUTABLE: _bindgen_ty_2 = _bindgen_ty_2::IFLA_NETNS_IMMUTABLE; +pub const IFLA_HEADROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_HEADROOM; +pub const IFLA_TAILROOM: _bindgen_ty_2 = _bindgen_ty_2::IFLA_TAILROOM; 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; @@ -1045,6 +1056,7 @@ pub const IFLA_BR_MULTI_BOOLOPT: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MULTI_BO pub const IFLA_BR_MCAST_QUERIER_STATE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_MCAST_QUERIER_STATE; pub const IFLA_BR_FDB_N_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_N_LEARNED; pub const IFLA_BR_FDB_MAX_LEARNED: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_FDB_MAX_LEARNED; +pub const IFLA_BR_STP_MODE: _bindgen_ty_6 = _bindgen_ty_6::IFLA_BR_STP_MODE; pub const __IFLA_BR_MAX: _bindgen_ty_6 = _bindgen_ty_6::__IFLA_BR_MAX; pub const BRIDGE_MODE_UNSPEC: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_UNSPEC; pub const BRIDGE_MODE_HAIRPIN: _bindgen_ty_7 = _bindgen_ty_7::BRIDGE_MODE_HAIRPIN; @@ -1093,6 +1105,7 @@ pub const IFLA_BRPORT_MCAST_N_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT pub const IFLA_BRPORT_MCAST_MAX_GROUPS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_MCAST_MAX_GROUPS; pub const IFLA_BRPORT_NEIGH_VLAN_SUPPRESS: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_VLAN_SUPPRESS; pub const IFLA_BRPORT_BACKUP_NHID: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_BACKUP_NHID; +pub const IFLA_BRPORT_NEIGH_FORWARD_GRAT: _bindgen_ty_8 = _bindgen_ty_8::IFLA_BRPORT_NEIGH_FORWARD_GRAT; pub const __IFLA_BRPORT_MAX: _bindgen_ty_8 = _bindgen_ty_8::__IFLA_BRPORT_MAX; pub const IFLA_INFO_UNSPEC: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_UNSPEC; pub const IFLA_INFO_KIND: _bindgen_ty_9 = _bindgen_ty_9::IFLA_INFO_KIND; @@ -1164,6 +1177,7 @@ 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_HEADROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_HEADROOM; pub const IFLA_NETKIT_TAILROOM: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_TAILROOM; +pub const IFLA_NETKIT_PAIRING: _bindgen_ty_18 = _bindgen_ty_18::IFLA_NETKIT_PAIRING; 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; @@ -1238,6 +1252,9 @@ pub const IFLA_GENEVE_TTL_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_ pub const IFLA_GENEVE_DF: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_DF; pub const IFLA_GENEVE_INNER_PROTO_INHERIT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_INNER_PROTO_INHERIT; pub const IFLA_GENEVE_PORT_RANGE: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_PORT_RANGE; +pub const IFLA_GENEVE_GRO_HINT: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_GRO_HINT; +pub const IFLA_GENEVE_LOCAL: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL; +pub const IFLA_GENEVE_LOCAL6: _bindgen_ty_23 = _bindgen_ty_23::IFLA_GENEVE_LOCAL6; pub const __IFLA_GENEVE_MAX: _bindgen_ty_23 = _bindgen_ty_23::__IFLA_GENEVE_MAX; pub const IFLA_BAREUDP_UNSPEC: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_UNSPEC; pub const IFLA_BAREUDP_PORT: _bindgen_ty_24 = _bindgen_ty_24::IFLA_BAREUDP_PORT; @@ -1292,6 +1309,7 @@ pub const IFLA_BOND_MISSED_MAX: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_MISSE pub const IFLA_BOND_NS_IP6_TARGET: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_NS_IP6_TARGET; pub const IFLA_BOND_COUPLED_CONTROL: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_COUPLED_CONTROL; pub const IFLA_BOND_BROADCAST_NEIGH: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_BROADCAST_NEIGH; +pub const IFLA_BOND_LACP_STRICT: _bindgen_ty_27 = _bindgen_ty_27::IFLA_BOND_LACP_STRICT; pub const __IFLA_BOND_MAX: _bindgen_ty_27 = _bindgen_ty_27::__IFLA_BOND_MAX; pub const IFLA_BOND_AD_INFO_UNSPEC: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_UNSPEC; pub const IFLA_BOND_AD_INFO_AGGREGATOR: _bindgen_ty_28 = _bindgen_ty_28::IFLA_BOND_AD_INFO_AGGREGATOR; @@ -1310,6 +1328,9 @@ pub const IFLA_BOND_SLAVE_AD_AGGREGATOR_ID: _bindgen_ty_29 = _bindgen_ty_29::IFL pub const IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE; pub const IFLA_BOND_SLAVE_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_PRIO; +pub const IFLA_BOND_SLAVE_ACTOR_PORT_PRIO: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_ACTOR_PORT_PRIO; +pub const IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE; +pub const IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE: _bindgen_ty_29 = _bindgen_ty_29::IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE; pub const __IFLA_BOND_SLAVE_MAX: _bindgen_ty_29 = _bindgen_ty_29::__IFLA_BOND_SLAVE_MAX; pub const IFLA_VF_INFO_UNSPEC: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO_UNSPEC; pub const IFLA_VF_INFO: _bindgen_ty_30 = _bindgen_ty_30::IFLA_VF_INFO; @@ -1954,7 +1975,17 @@ NL80211_CMD_LINKS_REMOVED = 154, NL80211_CMD_SET_TID_TO_LINK_MAPPING = 155, NL80211_CMD_ASSOC_MLO_RECONF = 156, NL80211_CMD_EPCS_CFG = 157, -__NL80211_CMD_AFTER_LAST = 158, +NL80211_CMD_NAN_NEXT_DW_NOTIFICATION = 158, +NL80211_CMD_NAN_CLUSTER_JOINED = 159, +NL80211_CMD_INCUMBENT_SIGNAL_DETECT = 160, +NL80211_CMD_NAN_SET_LOCAL_SCHED = 161, +NL80211_CMD_NAN_SCHED_UPDATE_DONE = 162, +NL80211_CMD_NAN_SET_PEER_SCHED = 163, +NL80211_CMD_NAN_ULW_UPDATE = 164, +NL80211_CMD_NAN_CHANNEL_EVAC = 165, +NL80211_CMD_START_PD = 166, +NL80211_CMD_STOP_PD = 167, +__NL80211_CMD_AFTER_LAST = 168, } #[repr(u32)] #[non_exhaustive] @@ -2297,11 +2328,37 @@ NL80211_ATTR_VIF_RADIO_MASK = 333, NL80211_ATTR_SUPPORTED_SELECTORS = 334, NL80211_ATTR_MLO_RECONF_REM_LINKS = 335, NL80211_ATTR_EPCS = 336, -NL80211_ATTR_ASSOC_MLD_EXT_CAPA_OPS = 337, +NL80211_ATTR_EXT_MLD_CAPA_AND_OPS = 337, NL80211_ATTR_WIPHY_RADIO_INDEX = 338, NL80211_ATTR_S1G_LONG_BEACON_PERIOD = 339, NL80211_ATTR_S1G_SHORT_BEACON = 340, -__NL80211_ATTR_AFTER_LAST = 341, +NL80211_ATTR_BSS_PARAM = 341, +NL80211_ATTR_NAN_CONFIG = 342, +NL80211_ATTR_NAN_NEW_CLUSTER = 343, +NL80211_ATTR_NAN_CAPABILITIES = 344, +NL80211_ATTR_S1G_PRIMARY_2MHZ = 345, +NL80211_ATTR_EPP_PEER = 346, +NL80211_ATTR_UHR_CAPABILITY = 347, +NL80211_ATTR_DISABLE_UHR = 348, +NL80211_ATTR_INCUMBENT_SIGNAL_INTERFERENCE_BITMAP = 349, +NL80211_ATTR_UHR_OPERATION = 350, +NL80211_ATTR_NAN_CHANNEL = 351, +NL80211_ATTR_NAN_CHANNEL_ENTRY = 352, +NL80211_ATTR_NAN_TIME_SLOTS = 353, +NL80211_ATTR_NAN_RX_NSS = 354, +NL80211_ATTR_NAN_AVAIL_BLOB = 355, +NL80211_ATTR_NAN_SCHED_DEFERRED = 356, +NL80211_ATTR_NAN_SCHED_UPDATE_SUCCESS = 357, +NL80211_ATTR_NAN_NMI_MAC = 358, +NL80211_ATTR_NAN_ULW = 359, +NL80211_ATTR_NAN_COMMITTED_DW = 360, +NL80211_ATTR_NAN_SEQ_ID = 361, +NL80211_ATTR_NAN_MAX_CHAN_SWITCH_TIME = 362, +NL80211_ATTR_NAN_PEER_MAPS = 363, +NL80211_ATTR_ASSOC_ENCRYPTED = 364, +NL80211_ATTR_NPCA_PRIMARY_FREQ = 365, +NL80211_ATTR_NPCA_PUNCT_BITMAP = 366, +__NL80211_ATTR_AFTER_LAST = 367, } #[repr(u32)] #[non_exhaustive] @@ -2320,7 +2377,9 @@ NL80211_IFTYPE_P2P_GO = 9, NL80211_IFTYPE_P2P_DEVICE = 10, NL80211_IFTYPE_OCB = 11, NL80211_IFTYPE_NAN = 12, -NUM_NL80211_IFTYPES = 13, +NL80211_IFTYPE_NAN_DATA = 13, +NL80211_IFTYPE_PD = 14, +NUM_NL80211_IFTYPES = 15, } #[repr(u32)] #[non_exhaustive] @@ -2384,6 +2443,16 @@ NL80211_RATE_INFO_EHT_GI_3_2 = 2, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_eht_ltf { +NL80211_RATE_INFO_EHT_1XLTF = 0, +NL80211_RATE_INFO_EHT_2XLTF = 1, +NL80211_RATE_INFO_EHT_4XLTF = 2, +NL80211_RATE_INFO_EHT_6XLTF = 3, +NL80211_RATE_INFO_EHT_8XLTF = 4, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_eht_ru_alloc { NL80211_RATE_INFO_EHT_RU_ALLOC_26 = 0, NL80211_RATE_INFO_EHT_RU_ALLOC_52 = 1, @@ -2436,7 +2505,10 @@ NL80211_RATE_INFO_2_MHZ_WIDTH = 26, NL80211_RATE_INFO_4_MHZ_WIDTH = 27, NL80211_RATE_INFO_8_MHZ_WIDTH = 28, NL80211_RATE_INFO_16_MHZ_WIDTH = 29, -__NL80211_RATE_INFO_AFTER_LAST = 30, +NL80211_RATE_INFO_UHR_MCS = 30, +NL80211_RATE_INFO_UHR_ELR = 31, +NL80211_RATE_INFO_UHR_IM = 32, +__NL80211_RATE_INFO_AFTER_LAST = 33, } #[repr(u32)] #[non_exhaustive] @@ -2573,7 +2645,9 @@ NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MAC = 8, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PHY = 9, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_MCS_SET = 10, NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE = 11, -__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_MAC = 12, +NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY = 13, +__NL80211_BAND_IFTYPE_ATTR_AFTER_LAST = 14, } #[repr(u32)] #[non_exhaustive] @@ -2598,6 +2672,23 @@ __NL80211_BAND_ATTR_AFTER_LAST = 14, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_phy_cap_attr { +__NL80211_NAN_PHY_CAP_ATTR_INVALID = 0, +NL80211_NAN_PHY_CAP_ATTR_HT_MCS_SET = 1, +NL80211_NAN_PHY_CAP_ATTR_HT_CAPA = 2, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_FACTOR = 3, +NL80211_NAN_PHY_CAP_ATTR_HT_AMPDU_DENSITY = 4, +NL80211_NAN_PHY_CAP_ATTR_VHT_MCS_SET = 5, +NL80211_NAN_PHY_CAP_ATTR_VHT_CAPA = 6, +NL80211_NAN_PHY_CAP_ATTR_HE_MAC = 7, +NL80211_NAN_PHY_CAP_ATTR_HE_PHY = 8, +NL80211_NAN_PHY_CAP_ATTR_HE_MCS_SET = 9, +NL80211_NAN_PHY_CAP_ATTR_HE_PPE = 10, +__NL80211_NAN_PHY_CAP_ATTR_AFTER_LAST = 11, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_wmm_rule { __NL80211_WMMR_INVALID = 0, NL80211_WMMR_CW_MIN = 1, @@ -2645,7 +2736,14 @@ NL80211_FREQUENCY_ATTR_NO_6GHZ_AFC_CLIENT = 31, NL80211_FREQUENCY_ATTR_CAN_MONITOR = 32, NL80211_FREQUENCY_ATTR_ALLOW_6GHZ_VLP_AP = 33, NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY = 34, -__NL80211_FREQUENCY_ATTR_AFTER_LAST = 35, +NL80211_FREQUENCY_ATTR_NO_4MHZ = 35, +NL80211_FREQUENCY_ATTR_NO_8MHZ = 36, +NL80211_FREQUENCY_ATTR_NO_16MHZ = 37, +NL80211_FREQUENCY_ATTR_S1G_NO_PRIMARY = 38, +NL80211_FREQUENCY_ATTR_NO_UHR = 39, +NL80211_FREQUENCY_ATTR_CAC_START_TIME = 40, +NL80211_FREQUENCY_ATTR_PAD = 41, +__NL80211_FREQUENCY_ATTR_AFTER_LAST = 42, } #[repr(u32)] #[non_exhaustive] @@ -2730,6 +2828,7 @@ NL80211_RRF_NO_6GHZ_VLP_CLIENT = 4194304, NL80211_RRF_NO_6GHZ_AFC_CLIENT = 8388608, NL80211_RRF_ALLOW_6GHZ_VLP_AP = 16777216, NL80211_RRF_ALLOW_20MHZ_ACTIVITY = 33554432, +NL80211_RRF_NO_UHR = 67108864, } #[repr(u32)] #[non_exhaustive] @@ -2977,7 +3076,9 @@ NL80211_AUTHTYPE_SAE = 4, NL80211_AUTHTYPE_FILS_SK = 5, NL80211_AUTHTYPE_FILS_SK_PFS = 6, NL80211_AUTHTYPE_FILS_PK = 7, -__NL80211_AUTHTYPE_NUM = 8, +NL80211_AUTHTYPE_EPPKE = 8, +NL80211_AUTHTYPE_IEEE8021X = 9, +__NL80211_AUTHTYPE_NUM = 10, } #[repr(u32)] #[non_exhaustive] @@ -3028,7 +3129,8 @@ NL80211_KEY_TYPE = 7, NL80211_KEY_DEFAULT_TYPES = 8, NL80211_KEY_MODE = 9, NL80211_KEY_DEFAULT_BEACON = 10, -__NL80211_KEY_AFTER_LAST = 11, +NL80211_KEY_LTF_SEED = 11, +__NL80211_KEY_AFTER_LAST = 12, } #[repr(u32)] #[non_exhaustive] @@ -3042,7 +3144,10 @@ NL80211_TXRATE_GI = 4, NL80211_TXRATE_HE = 5, NL80211_TXRATE_HE_GI = 6, NL80211_TXRATE_HE_LTF = 7, -__NL80211_TXRATE_AFTER_LAST = 8, +NL80211_TXRATE_EHT = 8, +NL80211_TXRATE_EHT_GI = 9, +NL80211_TXRATE_EHT_LTF = 10, +__NL80211_TXRATE_AFTER_LAST = 11, } #[repr(u32)] #[non_exhaustive] @@ -3418,7 +3523,13 @@ NL80211_EXT_FEATURE_OWE_OFFLOAD = 65, NL80211_EXT_FEATURE_OWE_OFFLOAD_AP = 66, NL80211_EXT_FEATURE_DFS_CONCURRENT = 67, NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT = 68, -NUM_NL80211_EXT_FEATURES = 69, +NL80211_EXT_FEATURE_BEACON_RATE_EHT = 69, +NL80211_EXT_FEATURE_EPPKE = 70, +NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION = 71, +NL80211_EXT_FEATURE_IEEE8021X_AUTH = 72, +NL80211_EXT_FEATURE_ROC_ADDR_FILTER = 73, +NL80211_EXT_FEATURE_SET_KEY_LTF_SEED = 74, +NUM_NL80211_EXT_FEATURES = 75, } #[repr(u32)] #[non_exhaustive] @@ -3621,6 +3732,34 @@ NUM_NL80211_NAN_MATCH_ATTR = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_band_conf_attributes { +__NL80211_NAN_BAND_CONF_INVALID = 0, +NL80211_NAN_BAND_CONF_BAND = 1, +NL80211_NAN_BAND_CONF_FREQ = 2, +NL80211_NAN_BAND_CONF_RSSI_CLOSE = 3, +NL80211_NAN_BAND_CONF_RSSI_MIDDLE = 4, +NL80211_NAN_BAND_CONF_WAKE_DW = 5, +NL80211_NAN_BAND_CONF_DISABLE_SCAN = 6, +NUM_NL80211_NAN_BAND_CONF_ATTR = 7, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_conf_attributes { +__NL80211_NAN_CONF_INVALID = 0, +NL80211_NAN_CONF_CLUSTER_ID = 1, +NL80211_NAN_CONF_EXTRA_ATTRS = 2, +NL80211_NAN_CONF_VENDOR_ELEMS = 3, +NL80211_NAN_CONF_BAND_CONFIGS = 4, +NL80211_NAN_CONF_SCAN_PERIOD = 5, +NL80211_NAN_CONF_SCAN_DWELL_TIME = 6, +NL80211_NAN_CONF_DISCOVERY_BEACON_INTERVAL = 7, +NL80211_NAN_CONF_NOTIFY_DW = 8, +NUM_NL80211_NAN_CONF_ATTR = 9, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_external_auth_action { NL80211_EXTERNAL_AUTH_START = 0, NL80211_EXTERNAL_AUTH_ABORT = 1, @@ -3704,13 +3843,22 @@ NUM_NL80211_PMSR_RESP_ATTRS = 7, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_req_type { +NL80211_PMSR_FTM_REQ_TYPE_INFRA = 0, +NL80211_PMSR_FTM_REQ_TYPE_PD = 1, +NUM_NL80211_PMSR_FTM_REQ_TYPE = 2, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum nl80211_peer_measurement_peer_attrs { __NL80211_PMSR_PEER_ATTR_INVALID = 0, NL80211_PMSR_PEER_ATTR_ADDR = 1, NL80211_PMSR_PEER_ATTR_CHAN = 2, NL80211_PMSR_PEER_ATTR_REQ = 3, NL80211_PMSR_PEER_ATTR_RESP = 4, -NUM_NL80211_PMSR_PEER_ATTRS = 5, +NL80211_PMSR_PEER_ATTR_REQ_TYPE = 5, +NUM_NL80211_PMSR_PEER_ATTRS = 6, } #[repr(u32)] #[non_exhaustive] @@ -3722,7 +3870,9 @@ NL80211_PMSR_ATTR_REPORT_AP_TSF = 2, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR = 3, NL80211_PMSR_ATTR_TYPE_CAPA = 4, NL80211_PMSR_ATTR_PEERS = 5, -NUM_NL80211_PMSR_ATTR = 6, +NL80211_PMSR_ATTR_MAX_PEER_ISTA_ROLE = 6, +NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE = 7, +NUM_NL80211_PMSR_ATTR = 8, } #[repr(u32)] #[non_exhaustive] @@ -3739,7 +3889,37 @@ NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT = 7, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST = 8, NL80211_PMSR_FTM_CAPA_ATTR_TRIGGER_BASED = 9, NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED = 10, -NUM_NL80211_PMSR_FTM_CAPA_ATTR = 11, +NL80211_PMSR_FTM_CAPA_ATTR_6GHZ_SUPPORT = 11, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_LTF_REP = 12, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_LTF_REP = 13, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TX_STS = 14, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_RX_STS = 15, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_TX = 16, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_TOTAL_LTF_RX = 17, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_SUPPORT = 18, +NL80211_PMSR_FTM_CAPA_ATTR_ISTA_CAPS = 19, +NL80211_PMSR_FTM_CAPA_ATTR_RSTA_CAPS = 20, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_NTB = 21, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_TB = 22, +NL80211_PMSR_FTM_CAPA_ATTR_SUPPORT_EDCA = 23, +NL80211_PMSR_FTM_CAPA_ATTR_TYPE_CAPS = 24, +NL80211_PMSR_FTM_CAPA_ATTR_CONCURRENT_ISTA_RSTA_SUPPORT = 25, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_TX_ANTENNAS = 26, +NL80211_PMSR_FTM_CAPA_ATTR_MAX_NUM_RX_ANTENNAS = 27, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_EDCA = 28, +NL80211_PMSR_FTM_CAPA_ATTR_MIN_INTERVAL_NTB = 29, +NL80211_PMSR_FTM_CAPA_ATTR_PD_PREAMBLES = 30, +NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS = 31, +NUM_NL80211_PMSR_FTM_CAPA_ATTR = 32, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_peer_measurement_ftm_type_capa { +__NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INVALID = 0, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_INFRA_SUPPORT = 1, +NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT = 2, +NUM_NL80211_PMSR_FTM_TYPE_CAPA_ATTR = 3, } #[repr(u32)] #[non_exhaustive] @@ -3759,7 +3939,17 @@ NL80211_PMSR_FTM_REQ_ATTR_TRIGGER_BASED = 10, NL80211_PMSR_FTM_REQ_ATTR_NON_TRIGGER_BASED = 11, NL80211_PMSR_FTM_REQ_ATTR_LMR_FEEDBACK = 12, NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR = 13, -NUM_NL80211_PMSR_FTM_REQ_ATTR = 14, +NL80211_PMSR_FTM_REQ_ATTR_RSTA = 14, +NL80211_PMSR_FTM_REQ_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 15, +NL80211_PMSR_FTM_REQ_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 16, +NL80211_PMSR_FTM_REQ_ATTR_NOMINAL_TIME = 17, +NL80211_PMSR_FTM_REQ_ATTR_AW_DURATION = 18, +NL80211_PMSR_FTM_REQ_ATTR_NUM_MEASUREMENTS = 19, +NL80211_PMSR_FTM_REQ_ATTR_PAD = 20, +NL80211_PMSR_FTM_REQ_ATTR_INGRESS = 21, +NL80211_PMSR_FTM_REQ_ATTR_EGRESS = 22, +NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS = 23, +NUM_NL80211_PMSR_FTM_REQ_ATTR = 24, } #[repr(u32)] #[non_exhaustive] @@ -3800,7 +3990,19 @@ NL80211_PMSR_FTM_RESP_ATTR_DIST_SPREAD = 18, NL80211_PMSR_FTM_RESP_ATTR_LCI = 19, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC = 20, NL80211_PMSR_FTM_RESP_ATTR_PAD = 21, -NUM_NL80211_PMSR_FTM_RESP_ATTR = 22, +NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD = 22, +NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT = 23, +NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT = 24, +NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS = 25, +NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS = 26, +NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS = 27, +NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS = 28, +NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME = 29, +NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW = 30, +NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH = 31, +NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE = 32, +NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR = 33, +NUM_NL80211_PMSR_FTM_RESP_ATTR = 34, } #[repr(u32)] #[non_exhaustive] @@ -3942,6 +4144,29 @@ __NL80211_S1G_SHORT_BEACON_ATTR_LAST = 3, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_capabilities { +__NL80211_NAN_CAPABILITIES_INVALID = 0, +NL80211_NAN_CAPA_CONFIGURABLE_SYNC = 1, +NL80211_NAN_CAPA_USERSPACE_DE = 2, +NL80211_NAN_CAPA_OP_MODE = 3, +NL80211_NAN_CAPA_NUM_ANTENNAS = 4, +NL80211_NAN_CAPA_MAX_CHANNEL_SWITCH_TIME = 5, +NL80211_NAN_CAPA_CAPABILITIES = 6, +NL80211_NAN_CAPA_PHY = 7, +__NL80211_NAN_CAPABILITIES_LAST = 8, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum nl80211_nan_peer_map_attrs { +__NL80211_NAN_PEER_MAP_ATTR_INVALID = 0, +NL80211_NAN_PEER_MAP_ATTR_MAP_ID = 1, +NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS = 2, +__NL80211_NAN_PEER_MAP_ATTR_LAST = 3, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum _bindgen_ty_2 { IFLA_UNSPEC = 0, IFLA_ADDRESS = 1, @@ -4011,7 +4236,9 @@ IFLA_GRO_IPV4_MAX_SIZE = 64, IFLA_DPLL_PIN = 65, IFLA_MAX_PACING_OFFLOAD_HORIZON = 66, IFLA_NETNS_IMMUTABLE = 67, -__IFLA_MAX = 68, +IFLA_HEADROOM = 68, +IFLA_TAILROOM = 69, +__IFLA_MAX = 70, } #[repr(u32)] #[non_exhaustive] @@ -4109,7 +4336,17 @@ IFLA_BR_MULTI_BOOLOPT = 46, IFLA_BR_MCAST_QUERIER_STATE = 47, IFLA_BR_FDB_N_LEARNED = 48, IFLA_BR_FDB_MAX_LEARNED = 49, -__IFLA_BR_MAX = 50, +IFLA_BR_STP_MODE = 50, +__IFLA_BR_MAX = 51, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum br_stp_mode { +BR_STP_MODE_AUTO = 0, +BR_STP_MODE_USER = 1, +BR_STP_MODE_KERNEL = 2, +__BR_STP_MODE_MAX = 3, } #[repr(u32)] #[non_exhaustive] @@ -4167,7 +4404,8 @@ IFLA_BRPORT_MCAST_N_GROUPS = 41, IFLA_BRPORT_MCAST_MAX_GROUPS = 42, IFLA_BRPORT_NEIGH_VLAN_SUPPRESS = 43, IFLA_BRPORT_BACKUP_NHID = 44, -__IFLA_BRPORT_MAX = 45, +IFLA_BRPORT_NEIGH_FORWARD_GRAT = 45, +__IFLA_BRPORT_MAX = 46, } #[repr(u32)] #[non_exhaustive] @@ -4339,6 +4577,13 @@ NETKIT_L3 = 1, #[repr(u32)] #[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum netkit_pairing { +NETKIT_DEVICE_PAIR = 0, +NETKIT_DEVICE_SINGLE = 1, +} +#[repr(u32)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum netkit_scrub { NETKIT_SCRUB_NONE = 0, NETKIT_SCRUB_DEFAULT = 1, @@ -4357,7 +4602,8 @@ IFLA_NETKIT_SCRUB = 6, IFLA_NETKIT_PEER_SCRUB = 7, IFLA_NETKIT_HEADROOM = 8, IFLA_NETKIT_TAILROOM = 9, -__IFLA_NETKIT_MAX = 10, +IFLA_NETKIT_PAIRING = 10, +__IFLA_NETKIT_MAX = 11, } #[repr(u32)] #[non_exhaustive] @@ -4473,7 +4719,10 @@ IFLA_GENEVE_TTL_INHERIT = 12, IFLA_GENEVE_DF = 13, IFLA_GENEVE_INNER_PROTO_INHERIT = 14, IFLA_GENEVE_PORT_RANGE = 15, -__IFLA_GENEVE_MAX = 16, +IFLA_GENEVE_GRO_HINT = 16, +IFLA_GENEVE_LOCAL = 17, +IFLA_GENEVE_LOCAL6 = 18, +__IFLA_GENEVE_MAX = 19, } #[repr(u32)] #[non_exhaustive] @@ -4563,7 +4812,8 @@ IFLA_BOND_MISSED_MAX = 30, IFLA_BOND_NS_IP6_TARGET = 31, IFLA_BOND_COUPLED_CONTROL = 32, IFLA_BOND_BROADCAST_NEIGH = 33, -__IFLA_BOND_MAX = 34, +IFLA_BOND_LACP_STRICT = 34, +__IFLA_BOND_MAX = 35, } #[repr(u32)] #[non_exhaustive] @@ -4591,7 +4841,10 @@ IFLA_BOND_SLAVE_AD_AGGREGATOR_ID = 6, IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE = 7, IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE = 8, IFLA_BOND_SLAVE_PRIO = 9, -__IFLA_BOND_SLAVE_MAX = 10, +IFLA_BOND_SLAVE_ACTOR_PORT_PRIO = 10, +IFLA_BOND_SLAVE_AD_CHURN_ACTOR_STATE = 11, +IFLA_BOND_SLAVE_AD_CHURN_PARTNER_STATE = 12, +__IFLA_BOND_SLAVE_MAX = 13, } #[repr(u32)] #[non_exhaustive] @@ -5379,22 +5632,22 @@ impl nl80211_commands { pub const NL80211_CMD_ACTION_TX_STATUS: nl80211_commands = nl80211_commands::NL80211_CMD_FRAME_TX_STATUS; } impl nl80211_commands { -pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_EPCS_CFG; +pub const NL80211_CMD_MAX: nl80211_commands = nl80211_commands::NL80211_CMD_STOP_PD; } impl nl80211_attrs { pub const NUM_NL80211_ATTR: nl80211_attrs = nl80211_attrs::__NL80211_ATTR_AFTER_LAST; } impl nl80211_attrs { -pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_S1G_SHORT_BEACON; +pub const NL80211_ATTR_MAX: nl80211_attrs = nl80211_attrs::NL80211_ATTR_NPCA_PUNCT_BITMAP; } impl nl80211_iftype { -pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_NAN; +pub const NL80211_IFTYPE_MAX: nl80211_iftype = nl80211_iftype::NL80211_IFTYPE_PD; } impl nl80211_sta_flags { pub const NL80211_STA_FLAG_MAX: nl80211_sta_flags = nl80211_sta_flags::NL80211_STA_FLAG_SPP_AMSDU; } impl nl80211_rate_info { -pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_16_MHZ_WIDTH; +pub const NL80211_RATE_INFO_MAX: nl80211_rate_info = nl80211_rate_info::NL80211_RATE_INFO_UHR_IM; } impl nl80211_sta_bss_param { pub const NL80211_STA_BSS_PARAM_MAX: nl80211_sta_bss_param = nl80211_sta_bss_param::NL80211_STA_BSS_PARAM_BEACON_INTERVAL; @@ -5412,16 +5665,19 @@ impl nl80211_mpath_info { pub const NL80211_MPATH_INFO_MAX: nl80211_mpath_info = nl80211_mpath_info::NL80211_MPATH_INFO_PATH_CHANGE; } impl nl80211_band_iftype_attr { -pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_EHT_CAP_PPE; +pub const NL80211_BAND_IFTYPE_ATTR_MAX: nl80211_band_iftype_attr = nl80211_band_iftype_attr::NL80211_BAND_IFTYPE_ATTR_UHR_CAP_PHY; } impl nl80211_band_attr { pub const NL80211_BAND_ATTR_MAX: nl80211_band_attr = nl80211_band_attr::NL80211_BAND_ATTR_S1G_CAPA; } +impl nl80211_nan_phy_cap_attr { +pub const NL80211_NAN_PHY_CAP_ATTR_MAX: nl80211_nan_phy_cap_attr = nl80211_nan_phy_cap_attr::NL80211_NAN_PHY_CAP_ATTR_HE_PPE; +} impl nl80211_wmm_rule { pub const NL80211_WMMR_MAX: nl80211_wmm_rule = nl80211_wmm_rule::NL80211_WMMR_TXOP; } impl nl80211_frequency_attr { -pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_ALLOW_20MHZ_ACTIVITY; +pub const NL80211_FREQUENCY_ATTR_MAX: nl80211_frequency_attr = nl80211_frequency_attr::NL80211_FREQUENCY_ATTR_PAD; } impl nl80211_bitrate_attr { pub const NL80211_BITRATE_ATTR_MAX: nl80211_bitrate_attr = nl80211_bitrate_attr::NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE; @@ -5454,16 +5710,16 @@ impl nl80211_bss { pub const NL80211_BSS_MAX: nl80211_bss = nl80211_bss::NL80211_BSS_CANNOT_USE_REASONS; } impl nl80211_auth_type { -pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_FILS_PK; +pub const NL80211_AUTHTYPE_MAX: nl80211_auth_type = nl80211_auth_type::NL80211_AUTHTYPE_IEEE8021X; } impl nl80211_auth_type { pub const NL80211_AUTHTYPE_AUTOMATIC: nl80211_auth_type = nl80211_auth_type::__NL80211_AUTHTYPE_NUM; } impl nl80211_key_attributes { -pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_DEFAULT_BEACON; +pub const NL80211_KEY_MAX: nl80211_key_attributes = nl80211_key_attributes::NL80211_KEY_LTF_SEED; } impl nl80211_tx_rate_attributes { -pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_HE_LTF; +pub const NL80211_TXRATE_MAX: nl80211_tx_rate_attributes = nl80211_tx_rate_attributes::NL80211_TXRATE_EHT_LTF; } impl nl80211_attr_cqm { pub const NL80211_ATTR_CQM_MAX: nl80211_attr_cqm = nl80211_attr_cqm::NL80211_ATTR_CQM_RSSI_LEVEL; @@ -5505,7 +5761,7 @@ impl nl80211_ext_feature_index { pub const NL80211_EXT_FEATURE_DATA_ACK_SIGNAL_SUPPORT: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT; } impl nl80211_ext_feature_index { -pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT; +pub const MAX_NL80211_EXT_FEATURES: nl80211_ext_feature_index = nl80211_ext_feature_index::NL80211_EXT_FEATURE_SET_KEY_LTF_SEED; } impl nl80211_smps_mode { pub const NL80211_SMPS_MAX: nl80211_smps_mode = nl80211_smps_mode::NL80211_SMPS_DYNAMIC; @@ -5528,6 +5784,12 @@ pub const NL80211_NAN_SRF_ATTR_MAX: nl80211_nan_srf_attributes = nl80211_nan_srf impl nl80211_nan_match_attributes { pub const NL80211_NAN_MATCH_ATTR_MAX: nl80211_nan_match_attributes = nl80211_nan_match_attributes::NL80211_NAN_MATCH_FUNC_PEER; } +impl nl80211_nan_band_conf_attributes { +pub const NL80211_NAN_BAND_CONF_ATTR_MAX: nl80211_nan_band_conf_attributes = nl80211_nan_band_conf_attributes::NL80211_NAN_BAND_CONF_DISABLE_SCAN; +} +impl nl80211_nan_conf_attributes { +pub const NL80211_NAN_CONF_ATTR_MAX: nl80211_nan_conf_attributes = nl80211_nan_conf_attributes::NL80211_NAN_CONF_NOTIFY_DW; +} impl nl80211_ftm_responder_attributes { pub const NL80211_FTM_RESP_ATTR_MAX: nl80211_ftm_responder_attributes = nl80211_ftm_responder_attributes::NL80211_FTM_RESP_ATTR_CIVICLOC; } @@ -5543,20 +5805,26 @@ pub const NL80211_PMSR_REQ_ATTR_MAX: nl80211_peer_measurement_req = nl80211_peer impl nl80211_peer_measurement_resp { pub const NL80211_PMSR_RESP_ATTR_MAX: nl80211_peer_measurement_resp = nl80211_peer_measurement_resp::NL80211_PMSR_RESP_ATTR_PAD; } +impl nl80211_peer_measurement_ftm_req_type { +pub const NL80211_PMSR_FTM_REQ_TYPE_MAX: nl80211_peer_measurement_ftm_req_type = nl80211_peer_measurement_ftm_req_type::NL80211_PMSR_FTM_REQ_TYPE_PD; +} impl nl80211_peer_measurement_peer_attrs { -pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_RESP; +pub const NL80211_PMSR_PEER_ATTR_MAX: nl80211_peer_measurement_peer_attrs = nl80211_peer_measurement_peer_attrs::NL80211_PMSR_PEER_ATTR_REQ_TYPE; } impl nl80211_peer_measurement_attrs { -pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_PEERS; +pub const NL80211_PMSR_ATTR_MAX: nl80211_peer_measurement_attrs = nl80211_peer_measurement_attrs::NL80211_PMSR_ATTR_MAX_PEER_RSTA_ROLE; } impl nl80211_peer_measurement_ftm_capa { -pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_NON_TRIGGER_BASED; +pub const NL80211_PMSR_FTM_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_capa = nl80211_peer_measurement_ftm_capa::NL80211_PMSR_FTM_CAPA_ATTR_PD_BANDWIDTHS; +} +impl nl80211_peer_measurement_ftm_type_capa { +pub const NL80211_PMSR_FTM_TYPE_CAPA_ATTR_MAX: nl80211_peer_measurement_ftm_type_capa = nl80211_peer_measurement_ftm_type_capa::NL80211_PMSR_FTM_TYPE_CAPA_ATTR_PD_SUPPORT; } impl nl80211_peer_measurement_ftm_req { -pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR; +pub const NL80211_PMSR_FTM_REQ_ATTR_MAX: nl80211_peer_measurement_ftm_req = nl80211_peer_measurement_ftm_req::NL80211_PMSR_FTM_REQ_ATTR_PD_SUPPRESS_RESULTS; } impl nl80211_peer_measurement_ftm_resp { -pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_PAD; +pub const NL80211_PMSR_FTM_RESP_ATTR_MAX: nl80211_peer_measurement_ftm_resp = nl80211_peer_measurement_ftm_resp::NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR; } impl nl80211_obss_pd_attributes { pub const NL80211_HE_OBSS_PD_ATTR_MAX: nl80211_obss_pd_attributes = nl80211_obss_pd_attributes::NL80211_HE_OBSS_PD_ATTR_SR_CTRL; @@ -5591,6 +5859,12 @@ pub const NL80211_WIPHY_RADIO_FREQ_ATTR_MAX: nl80211_wiphy_radio_freq_range = nl impl nl80211_s1g_short_beacon_attrs { pub const NL80211_S1G_SHORT_BEACON_ATTR_MAX: nl80211_s1g_short_beacon_attrs = nl80211_s1g_short_beacon_attrs::NL80211_S1G_SHORT_BEACON_ATTR_TAIL; } +impl nl80211_nan_capabilities { +pub const NL80211_NAN_CAPABILITIES_MAX: nl80211_nan_capabilities = nl80211_nan_capabilities::NL80211_NAN_CAPA_PHY; +} +impl nl80211_nan_peer_map_attrs { +pub const NL80211_NAN_PEER_MAP_ATTR_MAX: nl80211_nan_peer_map_attrs = nl80211_nan_peer_map_attrs::NL80211_NAN_PEER_MAP_ATTR_TIME_SLOTS; +} impl macsec_validation_type { pub const MACSEC_VALIDATE_MAX: macsec_validation_type = macsec_validation_type::MACSEC_VALIDATE_STRICT; } diff --git a/src/x86_64/prctl.rs b/src/x86_64/prctl.rs index c49801429..f1f359c00 100644 --- a/src/x86_64/prctl.rs +++ b/src/x86_64/prctl.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -150,6 +151,7 @@ pub const PR_SET_NO_NEW_PRIVS: u32 = 38; pub const PR_GET_NO_NEW_PRIVS: u32 = 39; pub const PR_GET_TID_ADDRESS: u32 = 40; pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_THP_DISABLE_EXCEPT_ADVISED: u32 = 2; pub const PR_GET_THP_DISABLE: u32 = 42; pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; @@ -270,3 +272,10 @@ pub const PR_TIMER_CREATE_RESTORE_IDS_GET: u32 = 2; pub const PR_FUTEX_HASH: u32 = 78; pub const PR_FUTEX_HASH_SET_SLOTS: u32 = 1; pub const PR_FUTEX_HASH_GET_SLOTS: u32 = 2; +pub const PR_RSEQ_SLICE_EXTENSION: u32 = 79; +pub const PR_RSEQ_SLICE_EXTENSION_GET: u32 = 1; +pub const PR_RSEQ_SLICE_EXTENSION_SET: u32 = 2; +pub const PR_RSEQ_SLICE_EXT_ENABLE: u32 = 1; +pub const PR_GET_CFI: u32 = 80; +pub const PR_SET_CFI: u32 = 81; +pub const PR_CFI_BRANCH_LANDING_PADS: u32 = 0; diff --git a/src/x86_64/ptrace.rs b/src/x86_64/ptrace.rs index ebe666144..ebad323c9 100644 --- a/src/x86_64/ptrace.rs +++ b/src/x86_64/ptrace.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; @@ -377,6 +378,8 @@ pub const AUDIT_IPE_CONFIG_CHANGE: u32 = 1421; pub const AUDIT_IPE_POLICY_LOAD: u32 = 1422; pub const AUDIT_LANDLOCK_ACCESS: u32 = 1423; pub const AUDIT_LANDLOCK_DOMAIN: u32 = 1424; +pub const AUDIT_MAC_TASK_CONTEXTS: u32 = 1425; +pub const AUDIT_MAC_OBJ_CONTEXTS: u32 = 1426; pub const AUDIT_FIRST_KERN_ANOM_MSG: u32 = 1700; pub const AUDIT_LAST_KERN_ANOM_MSG: u32 = 1799; pub const AUDIT_ANOM_PROMISCUOUS: u32 = 1700; @@ -785,6 +788,7 @@ pub const X86_CR4_SMEP_BIT: u32 = 20; pub const X86_CR4_SMAP_BIT: u32 = 21; pub const X86_CR4_PKE_BIT: u32 = 22; pub const X86_CR4_CET_BIT: u32 = 23; +pub const X86_CR4_LASS_BIT: u32 = 27; pub const X86_CR4_LAM_SUP_BIT: u32 = 28; pub const X86_CR4_FRED_BIT: u32 = 32; pub const CX86_PCR0: u32 = 32; diff --git a/src/x86_64/system.rs b/src/x86_64/system.rs index b7c090587..62cc889b2 100644 --- a/src/x86_64/system.rs +++ b/src/x86_64/system.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86_64/vm_sockets.rs b/src/x86_64/vm_sockets.rs index f8e635755..904520c27 100644 --- a/src/x86_64/vm_sockets.rs +++ b/src/x86_64/vm_sockets.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __kernel_sa_family_t = crate::ctypes::c_ushort; pub type __s8 = crate::ctypes::c_schar; @@ -31,6 +31,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong; diff --git a/src/x86_64/xdp.rs b/src/x86_64/xdp.rs index 189f0dc9c..e41b0fef9 100644 --- a/src/x86_64/xdp.rs +++ b/src/x86_64/xdp.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.72.1 */ +/* automatically generated by rust-bindgen 0.73.2 */ pub type __s8 = crate::ctypes::c_schar; pub type __u8 = crate::ctypes::c_uchar; @@ -30,6 +30,7 @@ pub type __kernel_ssize_t = __kernel_long_t; pub type __kernel_ptrdiff_t = __kernel_long_t; pub type __kernel_off_t = __kernel_long_t; pub type __kernel_loff_t = crate::ctypes::c_longlong; +pub type __kernel_uoff_t = crate::ctypes::c_ulonglong; pub type __kernel_old_time_t = __kernel_long_t; pub type __kernel_time_t = __kernel_long_t; pub type __kernel_time64_t = crate::ctypes::c_longlong;