@zigc/lib 0.17.0-dev.131 → 0.17.0-dev.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/libc/include/aarch64-linux-any/asm/hwcap.h +1 -0
  2. package/libc/include/aarch64-linux-any/asm/unistd_64.h +1 -0
  3. package/libc/include/any-linux-any/asm-generic/errno.h +2 -0
  4. package/libc/include/any-linux-any/asm-generic/unistd.h +4 -1
  5. package/libc/include/any-linux-any/drm/amdgpu_drm.h +20 -6
  6. package/libc/include/any-linux-any/drm/amdxdna_accel.h +8 -0
  7. package/libc/include/any-linux-any/drm/drm_fourcc.h +6 -6
  8. package/libc/include/any-linux-any/drm/panfrost_drm.h +75 -1
  9. package/libc/include/any-linux-any/drm/panthor_drm.h +154 -3
  10. package/libc/include/any-linux-any/drm/rocket_accel.h +74 -24
  11. package/libc/include/any-linux-any/drm/xe_drm.h +89 -6
  12. package/libc/include/any-linux-any/linux/android/binder.h +1 -1
  13. package/libc/include/any-linux-any/linux/bpf.h +28 -0
  14. package/libc/include/any-linux-any/linux/btrfs.h +1 -0
  15. package/libc/include/any-linux-any/linux/btrfs_tree.h +32 -2
  16. package/libc/include/any-linux-any/linux/dma-buf.h +1 -0
  17. package/libc/include/any-linux-any/linux/dpll.h +1 -0
  18. package/libc/include/any-linux-any/linux/elf.h +2 -0
  19. package/libc/include/any-linux-any/linux/ethtool.h +21 -5
  20. package/libc/include/any-linux-any/linux/fs.h +1 -0
  21. package/libc/include/any-linux-any/linux/hyperv.h +1 -1
  22. package/libc/include/any-linux-any/linux/idxd.h +134 -134
  23. package/libc/include/any-linux-any/linux/if_alg.h +1 -1
  24. package/libc/include/any-linux-any/linux/if_link.h +1 -0
  25. package/libc/include/any-linux-any/linux/input-event-codes.h +4 -0
  26. package/libc/include/any-linux-any/linux/io_uring/bpf_filter.h +68 -0
  27. package/libc/include/any-linux-any/linux/io_uring/query.h +5 -1
  28. package/libc/include/any-linux-any/linux/io_uring.h +33 -2
  29. package/libc/include/any-linux-any/linux/iommufd.h +39 -0
  30. package/libc/include/any-linux-any/linux/kfd_ioctl.h +13 -3
  31. package/libc/include/any-linux-any/linux/kfd_sysfs.h +2 -1
  32. package/libc/include/any-linux-any/linux/kvm.h +30 -6
  33. package/libc/include/any-linux-any/linux/landlock.h +22 -8
  34. package/libc/include/any-linux-any/linux/magic.h +1 -0
  35. package/libc/include/any-linux-any/linux/mempolicy.h +3 -0
  36. package/libc/include/any-linux-any/linux/mount.h +11 -2
  37. package/libc/include/any-linux-any/linux/mptcp_pm.h +1 -1
  38. package/libc/include/any-linux-any/linux/mshv.h +2 -0
  39. package/libc/include/any-linux-any/linux/netfilter_bridge.h +5 -4
  40. package/libc/include/any-linux-any/linux/netfilter_ipv4.h +4 -5
  41. package/libc/include/any-linux-any/linux/netfilter_ipv6.h +3 -4
  42. package/libc/include/any-linux-any/linux/nfs.h +1 -1
  43. package/libc/include/any-linux-any/linux/nfsd_netlink.h +1 -0
  44. package/libc/include/any-linux-any/linux/nilfs2_api.h +2 -2
  45. package/libc/include/any-linux-any/linux/nilfs2_ondisk.h +97 -66
  46. package/libc/include/any-linux-any/linux/nl80211.h +104 -3
  47. package/libc/include/any-linux-any/linux/pci.h +7 -0
  48. package/libc/include/any-linux-any/linux/pci_regs.h +65 -6
  49. package/libc/include/any-linux-any/linux/pcitest.h +1 -0
  50. package/libc/include/any-linux-any/linux/perf_event.h +24 -3
  51. package/libc/include/any-linux-any/linux/pkt_sched.h +1 -0
  52. package/libc/include/any-linux-any/linux/prctl.h +30 -0
  53. package/libc/include/any-linux-any/linux/rseq.h +62 -5
  54. package/libc/include/any-linux-any/linux/shm.h +0 -1
  55. package/libc/include/any-linux-any/linux/stddef.h +4 -0
  56. package/libc/include/any-linux-any/linux/sysctl.h +1 -2
  57. package/libc/include/any-linux-any/linux/taskstats.h +12 -1
  58. package/libc/include/any-linux-any/linux/tcp.h +23 -3
  59. package/libc/include/any-linux-any/linux/typelimits.h +8 -0
  60. package/libc/include/any-linux-any/linux/ublk_cmd.h +120 -1
  61. package/libc/include/any-linux-any/linux/v4l2-controls.h +63 -0
  62. package/libc/include/any-linux-any/linux/vbox_vmmdev_types.h +2 -2
  63. package/libc/include/any-linux-any/linux/vduse.h +80 -5
  64. package/libc/include/any-linux-any/linux/version.h +3 -3
  65. package/libc/include/any-linux-any/linux/vfio.h +4 -0
  66. package/libc/include/any-linux-any/linux/videodev2.h +3 -0
  67. package/libc/include/any-linux-any/linux/virtio_ring.h +1 -2
  68. package/libc/include/any-linux-any/linux/vmclock-abi.h +20 -0
  69. package/libc/include/any-linux-any/rdma/bnxt_re-abi.h +16 -0
  70. package/libc/include/any-linux-any/rdma/ib_user_ioctl_cmds.h +16 -0
  71. package/libc/include/any-linux-any/rdma/mana-abi.h +3 -0
  72. package/libc/include/any-linux-any/scsi/scsi_bsg_ufs.h +8 -9
  73. package/libc/include/any-linux-any/sound/sof/tokens.h +6 -0
  74. package/libc/include/arc-linux-any/asm/swab.h +0 -63
  75. package/libc/include/arc-linux-any/asm/unistd_32.h +1 -0
  76. package/libc/include/arm-linux-any/asm/ptrace.h +0 -9
  77. package/libc/include/arm-linux-any/asm/unistd-eabi.h +1 -0
  78. package/libc/include/arm-linux-any/asm/unistd-oabi.h +1 -0
  79. package/libc/include/csky-linux-any/asm/unistd_32.h +1 -0
  80. package/libc/include/hexagon-linux-any/asm/unistd_32.h +1 -0
  81. package/libc/include/loongarch-linux-any/asm/hwcap.h +1 -0
  82. package/libc/include/loongarch-linux-any/asm/kvm.h +1 -0
  83. package/libc/include/loongarch-linux-any/asm/kvm_para.h +1 -0
  84. package/libc/include/loongarch-linux-any/asm/unistd_32.h +2 -0
  85. package/libc/include/loongarch-linux-any/asm/unistd_64.h +2 -0
  86. package/libc/include/m68k-linux-any/asm/unistd_32.h +1 -0
  87. package/libc/include/mips-linux-any/asm/errno.h +2 -0
  88. package/libc/include/mips-linux-any/asm/unistd_n32.h +1 -0
  89. package/libc/include/mips-linux-any/asm/unistd_n64.h +1 -0
  90. package/libc/include/mips-linux-any/asm/unistd_o32.h +1 -0
  91. package/libc/include/powerpc-linux-any/asm/unistd_32.h +1 -0
  92. package/libc/include/powerpc-linux-any/asm/unistd_64.h +1 -0
  93. package/libc/include/riscv-linux-any/asm/hwprobe.h +4 -0
  94. package/libc/include/riscv-linux-any/asm/kvm.h +3 -0
  95. package/libc/include/riscv-linux-any/asm/ptrace.h +37 -0
  96. package/libc/include/riscv-linux-any/asm/sigcontext.h +1 -0
  97. package/libc/include/riscv-linux-any/asm/unistd_32.h +1 -0
  98. package/libc/include/riscv-linux-any/asm/unistd_64.h +1 -0
  99. package/libc/include/s390x-linux-any/asm/unistd_64.h +1 -0
  100. package/libc/include/sparc-linux-any/asm/errno.h +2 -0
  101. package/libc/include/sparc-linux-any/asm/ioctls.h +4 -4
  102. package/libc/include/sparc-linux-any/asm/unistd_32.h +2 -0
  103. package/libc/include/sparc-linux-any/asm/unistd_64.h +2 -0
  104. package/libc/include/x86-linux-any/asm/auxvec.h +0 -4
  105. package/libc/include/x86-linux-any/asm/kvm.h +13 -8
  106. package/libc/include/x86-linux-any/asm/svm.h +16 -16
  107. package/libc/include/x86-linux-any/asm/unistd_32.h +1 -0
  108. package/libc/include/x86-linux-any/asm/unistd_64.h +1 -0
  109. package/libc/include/x86-linux-any/asm/unistd_x32.h +1 -0
  110. package/libc/include/xtensa-linux-any/asm/unistd_32.h +1 -0
  111. package/package.json +1 -1
  112. package/std/os/linux/syscalls.zig +26 -1
  113. package/libc/include/hexagon-linux-any/asm/signal.h +0 -29
  114. package/libc/include/s390x-linux-any/asm/tape390.h +0 -103
