/
usr
/
src
/
linux-headers-5.15.0-181
/
include
/
uapi
/
linux
/
/usr/src/linux-headers-5.15.0-181/include/uapi/linux
mkdir
upload
Name
Size
Mode
Actions
android/
-
0755
rm
byteorder/
-
0755
rm
caif/
-
0755
rm
can/
-
0755
rm
cifs/
-
0755
rm
dvb/
-
0755
rm
genwqe/
-
0755
rm
hdlc/
-
0755
rm
hsi/
-
0755
rm
iio/
-
0755
rm
isdn/
-
0755
rm
misc/
-
0755
rm
mmc/
-
0755
rm
netfilter/
-
0755
rm
netfilter_arp/
-
0755
rm
netfilter_bridge/
-
0755
rm
netfilter_ipv4/
-
0755
rm
netfilter_ipv6/
-
0755
rm
nfsd/
-
0755
rm
raid/
-
0755
rm
sched/
-
0755
rm
spi/
-
0755
rm
sunrpc/
-
0755
rm
surface_aggregator/
-
0755
rm
tc_act/
-
0755
rm
tc_ematch/
-
0755
rm
usb/
-
0755
rm
a.out.h
6959
0644
edit
dl
rm
acct.h
4013
0644
edit
dl
rm
acrn.h
16705
0644
edit
dl
rm
adb.h
1155
0644
edit
dl
rm
adfs_fs.h
1008
0644
edit
dl
rm
affs_hardblocks.h
1578
0644
edit
dl
rm
agpgart.h
4001
0644
edit
dl
rm
aio_abi.h
3398
0644
edit
dl
rm
am437x-vpfe.h
3681
0644
edit
dl
rm
apm_bios.h
3698
0644
edit
dl
rm
arcfb.h
213
0644
edit
dl
rm
arm_sdei.h
2766
0644
edit
dl
rm
aspeed-lpc-ctrl.h
1795
0644
edit
dl
rm
aspeed-p2a-ctrl.h
1921
0644
edit
dl
rm
atalk.h
1038
0644
edit
dl
rm
atm.h
7937
0644
edit
dl
rm
atmapi.h
952
0644
edit
dl
rm
atmarp.h
1296
0644
edit
dl
rm
atmbr2684.h
3271
0644
edit
dl
rm
atmclip.h
576
0644
edit
dl
rm
atmdev.h
7699
0644
edit
dl
rm
atmioc.h
1647
0644
edit
dl
rm
atmlec.h
2381
0644
edit
dl
rm
atmmpc.h
4226
0644
edit
dl
rm
atmppp.h
639
0644
edit
dl
rm
atmsap.h
4970
0644
edit
dl
rm
atmsvc.h
1853
0644
edit
dl
rm
atm_eni.h
648
0644
edit
dl
rm
atm_he.h
406
0644
edit
dl
rm
atm_idt77105.h
955
0644
edit
dl
rm
atm_nicstar.h
1278
0644
edit
dl
rm
atm_tcp.h
1637
0644
edit
dl
rm
atm_zatm.h
1540
0644
edit
dl
rm
audit.h
21267
0644
edit
dl
rm
aufs_type.h
12641
0644
edit
dl
rm
auto_dev-ioctl.h
4996
0644
edit
dl
rm
auto_fs.h
6450
0644
edit
dl
rm
auto_fs4.h
466
0644
edit
dl
rm
auxvec.h
1612
0644
edit
dl
rm
ax25.h
2824
0644
edit
dl
rm
batadv_packet.h
20360
0644
edit
dl
rm
batman_adv.h
16902
0644
edit
dl
rm
baycom.h
883
0644
edit
dl
rm
bcache.h
9910
0644
edit
dl
rm
bcm933xx_hcs.h
419
0644
edit
dl
rm
bfs_fs.h
1905
0644
edit
dl
rm
binfmts.h
791
0644
edit
dl
rm
blkpg.h
953
0644
edit
dl
rm
blktrace_api.h
4716
0644
edit
dl
rm
blkzoned.h
6508
0644
edit
dl
rm
bpf.h
235084
0644
edit
dl
rm
bpfilter.h
480
0644
edit
dl
rm
bpf_common.h
1382
0644
edit
dl
rm
bpf_perf_event.h
544
0644
edit
dl
rm
bpqether.h
981
0644
edit
dl
rm
bsg.h
2509
0644
edit
dl
rm
bt-bmc.h
587
0644
edit
dl
rm
btf.h
4811
0644
edit
dl
rm
btrfs.h
30904
0644
edit
dl
rm
btrfs_tree.h
27392
0644
edit
dl
rm
can.h
9268
0644
edit
dl
rm
capability.h
13547
0644
edit
dl
rm
capi.h
3157
0644
edit
dl
rm
cciss_defs.h
3281
0644
edit
dl
rm
cciss_ioctl.h
2790
0644
edit
dl
rm
ccs.h
767
0644
edit
dl
rm
cdrom.h
28949
0644
edit
dl
rm
cec-funcs.h
53453
0644
edit
dl
rm
cec.h
41334
0644
edit
dl
rm
cfm_bridge.h
1466
0644
edit
dl
rm
cgroupstats.h
2219
0644
edit
dl
rm
chio.h
5304
0644
edit
dl
rm
close_range.h
392
0644
edit
dl
rm
cm4000_cs.h
1821
0644
edit
dl
rm
cn_proc.h
3471
0644
edit
dl
rm
coda.h
18393
0644
edit
dl
rm
coff.h
12564
0644
edit
dl
rm
connector.h
2268
0644
edit
dl
rm
const.h
1006
0644
edit
dl
rm
coresight-stm.h
747
0644
edit
dl
rm
cramfs_fs.h
3570
0644
edit
dl
rm
cryptouser.h
5336
0644
edit
dl
rm
cuda.h
920
0644
edit
dl
rm
cxl_mem.h
6489
0644
edit
dl
rm
cyclades.h
984
0644
edit
dl
rm
cycx_cfm.h
2990
0644
edit
dl
rm
dcbnl.h
25292
0644
edit
dl
rm
dccp.h
6447
0644
edit
dl
rm
devlink.h
20207
0644
edit
dl
rm
dlm.h
2568
0644
edit
dl
rm
dlmconstants.h
5080
0644
edit
dl
rm
dlm_device.h
2599
0644
edit
dl
rm
dlm_netlink.h
1159
0644
edit
dl
rm
dlm_plock.h
909
0644
edit
dl
rm
dm-ioctl.h
11602
0644
edit
dl
rm
dm-log-userspace.h
15191
0644
edit
dl
rm
dma-buf.h
3779
0644
edit
dl
rm
dma-heap.h
1409
0644
edit
dl
rm
dns_resolver.h
3904
0644
edit
dl
rm
dqblk_xfs.h
9388
0644
edit
dl
rm
edd.h
5619
0644
edit
dl
rm
efs_fs_sb.h
2227
0644
edit
dl
rm
elf-em.h
2586
0644
edit
dl
rm
elf-fdpic.h
1139
0644
edit
dl
rm
elf.h
14180
0644
edit
dl
rm
errno.h
23
0644
edit
dl
rm
errqueue.h
2066
0644
edit
dl
rm
erspan.h
1074
0644
edit
dl
rm
ethtool.h
82554
0644
edit
dl
rm
ethtool_netlink.h
23088
0644
edit
dl
rm
eventpoll.h
3056
0644
edit
dl
rm
f2fs.h
3316
0644
edit
dl
rm
fadvise.h
842
0644
edit
dl
rm
falloc.h
3599
0644
edit
dl
rm
fanotify.h
7495
0644
edit
dl
rm
fb.h
16518
0644
edit
dl
rm
fcntl.h
4266
0644
edit
dl
rm
fd.h
12166
0644
edit
dl
rm
fdreg.h
5364
0644
edit
dl
rm
fib_rules.h
2036
0644
edit
dl
rm
fiemap.h
2790
0644
edit
dl
rm
filter.h
2265
0644
edit
dl
rm
firewire-cdev.h
44240
0644
edit
dl
rm
firewire-constants.h
3231
0644
edit
dl
rm
fou.h
909
0644
edit
dl
rm
fpga-dfl.h
8743
0644
edit
dl
rm
fs.h
12411
0644
edit
dl
rm
fscrypt.h
6638
0644
edit
dl
rm
fsi.h
2270
0644
edit
dl
rm
fsl_hypervisor.h
7316
0644
edit
dl
rm
fsl_mc.h
749
0644
edit
dl
rm
fsmap.h
4385
0644
edit
dl
rm
fsverity.h
3293
0644
edit
dl
rm
fuse.h
23048
0644
edit
dl
rm
futex.h
5145
0644
edit
dl
rm
gameport.h
912
0644
edit
dl
rm
genetlink.h
2190
0644
edit
dl
rm
gen_stats.h
1526
0644
edit
dl
rm
gfs2_ondisk.h
14769
0644
edit
dl
rm
gpio.h
19783
0644
edit
dl
rm
gsmmux.h
1144
0644
edit
dl
rm
gtp.h
731
0644
edit
dl
rm
hash_info.h
986
0644
edit
dl
rm
hdlc.h
652
0644
edit
dl
rm
hdlcdrv.h
2923
0644
edit
dl
rm
hdreg.h
22945
0644
edit
dl
rm
hid.h
1916
0644
edit
dl
rm
hiddev.h
6360
0644
edit
dl
rm
hidraw.h
2008
0644
edit
dl
rm
hpet.h
785
0644
edit
dl
rm
hsr_netlink.h
1101
0644
edit
dl
rm
hw_breakpoint.h
757
0644
edit
dl
rm
hyperv.h
10583
0644
edit
dl
rm
i2c-dev.h
1931
0644
edit
dl
rm
i2c.h
6905
0644
edit
dl
rm
i2o-dev.h
11646
0644
edit
dl
rm
i8k.h
1528
0644
edit
dl
rm
icmp.h
4800
0644
edit
dl
rm
icmpv6.h
4284
0644
edit
dl
rm
idxd.h
7624
0644
edit
dl
rm
if.h
11015
0644
edit
dl
rm
ife.h
351
0644
edit
dl
rm
if_addr.h
1912
0644
edit
dl
rm
if_addrlabel.h
721
0644
edit
dl
rm
if_alg.h
1566
0644
edit
dl
rm
if_arcnet.h
3717
0644
edit
dl
rm
if_arp.h
6604
0644
edit
dl
rm
if_bonding.h
5145
0644
edit
dl
rm
if_bridge.h
19121
0644
edit
dl
rm
if_cablemodem.h
986
0644
edit
dl
rm
if_eql.h
1364
0644
edit
dl
rm
if_ether.h
8457
0644
edit
dl
rm
if_fc.h
1738
0644
edit
dl
rm
if_fddi.h
4384
0644
edit
dl
rm
if_hippi.h
4235
0644
edit
dl
rm
if_infiniband.h
1245
0644
edit
dl
rm
if_link.h
31760
0644
edit
dl
rm
if_ltalk.h
225
0644
edit
dl
rm
if_macsec.h
6490
0644
edit
dl
rm
if_packet.h
8147
0644
edit
dl
rm
if_phonet.h
439
0644
edit
dl
rm
if_plip.h
660
0644
edit
dl
rm
if_ppp.h
29
0644
edit
dl
rm
if_pppol2tp.h
3318
0644
edit
dl
rm
if_pppox.h
4804
0644
edit
dl
rm
if_slip.h
872
0644
edit
dl
rm
if_team.h
2615
0644
edit
dl
rm
if_tun.h
4113
0644
edit
dl
rm
if_tunnel.h
4858
0644
edit
dl
rm
if_vlan.h
1846
0644
edit
dl
rm
if_x25.h
881
0644
edit
dl
rm
if_xdp.h
3011
0644
edit
dl
rm
igmp.h
3079
0644
edit
dl
rm
ila.h
1261
0644
edit
dl
rm
in.h
10897
0644
edit
dl
rm
in6.h
7593
0644
edit
dl
rm
inet_diag.h
5032
0644
edit
dl
rm
inotify.h
3307
0644
edit
dl
rm
input-event-codes.h
28894
0644
edit
dl
rm
input.h
16030
0644
edit
dl
rm
in_route.h
936
0644
edit
dl
rm
ioam6.h
2399
0644
edit
dl
rm
ioam6_genl.h
960
0644
edit
dl
rm
ioam6_iptunnel.h
451
0644
edit
dl
rm
ioctl.h
163
0644
edit
dl
rm
iommu.h
12031
0644
edit
dl
rm
ioprio.h
1471
0644
edit
dl
rm
io_uring.h
9795
0644
edit
dl
rm
ip.h
4828
0644
edit
dl
rm
ip6_tunnel.h
1953
0644
edit
dl
rm
ipc.h
2123
0644
edit
dl
rm
ipmi.h
15112
0644
edit
dl
rm
ipmi_bmc.h
503
0644
edit
dl
rm
ipmi_msgdefs.h
3430
0644
edit
dl
rm
ipsec.h
947
0644
edit
dl
rm
ipu-isys.h
481
0644
edit
dl
rm
ipu-psys.h
3663
0644
edit
dl
rm
ipv6.h
4341
0644
edit
dl
rm
ipv6_route.h
1923
0644
edit
dl
rm
ip_vs.h
14135
0644
edit
dl
rm
irqnr.h
104
0644
edit
dl
rm
iso_fs.h
6485
0644
edit
dl
rm
isst_if.h
5404
0644
edit
dl
rm
ivtv.h
3063
0644
edit
dl
rm
ivtvfb.h
1241
0644
edit
dl
rm
jffs2.h
6815
0644
edit
dl
rm
joystick.h
3449
0644
edit
dl
rm
kcm.h
822
0644
edit
dl
rm
kcmp.h
537
0644
edit
dl
rm
kcov.h
1959
0644
edit
dl
rm
kd.h
6311
0644
edit
dl
rm
kdev_t.h
441
0644
edit
dl
rm
kernel-page-flags.h
915
0644
edit
dl
rm
kernel.h
209
0644
edit
dl
rm
kernelcapi.h
1034
0644
edit
dl
rm
kexec.h
1970
0644
edit
dl
rm
keyboard.h
13474
0644
edit
dl
rm
keyctl.h
6010
0644
edit
dl
rm
kfd_ioctl.h
24151
0644
edit
dl
rm
kvm.h
60796
0644
edit
dl
rm
kvm_para.h
1016
0644
edit
dl
rm
l2tp.h
5788
0644
edit
dl
rm
landlock.h
4915
0644
edit
dl
rm
libc-compat.h
8304
0644
edit
dl
rm
limits.h
947
0644
edit
dl
rm
lirc.h
8144
0644
edit
dl
rm
llc.h
3179
0644
edit
dl
rm
loop.h
3512
0644
edit
dl
rm
lp.h
4205
0644
edit
dl
rm
lwtunnel.h
2238
0644
edit
dl
rm
magic.h
3801
0644
edit
dl
rm
major.h
4657
0644
edit
dl
rm
map_to_7segment.h
6608
0644
edit
dl
rm
matroxfb.h
1464
0644
edit
dl
rm
max2175.h
1035
0644
edit
dl
rm
mctp.h
736
0644
edit
dl
rm
mdio.h
17283
0644
edit
dl
rm
media-bus-format.h
6909
0644
edit
dl
rm
media.h
13223
0644
edit
dl
rm
mei.h
3475
0644
edit
dl
rm
membarrier.h
9377
0644
edit
dl
rm
memfd.h
1339
0644
edit
dl
rm
mempolicy.h
2583
0644
edit
dl
rm
meye.h
2529
0644
edit
dl
rm
mii.h
9511
0644
edit
dl
rm
minix_fs.h
2122
0644
edit
dl
rm
mman.h
1599
0644
edit
dl
rm
mmtimer.h
2117
0644
edit
dl
rm
module.h
270
0644
edit
dl
rm
mount.h
5107
0644
edit
dl
rm
mpls.h
2317
0644
edit
dl
rm
mpls_iptunnel.h
776
0644
edit
dl
rm
mptcp.h
5750
0644
edit
dl
rm
mqueue.h
2201
0644
edit
dl
rm
mroute.h
5937
0644
edit
dl
rm
mroute6.h
4945
0644
edit
dl
rm
mrp_bridge.h
1718
0644
edit
dl
rm
msdos_fs.h
6746
0644
edit
dl
rm
msg.h
3401
0644
edit
dl
rm
mtio.h
8175
0644
edit
dl
rm
nbd-netlink.h
2423
0644
edit
dl
rm
nbd.h
3039
0644
edit
dl
rm
ncsi.h
4828
0644
edit
dl
rm
ndctl.h
6793
0644
edit
dl
rm
neighbour.h
5124
0644
edit
dl
rm
net.h
2100
0644
edit
dl
rm
netconf.h
629
0644
edit
dl
rm
netdevice.h
2268
0644
edit
dl
rm
netfilter.h
1780
0644
edit
dl
rm
netfilter_arp.h
471
0644
edit
dl
rm
netfilter_bridge.h
1209
0644
edit
dl
rm
netfilter_ipv4.h
1548
0644
edit
dl
rm
netfilter_ipv6.h
1443
0644
edit
dl
rm
netlink.h
11717
0644
edit
dl
rm
netlink_diag.h
1550
0644
edit
dl
rm
netrom.h
807
0644
edit
dl
rm
net_dropmon.h
2886
0644
edit
dl
rm
net_namespace.h
730
0644
edit
dl
rm
net_tstamp.h
5571
0644
edit
dl
rm
nexthop.h
2835
0644
edit
dl
rm
nfc.h
11236
0644
edit
dl
rm
nfs.h
4481
0644
edit
dl
rm
nfs2.h
1468
0644
edit
dl
rm
nfs3.h
2468
0644
edit
dl
rm
nfs4.h
6506
0644
edit
dl
rm
nfs4_mount.h
1953
0644
edit
dl
rm
nfsacl.h
733
0644
edit
dl
rm
nfs_fs.h
1656
0644
edit
dl
rm
nfs_idmap.h
2258
0644
edit
dl
rm
nfs_mount.h
2142
0644
edit
dl
rm
nilfs2_api.h
7565
0644
edit
dl
rm
nilfs2_ondisk.h
18053
0644
edit
dl
rm
nitro_enclaves.h
13167
0644
edit
dl
rm
nl80211-vnd-intel.h
2937
0644
edit
dl
rm
nl80211.h
314008
0644
edit
dl
rm
nsfs.h
639
0644
edit
dl
rm
nubus.h
8206
0644
edit
dl
rm
nvme_ioctl.h
1676
0644
edit
dl
rm
nvram.h
547
0644
edit
dl
rm
omap3isp.h
21423
0644
edit
dl
rm
omapfb.h
5940
0644
edit
dl
rm
oom.h
526
0644
edit
dl
rm
openat2.h
1465
0644
edit
dl
rm
openvswitch.h
40695
0644
edit
dl
rm
packet_diag.h
1672
0644
edit
dl
rm
param.h
141
0644
edit
dl
rm
parport.h
3659
0644
edit
dl
rm
patchkey.h
965
0644
edit
dl
rm
pci.h
1395
0644
edit
dl
rm
pcitest.h
878
0644
edit
dl
rm
pci_regs.h
58656
0644
edit
dl
rm
perf_event.h
39781
0644
edit
dl
rm
personality.h
2112
0644
edit
dl
rm
pfkeyv2.h
10569
0644
edit
dl
rm
pg.h
2409
0644
edit
dl
rm
phantom.h
1654
0644
edit
dl
rm
phonet.h
4640
0644
edit
dl
rm
pidfd.h
271
0644
edit
dl
rm
pktcdvd.h
2702
0644
edit
dl
rm
pkt_cls.h
18171
0644
edit
dl
rm
pkt_sched.h
30106
0644
edit
dl
rm
pmu.h
5459
0644
edit
dl
rm
poll.h
22
0644
edit
dl
rm
posix_acl.h
1254
0644
edit
dl
rm
posix_acl_xattr.h
1115
0644
edit
dl
rm
posix_types.h
1098
0644
edit
dl
rm
ppdev.h
3300
0644
edit
dl
rm
ppp-comp.h
2542
0644
edit
dl
rm
ppp-ioctl.h
5763
0644
edit
dl
rm
ppp_defs.h
5572
0644
edit
dl
rm
pps.h
4734
0644
edit
dl
rm
pr.h
1088
0644
edit
dl
rm
prctl.h
9395
0644
edit
dl
rm
psample.h
2271
0644
edit
dl
rm
psci.h
4343
0644
edit
dl
rm
psp-sev.h
4053
0644
edit
dl
rm
ptp_clock.h
7456
0644
edit
dl
rm
ptrace.h
4426
0644
edit
dl
rm
qemu_fw_cfg.h
2469
0644
edit
dl
rm
qnx4_fs.h
2328
0644
edit
dl
rm
qnxtypes.h
624
0644
edit
dl
rm
qrtr.h
878
0644
edit
dl
rm
quota.h
6306
0644
edit
dl
rm
radeonfb.h
360
0644
edit
dl
rm
random.h
1430
0644
edit
dl
rm
rds.h
11168
0644
edit
dl
rm
reboot.h
1358
0644
edit
dl
rm
reiserfs_fs.h
775
0644
edit
dl
rm
reiserfs_xattr.h
533
0644
edit
dl
rm
remoteproc_cdev.h
1112
0644
edit
dl
rm
resource.h
2388
0644
edit
dl
rm
rfkill.h
6118
0644
edit
dl
rm
rio_cm_cdev.h
3248
0644
edit
dl
rm
rio_mport_cdev.h
9330
0644
edit
dl
rm
rkisp1-config.h
31377
0644
edit
dl
rm
romfs_fs.h
1238
0644
edit
dl
rm
rose.h
2232
0644
edit
dl
rm
route.h
2392
0644
edit
dl
rm
rpl.h
824
0644
edit
dl
rm
rpl_iptunnel.h
434
0644
edit
dl
rm
rpmsg.h
813
0644
edit
dl
rm
rpmsg_types.h
303
0644
edit
dl
rm
rseq.h
4721
0644
edit
dl
rm
rtc.h
4610
0644
edit
dl
rm
rtnetlink.h
20784
0644
edit
dl
rm
rxrpc.h
4937
0644
edit
dl
rm
scc.h
4639
0644
edit
dl
rm
sched.h
6281
0644
edit
dl
rm
scif_ioctl.h
6382
0644
edit
dl
rm
screen_info.h
2494
0644
edit
dl
rm
sctp.h
36099
0644
edit
dl
rm
seccomp.h
5774
0644
edit
dl
rm
securebits.h
2719
0644
edit
dl
rm
sed-opal.h
3777
0644
edit
dl
rm
seg6.h
1180
0644
edit
dl
rm
seg6_genl.h
599
0644
edit
dl
rm
seg6_hmac.h
433
0644
edit
dl
rm
seg6_iptunnel.h
994
0644
edit
dl
rm
seg6_local.h
3338
0644
edit
dl
rm
selinux_netlink.h
1221
0644
edit
dl
rm
sem.h
3094
0644
edit
dl
rm
serial.h
3825
0644
edit
dl
rm
serial_core.h
6129
0644
edit
dl
rm
serial_reg.h
15552
0644
edit
dl
rm
serio.h
2114
0644
edit
dl
rm
shm.h
3835
0644
edit
dl
rm
signal.h
403
0644
edit
dl
rm
signalfd.h
1248
0644
edit
dl
rm
smc.h
8019
0644
edit
dl
rm
smc_diag.h
2850
0644
edit
dl
rm
smiapp.h
1058
0644
edit
dl
rm
snmp.h
13950
0644
edit
dl
rm
socket.h
955
0644
edit
dl
rm
sockios.h
6846
0644
edit
dl
rm
sock_diag.h
1316
0644
edit
dl
rm
sonet.h
2305
0644
edit
dl
rm
sonypi.h
5324
0644
edit
dl
rm
sound.h
1252
0644
edit
dl
rm
soundcard.h
46170
0644
edit
dl
rm
stat.h
6767
0644
edit
dl
rm
stddef.h
1577
0644
edit
dl
rm
stm.h
1290
0644
edit
dl
rm
string.h
296
0644
edit
dl
rm
suspend_ioctls.h
1431
0644
edit
dl
rm
swab.h
7016
0644
edit
dl
rm
switchtec_ioctl.h
5272
0644
edit
dl
rm
synclink.h
9000
0644
edit
dl
rm
sync_file.h
2899
0644
edit
dl
rm
sysctl.h
25988
0644
edit
dl
rm
sysinfo.h
1049
0644
edit
dl
rm
target_core_user.h
4557
0644
edit
dl
rm
taskstats.h
7290
0644
edit
dl
rm
tcp.h
11949
0644
edit
dl
rm
tcp_metrics.h
1549
0644
edit
dl
rm
tee.h
13592
0644
edit
dl
rm
termios.h
172
0644
edit
dl
rm
thermal.h
3088
0644
edit
dl
rm
time.h
1793
0644
edit
dl
rm
timerfd.h
951
0644
edit
dl
rm
times.h
278
0644
edit
dl
rm
timex.h
7884
0644
edit
dl
rm
time_types.h
1282
0644
edit
dl
rm
tiocl.h
1729
0644
edit
dl
rm
tipc.h
8805
0644
edit
dl
rm
tipc_config.h
14838
0644
edit
dl
rm
tipc_netlink.h
9395
0644
edit
dl
rm
tipc_sockets_diag.h
483
0644
edit
dl
rm
tls.h
4918
0644
edit
dl
rm
toshiba.h
1945
0644
edit
dl
rm
tty.h
1600
0644
edit
dl
rm
tty_flags.h
4553
0644
edit
dl
rm
types.h
1738
0644
edit
dl
rm
udf_fs_i.h
697
0644
edit
dl
rm
udmabuf.h
658
0644
edit
dl
rm
udp.h
1703
0644
edit
dl
rm
uhid.h
4655
0644
edit
dl
rm
uinput.h
9276
0644
edit
dl
rm
uio.h
781
0644
edit
dl
rm
uleds.h
813
0644
edit
dl
rm
ultrasound.h
4562
0644
edit
dl
rm
um_timetravel.h
3976
0644
edit
dl
rm
un.h
384
0644
edit
dl
rm
unistd.h
220
0644
edit
dl
rm
unix_diag.h
1328
0644
edit
dl
rm
usbdevice_fs.h
8374
0644
edit
dl
rm
usbip.h
655
0644
edit
dl
rm
userfaultfd.h
9089
0644
edit
dl
rm
userio.h
1516
0644
edit
dl
rm
utime.h
223
0644
edit
dl
rm
utsname.h
684
0644
edit
dl
rm
uuid.h
1371
0644
edit
dl
rm
uvcvideo.h
2581
0644
edit
dl
rm
v4l2-common.h
4203
0644
edit
dl
rm
v4l2-controls.h
86453
0644
edit
dl
rm
v4l2-dv-timings.h
31562
0644
edit
dl
rm
v4l2-mediabus.h
5461
0644
edit
dl
rm
v4l2-subdev.h
7782
0644
edit
dl
rm
vboxguest.h
9368
0644
edit
dl
rm
vbox_err.h
7257
0644
edit
dl
rm
vbox_vmmdev_types.h
11591
0644
edit
dl
rm
vdpa.h
1183
0644
edit
dl
rm
vduse.h
8306
0644
edit
dl
rm
veth.h
224
0644
edit
dl
rm
vfio.h
53809
0644
edit
dl
rm
vfio_ccw.h
1257
0644
edit
dl
rm
vfio_zdev.h
2542
0644
edit
dl
rm
vhost.h
6418
0644
edit
dl
rm
vhost_types.h
4024
0644
edit
dl
rm
videodev2.h
96187
0644
edit
dl
rm
virtio_9p.h
2053
0644
edit
dl
rm
virtio_balloon.h
5279
0644
edit
dl
rm
virtio_blk.h
6888
0644
edit
dl
rm
virtio_bt.h
787
0644
edit
dl
rm
virtio_config.h
4063
0644
edit
dl
rm
virtio_console.h
3171
0644
edit
dl
rm
virtio_crypto.h
13887
0644
edit
dl
rm
virtio_fs.h
588
0644
edit
dl
rm
virtio_gpio.h
1039
0644
edit
dl
rm
virtio_gpu.h
11053
0644
edit
dl
rm
virtio_i2c.h
1004
0644
edit
dl
rm
virtio_ids.h
4303
0644
edit
dl
rm
virtio_input.h
2515
0644
edit
dl
rm
virtio_iommu.h
3793
0644
edit
dl
rm
virtio_mem.h
6955
0644
edit
dl
rm
virtio_mmio.h
4969
0644
edit
dl
rm
virtio_net.h
13831
0644
edit
dl
rm
virtio_pci.h
7406
0644
edit
dl
rm
virtio_pcidev.h
2462
0644
edit
dl
rm
virtio_pmem.h
651
0644
edit
dl
rm
virtio_ring.h
8606
0644
edit
dl
rm
virtio_rng.h
265
0644
edit
dl
rm
virtio_scmi.h
652
0644
edit
dl
rm
virtio_scsi.h
6085
0644
edit
dl
rm
virtio_snd.h
9304
0644
edit
dl
rm
virtio_types.h
2168
0644
edit
dl
rm
virtio_vsock.h
3363
0644
edit
dl
rm
vmcore.h
470
0644
edit
dl
rm
vm_sockets.h
6609
0644
edit
dl
rm
vm_sockets_diag.h
978
0644
edit
dl
rm
vsockmon.h
1895
0644
edit
dl
rm
vt.h
3074
0644
edit
dl
rm
vtpm_proxy.h
1734
0644
edit
dl
rm
wait.h
697
0644
edit
dl
rm
watchdog.h
2350
0644
edit
dl
rm
watch_queue.h
3505
0644
edit
dl
rm
wireguard.h
7748
0644
edit
dl
rm
wireless.h
42804
0644
edit
dl
rm
wmi.h
1718
0644
edit
dl
rm
wwan.h
310
0644
edit
dl
rm
x25.h
3562
0644
edit
dl
rm
xattr.h
3038
0644
edit
dl
rm
xdp_diag.h
1468
0644
edit
dl
rm
xfrm.h
12433
0644
edit
dl
rm
xilinx-v4l2-controls.h
2976
0644
edit
dl
rm
zorro.h
3266
0644
edit
dl
rm
zorro_ids.h
30065
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/include/uapi/linux/btrfs_tree.h
(27392B)
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _BTRFS_CTREE_H_ #define _BTRFS_CTREE_H_ #include <linux/btrfs.h> #include <linux/types.h> #ifdef __KERNEL__ #include <linux/stddef.h> #else #include <stddef.h> #endif /* * This header contains the structure definitions and constants used * by file system objects that can be retrieved using * the BTRFS_IOC_SEARCH_TREE ioctl. That means basically anything that * is needed to describe a leaf node's key or item contents. */ /* holds pointers to all of the tree roots */ #define BTRFS_ROOT_TREE_OBJECTID 1ULL /* stores information about which extents are in use, and reference counts */ #define BTRFS_EXTENT_TREE_OBJECTID 2ULL /* * chunk tree stores translations from logical -> physical block numbering * the super block points to the chunk tree */ #define BTRFS_CHUNK_TREE_OBJECTID 3ULL /* * stores information about which areas of a given device are in use. * one per device. The tree of tree roots points to the device tree */ #define BTRFS_DEV_TREE_OBJECTID 4ULL /* one per subvolume, storing files and directories */ #define BTRFS_FS_TREE_OBJECTID 5ULL /* directory objectid inside the root tree */ #define BTRFS_ROOT_TREE_DIR_OBJECTID 6ULL /* holds checksums of all the data extents */ #define BTRFS_CSUM_TREE_OBJECTID 7ULL /* holds quota configuration and tracking */ #define BTRFS_QUOTA_TREE_OBJECTID 8ULL /* for storing items that use the BTRFS_UUID_KEY* types */ #define BTRFS_UUID_TREE_OBJECTID 9ULL /* tracks free space in block groups. */ #define BTRFS_FREE_SPACE_TREE_OBJECTID 10ULL /* device stats in the device tree */ #define BTRFS_DEV_STATS_OBJECTID 0ULL /* for storing balance parameters in the root tree */ #define BTRFS_BALANCE_OBJECTID -4ULL /* orphan objectid for tracking unlinked/truncated files */ #define BTRFS_ORPHAN_OBJECTID -5ULL /* does write ahead logging to speed up fsyncs */ #define BTRFS_TREE_LOG_OBJECTID -6ULL #define BTRFS_TREE_LOG_FIXUP_OBJECTID -7ULL /* for space balancing */ #define BTRFS_TREE_RELOC_OBJECTID -8ULL #define BTRFS_DATA_RELOC_TREE_OBJECTID -9ULL /* * extent checksums all have this objectid * this allows them to share the logging tree * for fsyncs */ #define BTRFS_EXTENT_CSUM_OBJECTID -10ULL /* For storing free space cache */ #define BTRFS_FREE_SPACE_OBJECTID -11ULL /* * The inode number assigned to the special inode for storing * free ino cache */ #define BTRFS_FREE_INO_OBJECTID -12ULL /* dummy objectid represents multiple objectids */ #define BTRFS_MULTIPLE_OBJECTIDS -255ULL /* * All files have objectids in this range. */ #define BTRFS_FIRST_FREE_OBJECTID 256ULL #define BTRFS_LAST_FREE_OBJECTID -256ULL #define BTRFS_FIRST_CHUNK_TREE_OBJECTID 256ULL /* * the device items go into the chunk tree. The key is in the form * [ 1 BTRFS_DEV_ITEM_KEY device_id ] */ #define BTRFS_DEV_ITEMS_OBJECTID 1ULL #define BTRFS_BTREE_INODE_OBJECTID 1 #define BTRFS_EMPTY_SUBVOL_DIR_OBJECTID 2 #define BTRFS_DEV_REPLACE_DEVID 0ULL /* * inode items have the data typically returned from stat and store other * info about object characteristics. There is one for every file and dir in * the FS */ #define BTRFS_INODE_ITEM_KEY 1 #define BTRFS_INODE_REF_KEY 12 #define BTRFS_INODE_EXTREF_KEY 13 #define BTRFS_XATTR_ITEM_KEY 24 /* * fs verity items are stored under two different key types on disk. * The descriptor items: * [ inode objectid, BTRFS_VERITY_DESC_ITEM_KEY, offset ] * * At offset 0, we store a btrfs_verity_descriptor_item which tracks the size * of the descriptor item and some extra data for encryption. * Starting at offset 1, these hold the generic fs verity descriptor. The * latter are opaque to btrfs, we just read and write them as a blob for the * higher level verity code. The most common descriptor size is 256 bytes. * * The merkle tree items: * [ inode objectid, BTRFS_VERITY_MERKLE_ITEM_KEY, offset ] * * These also start at offset 0, and correspond to the merkle tree bytes. When * fsverity asks for page 0 of the merkle tree, we pull up one page starting at * offset 0 for this key type. These are also opaque to btrfs, we're blindly * storing whatever fsverity sends down. */ #define BTRFS_VERITY_DESC_ITEM_KEY 36 #define BTRFS_VERITY_MERKLE_ITEM_KEY 37 #define BTRFS_ORPHAN_ITEM_KEY 48 /* reserve 2-15 close to the inode for later flexibility */ /* * dir items are the name -> inode pointers in a directory. There is one * for every name in a directory. BTRFS_DIR_LOG_ITEM_KEY is no longer used * but it's still defined here for documentation purposes and to help avoid * having its numerical value reused in the future. */ #define BTRFS_DIR_LOG_ITEM_KEY 60 #define BTRFS_DIR_LOG_INDEX_KEY 72 #define BTRFS_DIR_ITEM_KEY 84 #define BTRFS_DIR_INDEX_KEY 96 /* * extent data is for file data */ #define BTRFS_EXTENT_DATA_KEY 108 /* * extent csums are stored in a separate tree and hold csums for * an entire extent on disk. */ #define BTRFS_EXTENT_CSUM_KEY 128 /* * root items point to tree roots. They are typically in the root * tree used by the super block to find all the other trees */ #define BTRFS_ROOT_ITEM_KEY 132 /* * root backrefs tie subvols and snapshots to the directory entries that * reference them */ #define BTRFS_ROOT_BACKREF_KEY 144 /* * root refs make a fast index for listing all of the snapshots and * subvolumes referenced by a given root. They point directly to the * directory item in the root that references the subvol */ #define BTRFS_ROOT_REF_KEY 156 /* * extent items are in the extent map tree. These record which blocks * are used, and how many references there are to each block */ #define BTRFS_EXTENT_ITEM_KEY 168 /* * The same as the BTRFS_EXTENT_ITEM_KEY, except it's metadata we already know * the length, so we save the level in key->offset instead of the length. */ #define BTRFS_METADATA_ITEM_KEY 169 #define BTRFS_TREE_BLOCK_REF_KEY 176 #define BTRFS_EXTENT_DATA_REF_KEY 178 #define BTRFS_EXTENT_REF_V0_KEY 180 #define BTRFS_SHARED_BLOCK_REF_KEY 182 #define BTRFS_SHARED_DATA_REF_KEY 184 /* * block groups give us hints into the extent allocation trees. Which * blocks are free etc etc */ #define BTRFS_BLOCK_GROUP_ITEM_KEY 192 /* * Every block group is represented in the free space tree by a free space info * item, which stores some accounting information. It is keyed on * (block_group_start, FREE_SPACE_INFO, block_group_length). */ #define BTRFS_FREE_SPACE_INFO_KEY 198 /* * A free space extent tracks an extent of space that is free in a block group. * It is keyed on (start, FREE_SPACE_EXTENT, length). */ #define BTRFS_FREE_SPACE_EXTENT_KEY 199 /* * When a block group becomes very fragmented, we convert it to use bitmaps * instead of extents. A free space bitmap is keyed on * (start, FREE_SPACE_BITMAP, length); the corresponding item is a bitmap with * (length / sectorsize) bits. */ #define BTRFS_FREE_SPACE_BITMAP_KEY 200 #define BTRFS_DEV_EXTENT_KEY 204 #define BTRFS_DEV_ITEM_KEY 216 #define BTRFS_CHUNK_ITEM_KEY 228 /* * Records the overall state of the qgroups. * There's only one instance of this key present, * (0, BTRFS_QGROUP_STATUS_KEY, 0) */ #define BTRFS_QGROUP_STATUS_KEY 240 /* * Records the currently used space of the qgroup. * One key per qgroup, (0, BTRFS_QGROUP_INFO_KEY, qgroupid). */ #define BTRFS_QGROUP_INFO_KEY 242 /* * Contains the user configured limits for the qgroup. * One key per qgroup, (0, BTRFS_QGROUP_LIMIT_KEY, qgroupid). */ #define BTRFS_QGROUP_LIMIT_KEY 244 /* * Records the child-parent relationship of qgroups. For * each relation, 2 keys are present: * (childid, BTRFS_QGROUP_RELATION_KEY, parentid) * (parentid, BTRFS_QGROUP_RELATION_KEY, childid) */ #define BTRFS_QGROUP_RELATION_KEY 246 /* * Obsolete name, see BTRFS_TEMPORARY_ITEM_KEY. */ #define BTRFS_BALANCE_ITEM_KEY 248 /* * The key type for tree items that are stored persistently, but do not need to * exist for extended period of time. The items can exist in any tree. * * [subtype, BTRFS_TEMPORARY_ITEM_KEY, data] * * Existing items: * * - balance status item * (BTRFS_BALANCE_OBJECTID, BTRFS_TEMPORARY_ITEM_KEY, 0) */ #define BTRFS_TEMPORARY_ITEM_KEY 248 /* * Obsolete name, see BTRFS_PERSISTENT_ITEM_KEY */ #define BTRFS_DEV_STATS_KEY 249 /* * The key type for tree items that are stored persistently and usually exist * for a long period, eg. filesystem lifetime. The item kinds can be status * information, stats or preference values. The item can exist in any tree. * * [subtype, BTRFS_PERSISTENT_ITEM_KEY, data] * * Existing items: * * - device statistics, store IO stats in the device tree, one key for all * stats * (BTRFS_DEV_STATS_OBJECTID, BTRFS_DEV_STATS_KEY, 0) */ #define BTRFS_PERSISTENT_ITEM_KEY 249 /* * Persistently stores the device replace state in the device tree. * The key is built like this: (0, BTRFS_DEV_REPLACE_KEY, 0). */ #define BTRFS_DEV_REPLACE_KEY 250 /* * Stores items that allow to quickly map UUIDs to something else. * These items are part of the filesystem UUID tree. * The key is built like this: * (UUID_upper_64_bits, BTRFS_UUID_KEY*, UUID_lower_64_bits). */ #if BTRFS_UUID_SIZE != 16 #error "UUID items require BTRFS_UUID_SIZE == 16!" #endif #define BTRFS_UUID_KEY_SUBVOL 251 /* for UUIDs assigned to subvols */ #define BTRFS_UUID_KEY_RECEIVED_SUBVOL 252 /* for UUIDs assigned to * received subvols */ /* * string items are for debugging. They just store a short string of * data in the FS */ #define BTRFS_STRING_ITEM_KEY 253 /* Maximum metadata block size (nodesize) */ #define BTRFS_MAX_METADATA_BLOCKSIZE 65536 /* 32 bytes in various csum fields */ #define BTRFS_CSUM_SIZE 32 /* csum types */ enum btrfs_csum_type { BTRFS_CSUM_TYPE_CRC32 = 0, BTRFS_CSUM_TYPE_XXHASH = 1, BTRFS_CSUM_TYPE_SHA256 = 2, BTRFS_CSUM_TYPE_BLAKE2 = 3, }; /* * flags definitions for directory entry item type * * Used by: * struct btrfs_dir_item.type * * Values 0..7 must match common file type values in fs_types.h. */ #define BTRFS_FT_UNKNOWN 0 #define BTRFS_FT_REG_FILE 1 #define BTRFS_FT_DIR 2 #define BTRFS_FT_CHRDEV 3 #define BTRFS_FT_BLKDEV 4 #define BTRFS_FT_FIFO 5 #define BTRFS_FT_SOCK 6 #define BTRFS_FT_SYMLINK 7 #define BTRFS_FT_XATTR 8 #define BTRFS_FT_MAX 9 /* * The key defines the order in the tree, and so it also defines (optimal) * block layout. * * objectid corresponds to the inode number. * * type tells us things about the object, and is a kind of stream selector. * so for a given inode, keys with type of 1 might refer to the inode data, * type of 2 may point to file data in the btree and type == 3 may point to * extents. * * offset is the starting byte offset for this key in the stream. * * btrfs_disk_key is in disk byte order. struct btrfs_key is always * in cpu native order. Otherwise they are identical and their sizes * should be the same (ie both packed) */ struct btrfs_disk_key { __le64 objectid; __u8 type; __le64 offset; } __attribute__ ((__packed__)); struct btrfs_key { __u64 objectid; __u8 type; __u64 offset; } __attribute__ ((__packed__)); struct btrfs_dev_item { /* the internal btrfs device id */ __le64 devid; /* size of the device */ __le64 total_bytes; /* bytes used */ __le64 bytes_used; /* optimal io alignment for this device */ __le32 io_align; /* optimal io width for this device */ __le32 io_width; /* minimal io size for this device */ __le32 sector_size; /* type and info about this device */ __le64 type; /* expected generation for this device */ __le64 generation; /* * starting byte of this partition on the device, * to allow for stripe alignment in the future */ __le64 start_offset; /* grouping information for allocation decisions */ __le32 dev_group; /* seek speed 0-100 where 100 is fastest */ __u8 seek_speed; /* bandwidth 0-100 where 100 is fastest */ __u8 bandwidth; /* btrfs generated uuid for this device */ __u8 uuid[BTRFS_UUID_SIZE]; /* uuid of FS who owns this device */ __u8 fsid[BTRFS_UUID_SIZE]; } __attribute__ ((__packed__)); struct btrfs_stripe { __le64 devid; __le64 offset; __u8 dev_uuid[BTRFS_UUID_SIZE]; } __attribute__ ((__packed__)); struct btrfs_chunk { /* size of this chunk in bytes */ __le64 length; /* objectid of the root referencing this chunk */ __le64 owner; __le64 stripe_len; __le64 type; /* optimal io alignment for this chunk */ __le32 io_align; /* optimal io width for this chunk */ __le32 io_width; /* minimal io size for this chunk */ __le32 sector_size; /* 2^16 stripes is quite a lot, a second limit is the size of a single * item in the btree */ __le16 num_stripes; /* sub stripes only matter for raid10 */ __le16 sub_stripes; struct btrfs_stripe stripe; /* additional stripes go here */ } __attribute__ ((__packed__)); #define BTRFS_FREE_SPACE_EXTENT 1 #define BTRFS_FREE_SPACE_BITMAP 2 struct btrfs_free_space_entry { __le64 offset; __le64 bytes; __u8 type; } __attribute__ ((__packed__)); struct btrfs_free_space_header { struct btrfs_disk_key location; __le64 generation; __le64 num_entries; __le64 num_bitmaps; } __attribute__ ((__packed__)); #define BTRFS_HEADER_FLAG_WRITTEN (1ULL << 0) #define BTRFS_HEADER_FLAG_RELOC (1ULL << 1) /* Super block flags */ /* Errors detected */ #define BTRFS_SUPER_FLAG_ERROR (1ULL << 2) #define BTRFS_SUPER_FLAG_SEEDING (1ULL << 32) #define BTRFS_SUPER_FLAG_METADUMP (1ULL << 33) #define BTRFS_SUPER_FLAG_METADUMP_V2 (1ULL << 34) #define BTRFS_SUPER_FLAG_CHANGING_FSID (1ULL << 35) #define BTRFS_SUPER_FLAG_CHANGING_FSID_V2 (1ULL << 36) /* * items in the extent btree are used to record the objectid of the * owner of the block and the number of references */ struct btrfs_extent_item { __le64 refs; __le64 generation; __le64 flags; } __attribute__ ((__packed__)); struct btrfs_extent_item_v0 { __le32 refs; } __attribute__ ((__packed__)); #define BTRFS_EXTENT_FLAG_DATA (1ULL << 0) #define BTRFS_EXTENT_FLAG_TREE_BLOCK (1ULL << 1) /* following flags only apply to tree blocks */ /* use full backrefs for extent pointers in the block */ #define BTRFS_BLOCK_FLAG_FULL_BACKREF (1ULL << 8) /* * this flag is only used internally by scrub and may be changed at any time * it is only declared here to avoid collisions */ #define BTRFS_EXTENT_FLAG_SUPER (1ULL << 48) struct btrfs_tree_block_info { struct btrfs_disk_key key; __u8 level; } __attribute__ ((__packed__)); struct btrfs_extent_data_ref { __le64 root; __le64 objectid; __le64 offset; __le32 count; } __attribute__ ((__packed__)); struct btrfs_shared_data_ref { __le32 count; } __attribute__ ((__packed__)); struct btrfs_extent_inline_ref { __u8 type; __le64 offset; } __attribute__ ((__packed__)); /* dev extents record free space on individual devices. The owner * field points back to the chunk allocation mapping tree that allocated * the extent. The chunk tree uuid field is a way to double check the owner */ struct btrfs_dev_extent { __le64 chunk_tree; __le64 chunk_objectid; __le64 chunk_offset; __le64 length; __u8 chunk_tree_uuid[BTRFS_UUID_SIZE]; } __attribute__ ((__packed__)); struct btrfs_inode_ref { __le64 index; __le16 name_len; /* name goes here */ } __attribute__ ((__packed__)); struct btrfs_inode_extref { __le64 parent_objectid; __le64 index; __le16 name_len; __u8 name[0]; /* name goes here */ } __attribute__ ((__packed__)); struct btrfs_timespec { __le64 sec; __le32 nsec; } __attribute__ ((__packed__)); struct btrfs_inode_item { /* nfs style generation number */ __le64 generation; /* transid that last touched this inode */ __le64 transid; __le64 size; __le64 nbytes; __le64 block_group; __le32 nlink; __le32 uid; __le32 gid; __le32 mode; __le64 rdev; __le64 flags; /* modification sequence number for NFS */ __le64 sequence; /* * a little future expansion, for more than this we can * just grow the inode item and version it */ __le64 reserved[4]; struct btrfs_timespec atime; struct btrfs_timespec ctime; struct btrfs_timespec mtime; struct btrfs_timespec otime; } __attribute__ ((__packed__)); struct btrfs_dir_log_item { __le64 end; } __attribute__ ((__packed__)); struct btrfs_dir_item { struct btrfs_disk_key location; __le64 transid; __le16 data_len; __le16 name_len; __u8 type; } __attribute__ ((__packed__)); #define BTRFS_ROOT_SUBVOL_RDONLY (1ULL << 0) /* * Internal in-memory flag that a subvolume has been marked for deletion but * still visible as a directory */ #define BTRFS_ROOT_SUBVOL_DEAD (1ULL << 48) struct btrfs_root_item { struct btrfs_inode_item inode; __le64 generation; __le64 root_dirid; __le64 bytenr; __le64 byte_limit; __le64 bytes_used; __le64 last_snapshot; __le64 flags; __le32 refs; struct btrfs_disk_key drop_progress; __u8 drop_level; __u8 level; /* * The following fields appear after subvol_uuids+subvol_times * were introduced. */ /* * This generation number is used to test if the new fields are valid * and up to date while reading the root item. Every time the root item * is written out, the "generation" field is copied into this field. If * anyone ever mounted the fs with an older kernel, we will have * mismatching generation values here and thus must invalidate the * new fields. See btrfs_update_root and btrfs_find_last_root for * details. * the offset of generation_v2 is also used as the start for the memset * when invalidating the fields. */ __le64 generation_v2; __u8 uuid[BTRFS_UUID_SIZE]; __u8 parent_uuid[BTRFS_UUID_SIZE]; __u8 received_uuid[BTRFS_UUID_SIZE]; __le64 ctransid; /* updated when an inode changes */ __le64 otransid; /* trans when created */ __le64 stransid; /* trans when sent. non-zero for received subvol */ __le64 rtransid; /* trans when received. non-zero for received subvol */ struct btrfs_timespec ctime; struct btrfs_timespec otime; struct btrfs_timespec stime; struct btrfs_timespec rtime; __le64 reserved[8]; /* for future */ } __attribute__ ((__packed__)); /* * Btrfs root item used to be smaller than current size. The old format ends * at where member generation_v2 is. */ static inline __u32 btrfs_legacy_root_item_size(void) { return offsetof(struct btrfs_root_item, generation_v2); } /* * this is used for both forward and backward root refs */ struct btrfs_root_ref { __le64 dirid; __le64 sequence; __le16 name_len; } __attribute__ ((__packed__)); struct btrfs_disk_balance_args { /* * profiles to operate on, single is denoted by * BTRFS_AVAIL_ALLOC_BIT_SINGLE */ __le64 profiles; /* * usage filter * BTRFS_BALANCE_ARGS_USAGE with a single value means '0..N' * BTRFS_BALANCE_ARGS_USAGE_RANGE - range syntax, min..max */ union { __le64 usage; struct { __le32 usage_min; __le32 usage_max; }; }; /* devid filter */ __le64 devid; /* devid subset filter [pstart..pend) */ __le64 pstart; __le64 pend; /* btrfs virtual address space subset filter [vstart..vend) */ __le64 vstart; __le64 vend; /* * profile to convert to, single is denoted by * BTRFS_AVAIL_ALLOC_BIT_SINGLE */ __le64 target; /* BTRFS_BALANCE_ARGS_* */ __le64 flags; /* * BTRFS_BALANCE_ARGS_LIMIT with value 'limit' * BTRFS_BALANCE_ARGS_LIMIT_RANGE - the extend version can use minimum * and maximum */ union { __le64 limit; struct { __le32 limit_min; __le32 limit_max; }; }; /* * Process chunks that cross stripes_min..stripes_max devices, * BTRFS_BALANCE_ARGS_STRIPES_RANGE */ __le32 stripes_min; __le32 stripes_max; __le64 unused[6]; } __attribute__ ((__packed__)); /* * store balance parameters to disk so that balance can be properly * resumed after crash or unmount */ struct btrfs_balance_item { /* BTRFS_BALANCE_* */ __le64 flags; struct btrfs_disk_balance_args data; struct btrfs_disk_balance_args meta; struct btrfs_disk_balance_args sys; __le64 unused[4]; } __attribute__ ((__packed__)); enum { BTRFS_FILE_EXTENT_INLINE = 0, BTRFS_FILE_EXTENT_REG = 1, BTRFS_FILE_EXTENT_PREALLOC = 2, BTRFS_NR_FILE_EXTENT_TYPES = 3, }; struct btrfs_file_extent_item { /* * transaction id that created this extent */ __le64 generation; /* * max number of bytes to hold this extent in ram * when we split a compressed extent we can't know how big * each of the resulting pieces will be. So, this is * an upper limit on the size of the extent in ram instead of * an exact limit. */ __le64 ram_bytes; /* * 32 bits for the various ways we might encode the data, * including compression and encryption. If any of these * are set to something a given disk format doesn't understand * it is treated like an incompat flag for reading and writing, * but not for stat. */ __u8 compression; __u8 encryption; __le16 other_encoding; /* spare for later use */ /* are we inline data or a real extent? */ __u8 type; /* * disk space consumed by the extent, checksum blocks are included * in these numbers * * At this offset in the structure, the inline extent data start. */ __le64 disk_bytenr; __le64 disk_num_bytes; /* * the logical offset in file blocks (no csums) * this extent record is for. This allows a file extent to point * into the middle of an existing extent on disk, sharing it * between two snapshots (useful if some bytes in the middle of the * extent have changed */ __le64 offset; /* * the logical number of file blocks (no csums included). This * always reflects the size uncompressed and without encoding. */ __le64 num_bytes; } __attribute__ ((__packed__)); struct btrfs_csum_item { __u8 csum; } __attribute__ ((__packed__)); struct btrfs_dev_stats_item { /* * grow this item struct at the end for future enhancements and keep * the existing values unchanged */ __le64 values[BTRFS_DEV_STAT_VALUES_MAX]; } __attribute__ ((__packed__)); #define BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_ALWAYS 0 #define BTRFS_DEV_REPLACE_ITEM_CONT_READING_FROM_SRCDEV_MODE_AVOID 1 struct btrfs_dev_replace_item { /* * grow this item struct at the end for future enhancements and keep * the existing values unchanged */ __le64 src_devid; __le64 cursor_left; __le64 cursor_right; __le64 cont_reading_from_srcdev_mode; __le64 replace_state; __le64 time_started; __le64 time_stopped; __le64 num_write_errors; __le64 num_uncorrectable_read_errors; } __attribute__ ((__packed__)); /* different types of block groups (and chunks) */ #define BTRFS_BLOCK_GROUP_DATA (1ULL << 0) #define BTRFS_BLOCK_GROUP_SYSTEM (1ULL << 1) #define BTRFS_BLOCK_GROUP_METADATA (1ULL << 2) #define BTRFS_BLOCK_GROUP_RAID0 (1ULL << 3) #define BTRFS_BLOCK_GROUP_RAID1 (1ULL << 4) #define BTRFS_BLOCK_GROUP_DUP (1ULL << 5) #define BTRFS_BLOCK_GROUP_RAID10 (1ULL << 6) #define BTRFS_BLOCK_GROUP_RAID5 (1ULL << 7) #define BTRFS_BLOCK_GROUP_RAID6 (1ULL << 8) #define BTRFS_BLOCK_GROUP_RAID1C3 (1ULL << 9) #define BTRFS_BLOCK_GROUP_RAID1C4 (1ULL << 10) #define BTRFS_BLOCK_GROUP_RESERVED (BTRFS_AVAIL_ALLOC_BIT_SINGLE | \ BTRFS_SPACE_INFO_GLOBAL_RSV) enum btrfs_raid_types { BTRFS_RAID_RAID10, BTRFS_RAID_RAID1, BTRFS_RAID_DUP, BTRFS_RAID_RAID0, BTRFS_RAID_SINGLE, BTRFS_RAID_RAID5, BTRFS_RAID_RAID6, BTRFS_RAID_RAID1C3, BTRFS_RAID_RAID1C4, BTRFS_NR_RAID_TYPES }; #define BTRFS_BLOCK_GROUP_TYPE_MASK (BTRFS_BLOCK_GROUP_DATA | \ BTRFS_BLOCK_GROUP_SYSTEM | \ BTRFS_BLOCK_GROUP_METADATA) #define BTRFS_BLOCK_GROUP_PROFILE_MASK (BTRFS_BLOCK_GROUP_RAID0 | \ BTRFS_BLOCK_GROUP_RAID1 | \ BTRFS_BLOCK_GROUP_RAID1C3 | \ BTRFS_BLOCK_GROUP_RAID1C4 | \ BTRFS_BLOCK_GROUP_RAID5 | \ BTRFS_BLOCK_GROUP_RAID6 | \ BTRFS_BLOCK_GROUP_DUP | \ BTRFS_BLOCK_GROUP_RAID10) #define BTRFS_BLOCK_GROUP_RAID56_MASK (BTRFS_BLOCK_GROUP_RAID5 | \ BTRFS_BLOCK_GROUP_RAID6) #define BTRFS_BLOCK_GROUP_RAID1_MASK (BTRFS_BLOCK_GROUP_RAID1 | \ BTRFS_BLOCK_GROUP_RAID1C3 | \ BTRFS_BLOCK_GROUP_RAID1C4) /* * We need a bit for restriper to be able to tell when chunks of type * SINGLE are available. This "extended" profile format is used in * fs_info->avail_*_alloc_bits (in-memory) and balance item fields * (on-disk). The corresponding on-disk bit in chunk.type is reserved * to avoid remappings between two formats in future. */ #define BTRFS_AVAIL_ALLOC_BIT_SINGLE (1ULL << 48) /* * A fake block group type that is used to communicate global block reserve * size to userspace via the SPACE_INFO ioctl. */ #define BTRFS_SPACE_INFO_GLOBAL_RSV (1ULL << 49) #define BTRFS_EXTENDED_PROFILE_MASK (BTRFS_BLOCK_GROUP_PROFILE_MASK | \ BTRFS_AVAIL_ALLOC_BIT_SINGLE) static inline __u64 chunk_to_extended(__u64 flags) { if ((flags & BTRFS_BLOCK_GROUP_PROFILE_MASK) == 0) flags |= BTRFS_AVAIL_ALLOC_BIT_SINGLE; return flags; } static inline __u64 extended_to_chunk(__u64 flags) { return flags & ~BTRFS_AVAIL_ALLOC_BIT_SINGLE; } struct btrfs_block_group_item { __le64 used; __le64 chunk_objectid; __le64 flags; } __attribute__ ((__packed__)); struct btrfs_free_space_info { __le32 extent_count; __le32 flags; } __attribute__ ((__packed__)); #define BTRFS_FREE_SPACE_USING_BITMAPS (1ULL << 0) #define BTRFS_QGROUP_LEVEL_SHIFT 48 static inline __u16 btrfs_qgroup_level(__u64 qgroupid) { return (__u16)(qgroupid >> BTRFS_QGROUP_LEVEL_SHIFT); } /* * is subvolume quota turned on? */ #define BTRFS_QGROUP_STATUS_FLAG_ON (1ULL << 0) /* * RESCAN is set during the initialization phase */ #define BTRFS_QGROUP_STATUS_FLAG_RESCAN (1ULL << 1) /* * Some qgroup entries are known to be out of date, * either because the configuration has changed in a way that * makes a rescan necessary, or because the fs has been mounted * with a non-qgroup-aware version. * Turning qouta off and on again makes it inconsistent, too. */ #define BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT (1ULL << 2) #define BTRFS_QGROUP_STATUS_VERSION 1 struct btrfs_qgroup_status_item { __le64 version; /* * the generation is updated during every commit. As older * versions of btrfs are not aware of qgroups, it will be * possible to detect inconsistencies by checking the * generation on mount time */ __le64 generation; /* flag definitions see above */ __le64 flags; /* * only used during scanning to record the progress * of the scan. It contains a logical address */ __le64 rescan; } __attribute__ ((__packed__)); struct btrfs_qgroup_info_item { __le64 generation; __le64 rfer; __le64 rfer_cmpr; __le64 excl; __le64 excl_cmpr; } __attribute__ ((__packed__)); struct btrfs_qgroup_limit_item { /* * only updated when any of the other values change */ __le64 flags; __le64 max_rfer; __le64 max_excl; __le64 rsv_rfer; __le64 rsv_excl; } __attribute__ ((__packed__)); struct btrfs_verity_descriptor_item { /* Size of the verity descriptor in bytes */ __le64 size; /* * When we implement support for fscrypt, we will need to encrypt the * Merkle tree for encrypted verity files. These 128 bits are for the * eventual storage of an fscrypt initialization vector. */ __le64 reserved[2]; __u8 encryption; } __attribute__ ((__packed__)); #endif /* _BTRFS_CTREE_H_ */
Save
cmd:
run