@@ -461,6 +461,7 @@
461
461
  #define __NR_file_getattr 468
462
462
  #define __NR_file_setattr 469
463
463
  #define __NR_listns 470
464
+ #define __NR_rseq_slice_yield 471
464
465
 
465
466
 
466
467
  #endif /* _ASM_UNISTD_32_H */
@@ -385,6 +385,7 @@
385
385
  #define __NR_file_getattr 468
386
386
  #define __NR_file_setattr 469
387
387
  #define __NR_listns 470
388
+ #define __NR_rseq_slice_yield 471
388
389
 
389
390
 
390
391
  #endif /* _ASM_UNISTD_64_H */
@@ -338,6 +338,7 @@
338
338
  #define __NR_file_getattr (__X32_SYSCALL_BIT + 468)
339
339
  #define __NR_file_setattr (__X32_SYSCALL_BIT + 469)
340
340
  #define __NR_listns (__X32_SYSCALL_BIT + 470)
341
+ #define __NR_rseq_slice_yield (__X32_SYSCALL_BIT + 471)
341
342
  #define __NR_rt_sigaction (__X32_SYSCALL_BIT + 512)
342
343
  #define __NR_rt_sigreturn (__X32_SYSCALL_BIT + 513)
343
344
  #define __NR_ioctl (__X32_SYSCALL_BIT + 514)
@@ -417,6 +417,7 @@
417
417
  #define __NR_file_getattr 468
418
418
  #define __NR_file_setattr 469
419
419
  #define __NR_listns 470
420
+ #define __NR_rseq_slice_yield 471
420
421
 
421
422
 
422
423
  #endif /* _ASM_UNISTD_32_H */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zigc/lib",
3
- "version": "0.17.0-dev.131",
3
+ "version": "0.17.0-dev.135",
4
4
  "description": "Zig standard library and libc headers (shared across all platforms)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  // This file is automatically generated by tools/generate_linux_syscalls.zig
2
- // This list current as of kernel: 6.19.0
2
+ // This list current as of kernel: 7.0.0
3
3
 
4
4
  pub const X86 = enum(usize) {
5
5
  restart_syscall = 0,
@@ -462,6 +462,7 @@ pub const X86 = enum(usize) {
462
462
  file_getattr = 468,
463
463
  file_setattr = 469,
464
464
  listns = 470,
465
+ rseq_slice_yield = 471,
465
466
  };
466
467
 
467
468
  pub const X64 = enum(usize) {
@@ -849,6 +850,7 @@ pub const X64 = enum(usize) {
849
850
  file_getattr = 468,
850
851
  file_setattr = 469,
851
852
  listns = 470,
853
+ rseq_slice_yield = 471,
852
854
  };
853
855
 
854
856
  pub const X32 = enum(usize) {
@@ -1189,6 +1191,7 @@ pub const X32 = enum(usize) {
1189
1191
  file_getattr = 1073742292,
1190
1192
  file_setattr = 1073742293,
1191
1193
  listns = 1073742294,
1194
+ rseq_slice_yield = 1073742295,
1192
1195
  rt_sigaction = 1073742336,
1193
1196
  rt_sigreturn = 1073742337,
1194
1197
  ioctl = 1073742338,
@@ -1653,6 +1656,7 @@ pub const Arm = enum(usize) {
1653
1656
  file_getattr = 468,
1654
1657
  file_setattr = 469,
1655
1658
  listns = 470,
1659
+ rseq_slice_yield = 471,
1656
1660
 
1657
1661
  breakpoint = arm_base + 1,
1658
1662
  cacheflush = arm_base + 2,
@@ -2068,6 +2072,7 @@ pub const Sparc = enum(usize) {
2068
2072
  fsmount = 432,
2069
2073
  fspick = 433,
2070
2074
  pidfd_open = 434,
2075
+ clone3 = 435,
2071
2076
  close_range = 436,
2072
2077
  openat2 = 437,
2073
2078
  pidfd_getfd = 438,
@@ -2102,6 +2107,7 @@ pub const Sparc = enum(usize) {
2102
2107
  file_getattr = 468,
2103
2108
  file_setattr = 469,
2104
2109
  listns = 470,
2110
+ rseq_slice_yield = 471,
2105
2111
  };
2106
2112
 
2107
2113
  pub const Sparc64 = enum(usize) {
@@ -2473,6 +2479,7 @@ pub const Sparc64 = enum(usize) {
2473
2479
  fsmount = 432,
2474
2480
  fspick = 433,
2475
2481
  pidfd_open = 434,
2482
+ clone3 = 435,
2476
2483
  close_range = 436,
2477
2484
  openat2 = 437,
2478
2485
  pidfd_getfd = 438,
@@ -2507,6 +2514,7 @@ pub const Sparc64 = enum(usize) {
2507
2514
  file_getattr = 468,
2508
2515
  file_setattr = 469,
2509
2516
  listns = 470,
2517
+ rseq_slice_yield = 471,
2510
2518
  };
2511
2519
 
2512
2520
  pub const M68k = enum(usize) {
@@ -2952,6 +2960,7 @@ pub const M68k = enum(usize) {
2952
2960
  file_getattr = 468,
2953
2961
  file_setattr = 469,
2954
2962
  listns = 470,
2963
+ rseq_slice_yield = 471,
2955
2964
  };
2956
2965
 
2957
2966
  pub const MipsO32 = enum(usize) {
@@ -3391,6 +3400,7 @@ pub const MipsO32 = enum(usize) {
3391
3400
  file_getattr = 4468,
3392
3401
  file_setattr = 4469,
3393
3402
  listns = 4470,
3403
+ rseq_slice_yield = 4471,
3394
3404
  };
3395
3405
 
3396
3406
  pub const MipsN64 = enum(usize) {
@@ -3766,6 +3776,7 @@ pub const MipsN64 = enum(usize) {
3766
3776
  file_getattr = 5468,
3767
3777
  file_setattr = 5469,
3768
3778
  listns = 5470,
3779
+ rseq_slice_yield = 5471,
3769
3780
  };
3770
3781
 
3771
3782
  pub const MipsN32 = enum(usize) {
@@ -4165,6 +4176,7 @@ pub const MipsN32 = enum(usize) {
4165
4176
  file_getattr = 6468,
4166
4177
  file_setattr = 6469,
4167
4178
  listns = 6470,
4179
+ rseq_slice_yield = 6471,
4168
4180
  };
4169
4181
 
4170
4182
  pub const PowerPC = enum(usize) {
@@ -4619,6 +4631,7 @@ pub const PowerPC = enum(usize) {
4619
4631
  file_getattr = 468,
4620
4632
  file_setattr = 469,
4621
4633
  listns = 470,
4634
+ rseq_slice_yield = 471,
4622
4635
  };
4623
4636
 
4624
4637
  pub const PowerPC64 = enum(usize) {
@@ -5045,6 +5058,7 @@ pub const PowerPC64 = enum(usize) {
5045
5058
  file_getattr = 468,
5046
5059
  file_setattr = 469,
5047
5060
  listns = 470,
5061
+ rseq_slice_yield = 471,
5048
5062
  };
5049
5063
 
5050
5064
  pub const S390x = enum(usize) {
@@ -5437,6 +5451,7 @@ pub const S390x = enum(usize) {
5437
5451
  file_getattr = 468,
5438
5452
  file_setattr = 469,
5439
5453
  listns = 470,
5454
+ rseq_slice_yield = 471,
5440
5455
  };
5441
5456
 
5442
5457
  pub const Xtensa = enum(usize) {
@@ -5833,6 +5848,7 @@ pub const Xtensa = enum(usize) {
5833
5848
  file_getattr = 468,
5834
5849
  file_setattr = 469,
5835
5850
  listns = 470,
5851
+ rseq_slice_yield = 471,
5836
5852
  };
5837
5853
 
5838
5854
  pub const Arm64 = enum(usize) {
@@ -6162,6 +6178,7 @@ pub const Arm64 = enum(usize) {
6162
6178
  file_getattr = 468,
6163
6179
  file_setattr = 469,
6164
6180
  listns = 470,
6181
+ rseq_slice_yield = 471,
6165
6182
  };
6166
6183
 
6167
6184
  pub const RiscV32 = enum(usize) {
@@ -6482,6 +6499,7 @@ pub const RiscV32 = enum(usize) {
6482
6499
  file_getattr = 468,
6483
6500
  file_setattr = 469,
6484
6501
  listns = 470,
6502
+ rseq_slice_yield = 471,
6485
6503
  };
6486
6504
 
6487
6505
  pub const RiscV64 = enum(usize) {
@@ -6812,6 +6830,7 @@ pub const RiscV64 = enum(usize) {
6812
6830
  file_getattr = 468,
6813
6831
  file_setattr = 469,
6814
6832
  listns = 470,
6833
+ rseq_slice_yield = 471,
6815
6834
  };
6816
6835
 
6817
6836
  pub const LoongArch32 = enum(usize) {
@@ -7129,6 +7148,7 @@ pub const LoongArch32 = enum(usize) {
7129
7148
  file_getattr = 468,
7130
7149
  file_setattr = 469,
7131
7150
  listns = 470,
7151
+ rseq_slice_yield = 471,
7132
7152
  };
7133
7153
 
7134
7154
  pub const LoongArch64 = enum(usize) {
@@ -7454,6 +7474,7 @@ pub const LoongArch64 = enum(usize) {
7454
7474
  file_getattr = 468,
7455
7475
  file_setattr = 469,
7456
7476
  listns = 470,
7477
+ rseq_slice_yield = 471,
7457
7478
  };
7458
7479
 
7459
7480
  pub const Arc = enum(usize) {
@@ -7807,6 +7828,7 @@ pub const Arc = enum(usize) {
7807
7828
  file_getattr = 468,
7808
7829
  file_setattr = 469,
7809
7830
  listns = 470,
7831
+ rseq_slice_yield = 471,
7810
7832
  };
7811
7833
 
7812
7834
  pub const CSky = enum(usize) {
@@ -8156,6 +8178,7 @@ pub const CSky = enum(usize) {
8156
8178
  file_getattr = 468,
8157
8179
  file_setattr = 469,
8158
8180
  listns = 470,
8181
+ rseq_slice_yield = 471,
8159
8182
  };
8160
8183
 
8161
8184
  pub const Hexagon = enum(usize) {
@@ -8504,6 +8527,7 @@ pub const Hexagon = enum(usize) {
8504
8527
  file_getattr = 468,
8505
8528
  file_setattr = 469,
8506
8529
  listns = 470,
8530
+ rseq_slice_yield = 471,
8507
8531
  };
8508
8532
 
8509
8533
  pub const OpenRisc = enum(usize) {
@@ -8853,4 +8877,5 @@ pub const OpenRisc = enum(usize) {
8853
8877
  file_getattr = 468,
8854
8878
  file_setattr = 469,
8855
8879
  listns = 470,
8880
+ rseq_slice_yield = 471,
8856
8881
  };
@@ -1,29 +0,0 @@
1
- /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2
- /*
3
- * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 and
7
- * only version 2 as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, write to the Free Software
16
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
- * 02110-1301, USA.
18
- */
19
-
20
- #ifndef _ASM_SIGNAL_H
21
- #define _ASM_SIGNAL_H
22
-
23
- extern unsigned long __rt_sigtramp_template[2];
24
-
25
- void do_signal(struct pt_regs *regs);
26
-
27
- #include <asm-generic/signal.h>
28
-
29
- #endif
@@ -1,103 +0,0 @@
1
- /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2
- /*************************************************************************
3
- *
4
- * enables user programs to display messages and control encryption
5
- * on s390 tape devices
6
- *
7
- * Copyright IBM Corp. 2001, 2006
8
- * Author(s): Michael Holzheu <holzheu@de.ibm.com>
9
- *
10
- *************************************************************************/
11
-
12
- #ifndef _TAPE390_H
13
- #define _TAPE390_H
14
-
15
- #define TAPE390_DISPLAY _IOW('d', 1, struct display_struct)
16
-
17
- /*
18
- * The TAPE390_DISPLAY ioctl calls the Load Display command
19
- * which transfers 17 bytes of data from the channel to the subsystem:
20
- * - 1 format control byte, and
21
- * - two 8-byte messages
22
- *
23
- * Format control byte:
24
- * 0-2: New Message Overlay
25
- * 3: Alternate Messages
26
- * 4: Blink Message
27
- * 5: Display Low/High Message
28
- * 6: Reserved
29
- * 7: Automatic Load Request
30
- *
31
- */
32
-
33
- typedef struct display_struct {
34
- char cntrl;
35
- char message1[8];
36
- char message2[8];
37
- } display_struct;
38
-
39
- /*
40
- * Tape encryption support
41
- */
42
-
43
- struct tape390_crypt_info {
44
- char capability;
45
- char status;
46
- char medium_status;
47
- } __attribute__ ((packed));
48
-
49
-
50
- /* Macros for "capable" field */
51
- #define TAPE390_CRYPT_SUPPORTED_MASK 0x01
52
- #define TAPE390_CRYPT_SUPPORTED(x) \
53
- ((x.capability & TAPE390_CRYPT_SUPPORTED_MASK))
54
-
55
- /* Macros for "status" field */
56
- #define TAPE390_CRYPT_ON_MASK 0x01
57
- #define TAPE390_CRYPT_ON(x) (((x.status) & TAPE390_CRYPT_ON_MASK))
58
-
59
- /* Macros for "medium status" field */
60
- #define TAPE390_MEDIUM_LOADED_MASK 0x01
61
- #define TAPE390_MEDIUM_ENCRYPTED_MASK 0x02
62
- #define TAPE390_MEDIUM_ENCRYPTED(x) \
63
- (((x.medium_status) & TAPE390_MEDIUM_ENCRYPTED_MASK))
64
- #define TAPE390_MEDIUM_LOADED(x) \
65
- (((x.medium_status) & TAPE390_MEDIUM_LOADED_MASK))
66
-
67
- /*
68
- * The TAPE390_CRYPT_SET ioctl is used to switch on/off encryption.
69
- * The "encryption_capable" and "tape_status" fields are ignored for this ioctl!
70
- */
71
- #define TAPE390_CRYPT_SET _IOW('d', 2, struct tape390_crypt_info)
72
-
73
- /*
74
- * The TAPE390_CRYPT_QUERY ioctl is used to query the encryption state.
75
- */
76
- #define TAPE390_CRYPT_QUERY _IOR('d', 3, struct tape390_crypt_info)
77
-
78
- /* Values for "kekl1/2_type" and "kekl1/2_type_on_tape" fields */
79
- #define TAPE390_KEKL_TYPE_NONE 0
80
- #define TAPE390_KEKL_TYPE_LABEL 1
81
- #define TAPE390_KEKL_TYPE_HASH 2
82
-
83
- struct tape390_kekl {
84
- unsigned char type;
85
- unsigned char type_on_tape;
86
- char label[65];
87
- } __attribute__ ((packed));
88
-
89
- struct tape390_kekl_pair {
90
- struct tape390_kekl kekl[2];
91
- } __attribute__ ((packed));
92
-
93
- /*
94
- * The TAPE390_KEKL_SET ioctl is used to set Key Encrypting Key labels.
95
- */
96
- #define TAPE390_KEKL_SET _IOW('d', 4, struct tape390_kekl_pair)
97
-
98
- /*
99
- * The TAPE390_KEKL_QUERY ioctl is used to query Key Encrypting Key labels.
100
- */
101
- #define TAPE390_KEKL_QUERY _IOR('d', 5, struct tape390_kekl_pair)
102
-
103
- #endif