usr
/
include
/
linux
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] android
N/A
[DIR] byteorder
N/A
[DIR] caif
N/A
[DIR] can
N/A
[DIR] cifs
N/A
[DIR] dvb
N/A
[DIR] genwqe
N/A
[DIR] hdlc
N/A
[DIR] hsi
N/A
[DIR] iio
N/A
[DIR] isdn
N/A
[DIR] mmc
N/A
[DIR] netfilter
N/A
[DIR] netfilter_arp
N/A
[DIR] netfilter_bridge
N/A
[DIR] netfilter_ipv4
N/A
[DIR] netfilter_ipv6
N/A
[DIR] nfsd
N/A
[DIR] raid
N/A
[DIR] sched
N/A
[DIR] spi
N/A
[DIR] sunrpc
N/A
[DIR] tc_act
N/A
[DIR] tc_ematch
N/A
[DIR] usb
N/A
[DIR] wimax
N/A
a.out.h
6.73 KB
Rename
Delete
acct.h
3.65 KB
Rename
Delete
adb.h
1.11 KB
Rename
Delete
adfs_fs.h
936 bytes
Rename
Delete
affs_hardblocks.h
1.51 KB
Rename
Delete
agpgart.h
3.85 KB
Rename
Delete
aio_abi.h
3.34 KB
Rename
Delete
am437x-vpfe.h
3.59 KB
Rename
Delete
apm_bios.h
3.60 KB
Rename
Delete
arcfb.h
213 bytes
Rename
Delete
arm_sdei.h
2.69 KB
Rename
Delete
aspeed-lpc-ctrl.h
1.74 KB
Rename
Delete
atalk.h
1023 bytes
Rename
Delete
atm.h
7.70 KB
Rename
Delete
atm_eni.h
648 bytes
Rename
Delete
atm_he.h
406 bytes
Rename
Delete
atm_idt77105.h
955 bytes
Rename
Delete
atm_nicstar.h
1.25 KB
Rename
Delete
atm_tcp.h
1.58 KB
Rename
Delete
atm_zatm.h
1.50 KB
Rename
Delete
atmapi.h
952 bytes
Rename
Delete
atmarp.h
1.27 KB
Rename
Delete
atmbr2684.h
3.19 KB
Rename
Delete
atmclip.h
576 bytes
Rename
Delete
atmdev.h
7.50 KB
Rename
Delete
atmioc.h
1.61 KB
Rename
Delete
atmlec.h
2.33 KB
Rename
Delete
atmmpc.h
4.13 KB
Rename
Delete
atmppp.h
639 bytes
Rename
Delete
atmsap.h
4.85 KB
Rename
Delete
atmsvc.h
1.81 KB
Rename
Delete
audit.h
19.92 KB
Rename
Delete
auto_dev-ioctl.h
4.87 KB
Rename
Delete
auto_fs.h
6.28 KB
Rename
Delete
auto_fs4.h
451 bytes
Rename
Delete
auxvec.h
1.56 KB
Rename
Delete
ax25.h
2.76 KB
Rename
Delete
b1lli.h
1.68 KB
Rename
Delete
batadv_packet.h
20.01 KB
Rename
Delete
batman_adv.h
11.70 KB
Rename
Delete
baycom.h
883 bytes
Rename
Delete
bcache.h
8.17 KB
Rename
Delete
bcm933xx_hcs.h
419 bytes
Rename
Delete
bfs_fs.h
1.85 KB
Rename
Delete
binfmts.h
628 bytes
Rename
Delete
blkpg.h
904 bytes
Rename
Delete
blktrace_api.h
4.59 KB
Rename
Delete
blkzoned.h
6.45 KB
Rename
Delete
bpf.h
223.30 KB
Rename
Delete
bpf_common.h
1.33 KB
Rename
Delete
bpf_perf_event.h
529 bytes
Rename
Delete
bpfilter.h
465 bytes
Rename
Delete
bpqether.h
981 bytes
Rename
Delete
bsg.h
2.44 KB
Rename
Delete
bt-bmc.h
572 bytes
Rename
Delete
btf.h
4.68 KB
Rename
Delete
btrfs.h
28.24 KB
Rename
Delete
btrfs_tree.h
24.69 KB
Rename
Delete
can.h
7.70 KB
Rename
Delete
capability.h
13.20 KB
Rename
Delete
capi.h
3.05 KB
Rename
Delete
cciss_defs.h
3.20 KB
Rename
Delete
cciss_ioctl.h
2.70 KB
Rename
Delete
cdrom.h
28.18 KB
Rename
Delete
cec-funcs.h
52.64 KB
Rename
Delete
cec.h
36.81 KB
Rename
Delete
cfm_bridge.h
1.42 KB
Rename
Delete
cgroupstats.h
2.17 KB
Rename
Delete
chio.h
5.22 KB
Rename
Delete
close_range.h
377 bytes
Rename
Delete
cm4000_cs.h
1.76 KB
Rename
Delete
cn_proc.h
3.38 KB
Rename
Delete
coda.h
17.09 KB
Rename
Delete
coda_psdev.h
783 bytes
Rename
Delete
coff.h
12.18 KB
Rename
Delete
connector.h
2.20 KB
Rename
Delete
const.h
788 bytes
Rename
Delete
coresight-stm.h
674 bytes
Rename
Delete
cramfs_fs.h
3.47 KB
Rename
Delete
cryptouser.h
3.31 KB
Rename
Delete
cuda.h
905 bytes
Rename
Delete
cyclades.h
16.71 KB
Rename
Delete
cycx_cfm.h
2.92 KB
Rename
Delete
dcbnl.h
24.65 KB
Rename
Delete
dccp.h
6.29 KB
Rename
Delete
devlink.h
21.05 KB
Rename
Delete
dlm.h
2.49 KB
Rename
Delete
dlm_device.h
2.48 KB
Rename
Delete
dlm_netlink.h
1.13 KB
Rename
Delete
dlm_plock.h
894 bytes
Rename
Delete
dlmconstants.h
4.96 KB
Rename
Delete
dm-ioctl.h
11.13 KB
Rename
Delete
dm-log-userspace.h
14.83 KB
Rename
Delete
dma-buf.h
5.12 KB
Rename
Delete
dn.h
4.53 KB
Rename
Delete
dqblk_xfs.h
9.03 KB
Rename
Delete
edd.h
5.47 KB
Rename
Delete
efs_fs_sb.h
2.17 KB
Rename
Delete
elf-em.h
2.14 KB
Rename
Delete
elf-fdpic.h
1.10 KB
Rename
Delete
elf.h
13.16 KB
Rename
Delete
elfcore.h
2.92 KB
Rename
Delete
errno.h
23 bytes
Rename
Delete
errqueue.h
1.44 KB
Rename
Delete
erspan.h
1.03 KB
Rename
Delete
ethtool.h
81.89 KB
Rename
Delete
ethtool_netlink.h
22.29 KB
Rename
Delete
eventpoll.h
2.67 KB
Rename
Delete
fadvise.h
842 bytes
Rename
Delete
falloc.h
3.50 KB
Rename
Delete
fanotify.h
5.22 KB
Rename
Delete
fb.h
16.09 KB
Rename
Delete
fcntl.h
4.08 KB
Rename
Delete
fd.h
11.40 KB
Rename
Delete
fdreg.h
5.29 KB
Rename
Delete
fib_rules.h
1.99 KB
Rename
Delete
fiemap.h
2.71 KB
Rename
Delete
filter.h
2.16 KB
Rename
Delete
firewire-cdev.h
42.86 KB
Rename
Delete
firewire-constants.h
3.16 KB
Rename
Delete
flat.h
2.10 KB
Rename
Delete
fou.h
694 bytes
Rename
Delete
fpga-dfl.h
8.52 KB
Rename
Delete
fs.h
13.11 KB
Rename
Delete
fsl_hypervisor.h
7.13 KB
Rename
Delete
fsmap.h
4.29 KB
Rename
Delete
fuse.h
22.92 KB
Rename
Delete
futex.h
4.88 KB
Rename
Delete
gameport.h
897 bytes
Rename
Delete
gen_stats.h
1.49 KB
Rename
Delete
genetlink.h
2.12 KB
Rename
Delete
gfs2_ondisk.h
14.40 KB
Rename
Delete
gigaset_dev.h
1.41 KB
Rename
Delete
gpio.h
6.59 KB
Rename
Delete
gsmmux.h
1.02 KB
Rename
Delete
gtp.h
681 bytes
Rename
Delete
hash_info.h
921 bytes
Rename
Delete
hdlc.h
637 bytes
Rename
Delete
hdlcdrv.h
2.84 KB
Rename
Delete
hdreg.h
22.17 KB
Rename
Delete
hid.h
1.86 KB
Rename
Delete
hiddev.h
6.20 KB
Rename
Delete
hidraw.h
1.95 KB
Rename
Delete
hpet.h
743 bytes
Rename
Delete
hsr_netlink.h
1.06 KB
Rename
Delete
hw_breakpoint.h
742 bytes
Rename
Delete
hyperv.h
10.89 KB
Rename
Delete
hysdn_if.h
1.35 KB
Rename
Delete
i2c-dev.h
2.55 KB
Rename
Delete
i2c.h
6.96 KB
Rename
Delete
i2o-dev.h
11.28 KB
Rename
Delete
i8k.h
1.49 KB
Rename
Delete
icmp.h
2.91 KB
Rename
Delete
icmpv6.h
3.94 KB
Rename
Delete
idxd.h
8.22 KB
Rename
Delete
if.h
10.65 KB
Rename
Delete
if_addr.h
1.84 KB
Rename
Delete
if_addrlabel.h
721 bytes
Rename
Delete
if_alg.h
946 bytes
Rename
Delete
if_arcnet.h
3.63 KB
Rename
Delete
if_arp.h
6.42 KB
Rename
Delete
if_bonding.h
5.17 KB
Rename
Delete
if_bridge.h
19.06 KB
Rename
Delete
if_cablemodem.h
986 bytes
Rename
Delete
if_eql.h
1.32 KB
Rename
Delete
if_ether.h
8.05 KB
Rename
Delete
if_fc.h
1.70 KB
Rename
Delete
if_fddi.h
3.66 KB
Rename
Delete
if_frad.h
2.95 KB
Rename
Delete
if_hippi.h
4.14 KB
Rename
Delete
if_infiniband.h
1.22 KB
Rename
Delete
if_link.h
30.28 KB
Rename
Delete
if_ltalk.h
210 bytes
Rename
Delete
if_macsec.h
5.70 KB
Rename
Delete
if_packet.h
7.73 KB
Rename
Delete
if_phonet.h
424 bytes
Rename
Delete
if_plip.h
660 bytes
Rename
Delete
if_ppp.h
29 bytes
Rename
Delete
if_pppol2tp.h
3.21 KB
Rename
Delete
if_pppox.h
4.76 KB
Rename
Delete
if_slip.h
872 bytes
Rename
Delete
if_team.h
2.54 KB
Rename
Delete
if_tun.h
4.00 KB
Rename
Delete
if_tunnel.h
4.41 KB
Rename
Delete
if_vlan.h
1.79 KB
Rename
Delete
if_x25.h
881 bytes
Rename
Delete
if_xdp.h
2.94 KB
Rename
Delete
ife.h
351 bytes
Rename
Delete
igmp.h
2.99 KB
Rename
Delete
ila.h
1.22 KB
Rename
Delete
in.h
9.78 KB
Rename
Delete
in6.h
7.26 KB
Rename
Delete
in_route.h
936 bytes
Rename
Delete
inet_diag.h
4.56 KB
Rename
Delete
inotify.h
3.21 KB
Rename
Delete
input-event-codes.h
27.94 KB
Rename
Delete
input.h
15.61 KB
Rename
Delete
io_uring.h
6.06 KB
Rename
Delete
ioctl.h
163 bytes
Rename
Delete
iommu.h
4.79 KB
Rename
Delete
ip.h
4.62 KB
Rename
Delete
ip6_tunnel.h
1.91 KB
Rename
Delete
ip_vs.h
13.31 KB
Rename
Delete
ipc.h
2.05 KB
Rename
Delete
ipmi.h
15.08 KB
Rename
Delete
ipmi_bmc.h
464 bytes
Rename
Delete
ipmi_msgdefs.h
3.35 KB
Rename
Delete
ipmi_ssif_bmc.h
441 bytes
Rename
Delete
ipsec.h
947 bytes
Rename
Delete
ipv6.h
3.87 KB
Rename
Delete
ipv6_route.h
1.86 KB
Rename
Delete
ipx.h
2.29 KB
Rename
Delete
irqnr.h
104 bytes
Rename
Delete
isdn.h
5.64 KB
Rename
Delete
isdn_divertif.h
1.17 KB
Rename
Delete
isdn_ppp.h
1.88 KB
Rename
Delete
isdnif.h
2.31 KB
Rename
Delete
iso_fs.h
6.33 KB
Rename
Delete
isst_if.h
5.26 KB
Rename
Delete
ivtv.h
2.95 KB
Rename
Delete
ivtvfb.h
1.18 KB
Rename
Delete
jffs2.h
6.85 KB
Rename
Delete
joystick.h
3.35 KB
Rename
Delete
kcm.h
822 bytes
Rename
Delete
kcmp.h
522 bytes
Rename
Delete
kcov.h
1.07 KB
Rename
Delete
kd.h
6.11 KB
Rename
Delete
kdev_t.h
383 bytes
Rename
Delete
kernel-page-flags.h
900 bytes
Rename
Delete
kernel.h
438 bytes
Rename
Delete
kernelcapi.h
1019 bytes
Rename
Delete
kexec.h
1.79 KB
Rename
Delete
keyboard.h
12.48 KB
Rename
Delete
keyctl.h
3.42 KB
Rename
Delete
kfd_ioctl.h
28.14 KB
Rename
Delete
kfd_sysfs.h
4.25 KB
Rename
Delete
kvm.h
60.12 KB
Rename
Delete
kvm_para.h
1001 bytes
Rename
Delete
l2tp.h
5.46 KB
Rename
Delete
libc-compat.h
8.09 KB
Rename
Delete
lightnvm.h
4.92 KB
Rename
Delete
limits.h
937 bytes
Rename
Delete
lirc.h
7.63 KB
Rename
Delete
llc.h
3.09 KB
Rename
Delete
loop.h
3.42 KB
Rename
Delete
lp.h
4.09 KB
Rename
Delete
lwtunnel.h
2.13 KB
Rename
Delete
magic.h
3.45 KB
Rename
Delete
major.h
4.60 KB
Rename
Delete
map_to_7segment.h
7.08 KB
Rename
Delete
matroxfb.h
1.43 KB
Rename
Delete
max2175.h
1.01 KB
Rename
Delete
mdio.h
16.87 KB
Rename
Delete
media-bus-format.h
6.26 KB
Rename
Delete
media.h
11.12 KB
Rename
Delete
mei.h
3.39 KB
Rename
Delete
membarrier.h
7.71 KB
Rename
Delete
memfd.h
1.29 KB
Rename
Delete
mempolicy.h
2.18 KB
Rename
Delete
meye.h
2.47 KB
Rename
Delete
mic_common.h
6.37 KB
Rename
Delete
mic_ioctl.h
2.20 KB
Rename
Delete
mii.h
9.27 KB
Rename
Delete
minix_fs.h
2.07 KB
Rename
Delete
mman.h
1.35 KB
Rename
Delete
mmtimer.h
2.07 KB
Rename
Delete
module.h
255 bytes
Rename
Delete
mount.h
4.44 KB
Rename
Delete
mpls.h
2.25 KB
Rename
Delete
mpls_iptunnel.h
761 bytes
Rename
Delete
mptcp.h
5.48 KB
Rename
Delete
mqueue.h
2.15 KB
Rename
Delete
mroute.h
5.30 KB
Rename
Delete
mroute6.h
4.47 KB
Rename
Delete
mrp_bridge.h
1.67 KB
Rename
Delete
msdos_fs.h
6.80 KB
Rename
Delete
msg.h
3.29 KB
Rename
Delete
mtio.h
7.98 KB
Rename
Delete
n_r3964.h
2.35 KB
Rename
Delete
nbd-netlink.h
2.35 KB
Rename
Delete
nbd.h
2.95 KB
Rename
Delete
ncsi.h
3.79 KB
Rename
Delete
ndctl.h
6.71 KB
Rename
Delete
neighbour.h
5.02 KB
Rename
Delete
net.h
2.04 KB
Rename
Delete
net_dropmon.h
2.85 KB
Rename
Delete
net_namespace.h
715 bytes
Rename
Delete
net_tstamp.h
5.67 KB
Rename
Delete
netconf.h
614 bytes
Rename
Delete
netdevice.h
2.20 KB
Rename
Delete
netfilter.h
1.78 KB
Rename
Delete
netfilter_arp.h
445 bytes
Rename
Delete
netfilter_bridge.h
1.14 KB
Rename
Delete
netfilter_decnet.h
1.93 KB
Rename
Delete
netfilter_ipv4.h
2.12 KB
Rename
Delete
netfilter_ipv6.h
2.14 KB
Rename
Delete
netlink.h
11.23 KB
Rename
Delete
netlink_diag.h
1.49 KB
Rename
Delete
netrom.h
807 bytes
Rename
Delete
nexthop.h
1.50 KB
Rename
Delete
nfc.h
10.95 KB
Rename
Delete
nfs.h
4.39 KB
Rename
Delete
nfs2.h
1.43 KB
Rename
Delete
nfs3.h
2.40 KB
Rename
Delete
nfs4.h
6.44 KB
Rename
Delete
nfs4_mount.h
1.89 KB
Rename
Delete
nfs_fs.h
1.60 KB
Rename
Delete
nfs_idmap.h
2.19 KB
Rename
Delete
nfs_mount.h
2.09 KB
Rename
Delete
nfsacl.h
718 bytes
Rename
Delete
nilfs2_api.h
7.41 KB
Rename
Delete
nilfs2_ondisk.h
17.61 KB
Rename
Delete
nitro_enclaves.h
12.84 KB
Rename
Delete
nl80211.h
327.41 KB
Rename
Delete
nsfs.h
639 bytes
Rename
Delete
nubus.h
8.00 KB
Rename
Delete
nvme_ioctl.h
2.06 KB
Rename
Delete
nvram.h
532 bytes
Rename
Delete
omap3isp.h
20.36 KB
Rename
Delete
omapfb.h
5.78 KB
Rename
Delete
oom.h
511 bytes
Rename
Delete
openat2.h
1.26 KB
Rename
Delete
openvswitch.h
39.24 KB
Rename
Delete
packet_diag.h
1.63 KB
Rename
Delete
param.h
141 bytes
Rename
Delete
parport.h
3.56 KB
Rename
Delete
patchkey.h
892 bytes
Rename
Delete
pci.h
1.35 KB
Rename
Delete
pci_regs.h
56.47 KB
Rename
Delete
pcitest.h
711 bytes
Rename
Delete
perf_event.h
39.63 KB
Rename
Delete
personality.h
2.05 KB
Rename
Delete
pfkeyv2.h
10.32 KB
Rename
Delete
pfrut.h
7.80 KB
Rename
Delete
pg.h
2.34 KB
Rename
Delete
phantom.h
1.62 KB
Rename
Delete
phonet.h
4.57 KB
Rename
Delete
pkt_cls.h
18.08 KB
Rename
Delete
pkt_sched.h
29.59 KB
Rename
Delete
pktcdvd.h
2.62 KB
Rename
Delete
pmu.h
5.19 KB
Rename
Delete
poll.h
22 bytes
Rename
Delete
posix_acl.h
1.22 KB
Rename
Delete
posix_acl_xattr.h
1.09 KB
Rename
Delete
posix_types.h
1.07 KB
Rename
Delete
ppdev.h
3.14 KB
Rename
Delete
ppp-comp.h
2.47 KB
Rename
Delete
ppp-ioctl.h
5.35 KB
Rename
Delete
ppp_defs.h
4.99 KB
Rename
Delete
pps.h
4.62 KB
Rename
Delete
pr.h
1.05 KB
Rename
Delete
prctl.h
7.83 KB
Rename
Delete
psample.h
2.22 KB
Rename
Delete
psci.h
4.23 KB
Rename
Delete
psp-sev.h
4.48 KB
Rename
Delete
ptp_clock.h
7.28 KB
Rename
Delete
ptrace.h
3.59 KB
Rename
Delete
qemu_fw_cfg.h
2.41 KB
Rename
Delete
qnx4_fs.h
2.27 KB
Rename
Delete
qnxtypes.h
624 bytes
Rename
Delete
qrtr.h
893 bytes
Rename
Delete
quota.h
6.14 KB
Rename
Delete
radeonfb.h
360 bytes
Rename
Delete
random.h
1.34 KB
Rename
Delete
raw.h
365 bytes
Rename
Delete
rds.h
9.08 KB
Rename
Delete
reboot.h
1.31 KB
Rename
Delete
reiserfs_fs.h
775 bytes
Rename
Delete
reiserfs_xattr.h
533 bytes
Rename
Delete
resource.h
2.29 KB
Rename
Delete
rfkill.h
6.45 KB
Rename
Delete
rio_cm_cdev.h
3.17 KB
Rename
Delete
rio_mport_cdev.h
9.11 KB
Rename
Delete
romfs_fs.h
1.21 KB
Rename
Delete
rose.h
2.18 KB
Rename
Delete
route.h
2.28 KB
Rename
Delete
rpmsg.h
544 bytes
Rename
Delete
rseq.h
4.79 KB
Rename
Delete
rtc.h
3.92 KB
Rename
Delete
rtnetlink.h
19.73 KB
Rename
Delete
rxrpc.h
4.96 KB
Rename
Delete
scc.h
4.49 KB
Rename
Delete
sched.h
2.73 KB
Rename
Delete
scif_ioctl.h
6.23 KB
Rename
Delete
screen_info.h
2.42 KB
Rename
Delete
sctp.h
35.15 KB
Rename
Delete
sdla.h
2.77 KB
Rename
Delete
seccomp.h
2.20 KB
Rename
Delete
securebits.h
2.64 KB
Rename
Delete
sed-opal.h
3.20 KB
Rename
Delete
seg6.h
1.14 KB
Rename
Delete
seg6_genl.h
589 bytes
Rename
Delete
seg6_hmac.h
423 bytes
Rename
Delete
seg6_iptunnel.h
927 bytes
Rename
Delete
seg6_local.h
2.01 KB
Rename
Delete
selinux_netlink.h
1.17 KB
Rename
Delete
sem.h
2.97 KB
Rename
Delete
serial.h
3.78 KB
Rename
Delete
serial_core.h
6.10 KB
Rename
Delete
serial_reg.h
15.13 KB
Rename
Delete
serio.h
1.99 KB
Rename
Delete
sev-guest.h
2.25 KB
Rename
Delete
shm.h
3.70 KB
Rename
Delete
signal.h
388 bytes
Rename
Delete
signalfd.h
1.20 KB
Rename
Delete
smc.h
8.31 KB
Rename
Delete
smc_diag.h
2.66 KB
Rename
Delete
smiapp.h
1.03 KB
Rename
Delete
snmp.h
13.34 KB
Rename
Delete
sock_diag.h
1.27 KB
Rename
Delete
socket.h
901 bytes
Rename
Delete
sockios.h
5.96 KB
Rename
Delete
sonet.h
2.24 KB
Rename
Delete
sonypi.h
5.18 KB
Rename
Delete
sound.h
1.21 KB
Rename
Delete
soundcard.h
44.96 KB
Rename
Delete
stat.h
6.20 KB
Rename
Delete
stddef.h
1.50 KB
Rename
Delete
stm.h
1.25 KB
Rename
Delete
string.h
238 bytes
Rename
Delete
suspend_ioctls.h
1.40 KB
Rename
Delete
swab.h
6.76 KB
Rename
Delete
switchtec_ioctl.h
5.14 KB
Rename
Delete
sync_file.h
2.82 KB
Rename
Delete
synclink.h
8.77 KB
Rename
Delete
sysctl.h
25.24 KB
Rename
Delete
sysinfo.h
1.02 KB
Rename
Delete
target_core_user.h
4.52 KB
Rename
Delete
taskstats.h
7.01 KB
Rename
Delete
tcp.h
9.69 KB
Rename
Delete
tcp_metrics.h
1.51 KB
Rename
Delete
tdx-guest.h
1.27 KB
Rename
Delete
tee.h
12.86 KB
Rename
Delete
termios.h
506 bytes
Rename
Delete
thermal.h
3.23 KB
Rename
Delete
time.h
1.71 KB
Rename
Delete
time_types.h
1.15 KB
Rename
Delete
timerfd.h
936 bytes
Rename
Delete
times.h
278 bytes
Rename
Delete
timex.h
6.25 KB
Rename
Delete
tiocl.h
1.69 KB
Rename
Delete
tipc.h
8.62 KB
Rename
Delete
tipc_config.h
14.36 KB
Rename
Delete
tipc_netlink.h
9.17 KB
Rename
Delete
tipc_sockets_diag.h
468 bytes
Rename
Delete
tls.h
4.19 KB
Rename
Delete
toshiba.h
1.88 KB
Rename
Delete
tty.h
1.55 KB
Rename
Delete
tty_flags.h
4.42 KB
Rename
Delete
types.h
1.44 KB
Rename
Delete
udf_fs_i.h
697 bytes
Rename
Delete
udp.h
1.62 KB
Rename
Delete
uhid.h
4.54 KB
Rename
Delete
uinput.h
9.04 KB
Rename
Delete
uio.h
732 bytes
Rename
Delete
uleds.h
798 bytes
Rename
Delete
ultrasound.h
4.46 KB
Rename
Delete
un.h
384 bytes
Rename
Delete
unistd.h
220 bytes
Rename
Delete
unix_diag.h
1.22 KB
Rename
Delete
usbdevice_fs.h
8.12 KB
Rename
Delete
usbip.h
640 bytes
Rename
Delete
userfaultfd.h
7.59 KB
Rename
Delete
userio.h
1.48 KB
Rename
Delete
utime.h
215 bytes
Rename
Delete
utsname.h
669 bytes
Rename
Delete
uuid.h
1.32 KB
Rename
Delete
uvcvideo.h
2.57 KB
Rename
Delete
v4l2-common.h
4.08 KB
Rename
Delete
v4l2-controls.h
50.56 KB
Rename
Delete
v4l2-dv-timings.h
30.82 KB
Rename
Delete
v4l2-mediabus.h
4.98 KB
Rename
Delete
v4l2-subdev.h
5.95 KB
Rename
Delete
vbox_err.h
7.09 KB
Rename
Delete
vbox_vmmdev_types.h
8.16 KB
Rename
Delete
vboxguest.h
8.52 KB
Rename
Delete
vdpa.h
1.39 KB
Rename
Delete
version.h
430 bytes
Rename
Delete
veth.h
224 bytes
Rename
Delete
vfio.h
51.00 KB
Rename
Delete
vfio_ccw.h
1.29 KB
Rename
Delete
vfio_zdev.h
2.48 KB
Rename
Delete
vhost.h
6.27 KB
Rename
Delete
vhost_types.h
3.90 KB
Rename
Delete
videodev2.h
88.61 KB
Rename
Delete
virtio_9p.h
1.99 KB
Rename
Delete
virtio_balloon.h
5.15 KB
Rename
Delete
virtio_blk.h
6.64 KB
Rename
Delete
virtio_bt.h
772 bytes
Rename
Delete
virtio_config.h
3.91 KB
Rename
Delete
virtio_console.h
3.06 KB
Rename
Delete
virtio_crypto.h
13.55 KB
Rename
Delete
virtio_fs.h
572 bytes
Rename
Delete
virtio_gpu.h
11.19 KB
Rename
Delete
virtio_ids.h
3.19 KB
Rename
Delete
virtio_input.h
2.45 KB
Rename
Delete
virtio_iommu.h
3.69 KB
Rename
Delete
virtio_mem.h
6.99 KB
Rename
Delete
virtio_mmio.h
4.85 KB
Rename
Delete
virtio_net.h
10.30 KB
Rename
Delete
virtio_pci.h
7.23 KB
Rename
Delete
virtio_ring.h
7.32 KB
Rename
Delete
virtio_rng.h
265 bytes
Rename
Delete
virtio_scsi.h
5.89 KB
Rename
Delete
virtio_snd.h
9.09 KB
Rename
Delete
virtio_types.h
2.10 KB
Rename
Delete
virtio_vsock.h
3.01 KB
Rename
Delete
vm_sockets.h
6.34 KB
Rename
Delete
vm_sockets_diag.h
963 bytes
Rename
Delete
vmcore.h
431 bytes
Rename
Delete
vsockmon.h
1.84 KB
Rename
Delete
vt.h
2.99 KB
Rename
Delete
vtpm_proxy.h
1.68 KB
Rename
Delete
wait.h
682 bytes
Rename
Delete
wanrouter.h
453 bytes
Rename
Delete
watchdog.h
2.28 KB
Rename
Delete
wimax.h
8.17 KB
Rename
Delete
wireless.h
41.70 KB
Rename
Delete
wmi.h
1.84 KB
Rename
Delete
x25.h
3.48 KB
Rename
Delete
xattr.h
2.79 KB
Rename
Delete
xdp_diag.h
1.43 KB
Rename
Delete
xfrm.h
11.71 KB
Rename
Delete
xilinx-v4l2-controls.h
2.91 KB
Rename
Delete
zorro.h
3.22 KB
Rename
Delete
zorro_ids.h
29.26 KB
Rename
Delete
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2007 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ #ifndef _LINUX_BTRFS_H #define _LINUX_BTRFS_H #include <linux/types.h> #include <linux/ioctl.h> #define BTRFS_IOCTL_MAGIC 0x94 #define BTRFS_VOL_NAME_MAX 255 #define BTRFS_LABEL_SIZE 256 /* this should be 4k */ #define BTRFS_PATH_NAME_MAX 4087 struct btrfs_ioctl_vol_args { __s64 fd; char name[BTRFS_PATH_NAME_MAX + 1]; }; #define BTRFS_DEVICE_PATH_NAME_MAX 1024 #define BTRFS_SUBVOL_NAME_MAX 4039 #define BTRFS_SUBVOL_CREATE_ASYNC (1ULL << 0) #define BTRFS_SUBVOL_RDONLY (1ULL << 1) #define BTRFS_SUBVOL_QGROUP_INHERIT (1ULL << 2) #define BTRFS_DEVICE_SPEC_BY_ID (1ULL << 3) #define BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED \ (BTRFS_SUBVOL_CREATE_ASYNC | \ BTRFS_SUBVOL_RDONLY | \ BTRFS_SUBVOL_QGROUP_INHERIT | \ BTRFS_DEVICE_SPEC_BY_ID) #define BTRFS_FSID_SIZE 16 #define BTRFS_UUID_SIZE 16 #define BTRFS_UUID_UNPARSED_SIZE 37 /* * flags definition for qgroup limits * * Used by: * struct btrfs_qgroup_limit.flags * struct btrfs_qgroup_limit_item.flags */ #define BTRFS_QGROUP_LIMIT_MAX_RFER (1ULL << 0) #define BTRFS_QGROUP_LIMIT_MAX_EXCL (1ULL << 1) #define BTRFS_QGROUP_LIMIT_RSV_RFER (1ULL << 2) #define BTRFS_QGROUP_LIMIT_RSV_EXCL (1ULL << 3) #define BTRFS_QGROUP_LIMIT_RFER_CMPR (1ULL << 4) #define BTRFS_QGROUP_LIMIT_EXCL_CMPR (1ULL << 5) struct btrfs_qgroup_limit { __u64 flags; __u64 max_rfer; __u64 max_excl; __u64 rsv_rfer; __u64 rsv_excl; }; /* * flags definition for qgroup inheritance * * Used by: * struct btrfs_qgroup_inherit.flags */ #define BTRFS_QGROUP_INHERIT_SET_LIMITS (1ULL << 0) struct btrfs_qgroup_inherit { __u64 flags; __u64 num_qgroups; __u64 num_ref_copies; __u64 num_excl_copies; struct btrfs_qgroup_limit lim; __u64 qgroups[0]; }; struct btrfs_ioctl_qgroup_limit_args { __u64 qgroupid; struct btrfs_qgroup_limit lim; }; /* * flags for subvolumes * * Used by: * struct btrfs_ioctl_vol_args_v2.flags * * BTRFS_SUBVOL_RDONLY is also provided/consumed by the following ioctls: * - BTRFS_IOC_SUBVOL_GETFLAGS * - BTRFS_IOC_SUBVOL_SETFLAGS */ struct btrfs_ioctl_vol_args_v2 { __s64 fd; __u64 transid; __u64 flags; union { struct { __u64 size; struct btrfs_qgroup_inherit *qgroup_inherit; }; __u64 unused[4]; }; union { char name[BTRFS_SUBVOL_NAME_MAX + 1]; __u64 devid; }; }; /* * structure to report errors and progress to userspace, either as a * result of a finished scrub, a canceled scrub or a progress inquiry */ struct btrfs_scrub_progress { __u64 data_extents_scrubbed; /* # of data extents scrubbed */ __u64 tree_extents_scrubbed; /* # of tree extents scrubbed */ __u64 data_bytes_scrubbed; /* # of data bytes scrubbed */ __u64 tree_bytes_scrubbed; /* # of tree bytes scrubbed */ __u64 read_errors; /* # of read errors encountered (EIO) */ __u64 csum_errors; /* # of failed csum checks */ __u64 verify_errors; /* # of occurences, where the metadata * of a tree block did not match the * expected values, like generation or * logical */ __u64 no_csum; /* # of 4k data block for which no csum * is present, probably the result of * data written with nodatasum */ __u64 csum_discards; /* # of csum for which no data was found * in the extent tree. */ __u64 super_errors; /* # of bad super blocks encountered */ __u64 malloc_errors; /* # of internal kmalloc errors. These * will likely cause an incomplete * scrub */ __u64 uncorrectable_errors; /* # of errors where either no intact * copy was found or the writeback * failed */ __u64 corrected_errors; /* # of errors corrected */ __u64 last_physical; /* last physical address scrubbed. In * case a scrub was aborted, this can * be used to restart the scrub */ __u64 unverified_errors; /* # of occurences where a read for a * full (64k) bio failed, but the re- * check succeeded for each 4k piece. * Intermittent error. */ }; #define BTRFS_SCRUB_READONLY 1 struct btrfs_ioctl_scrub_args { __u64 devid; /* in */ __u64 start; /* in */ __u64 end; /* in */ __u64 flags; /* in */ struct btrfs_scrub_progress progress; /* out */ /* pad to 1k */ __u64 unused[(1024-32-sizeof(struct btrfs_scrub_progress))/8]; }; #define BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS 0 #define BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID 1 struct btrfs_ioctl_dev_replace_start_params { __u64 srcdevid; /* in, if 0, use srcdev_name instead */ __u64 cont_reading_from_srcdev_mode; /* in, see #define * above */ __u8 srcdev_name[BTRFS_DEVICE_PATH_NAME_MAX + 1]; /* in */ __u8 tgtdev_name[BTRFS_DEVICE_PATH_NAME_MAX + 1]; /* in */ }; #define BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED 0 #define BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED 1 #define BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED 2 #define BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED 3 #define BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED 4 struct btrfs_ioctl_dev_replace_status_params { __u64 replace_state; /* out, see #define above */ __u64 progress_1000; /* out, 0 <= x <= 1000 */ __u64 time_started; /* out, seconds since 1-Jan-1970 */ __u64 time_stopped; /* out, seconds since 1-Jan-1970 */ __u64 num_write_errors; /* out */ __u64 num_uncorrectable_read_errors; /* out */ }; #define BTRFS_IOCTL_DEV_REPLACE_CMD_START 0 #define BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS 1 #define BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL 2 #define BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR 0 #define BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED 1 #define BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED 2 #define BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS 3 struct btrfs_ioctl_dev_replace_args { __u64 cmd; /* in */ __u64 result; /* out */ union { struct btrfs_ioctl_dev_replace_start_params start; struct btrfs_ioctl_dev_replace_status_params status; }; /* in/out */ __u64 spare[64]; }; struct btrfs_ioctl_dev_info_args { __u64 devid; /* in/out */ __u8 uuid[BTRFS_UUID_SIZE]; /* in/out */ __u64 bytes_used; /* out */ __u64 total_bytes; /* out */ __u64 unused[379]; /* pad to 4k */ __u8 path[BTRFS_DEVICE_PATH_NAME_MAX]; /* out */ }; struct btrfs_ioctl_fs_info_args { __u64 max_id; /* out */ __u64 num_devices; /* out */ __u8 fsid[BTRFS_FSID_SIZE]; /* out */ __u32 nodesize; /* out */ __u32 sectorsize; /* out */ __u32 clone_alignment; /* out */ __u32 reserved32; __u64 reserved[122]; /* pad to 1k */ }; /* * feature flags * * Used by: * struct btrfs_ioctl_feature_flags */ #define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE (1ULL << 0) /* * Older kernels (< 4.9) on big-endian systems produced broken free space tree * bitmaps, and btrfs-progs also used to corrupt the free space tree (versions * < 4.7.3). If this bit is clear, then the free space tree cannot be trusted. * btrfs-progs can also intentionally clear this bit to ask the kernel to * rebuild the free space tree, however this might not work on older kernels * that do not know about this bit. If not sure, clear the cache manually on * first mount when booting older kernel versions. */ #define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID (1ULL << 1) #define BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF (1ULL << 0) #define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL (1ULL << 1) #define BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS (1ULL << 2) #define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO (1ULL << 3) #define BTRFS_FEATURE_INCOMPAT_COMPRESS_ZSTD (1ULL << 4) /* * older kernels tried to do bigger metadata blocks, but the * code was pretty buggy. Lets not let them try anymore. */ #define BTRFS_FEATURE_INCOMPAT_BIG_METADATA (1ULL << 5) #define BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF (1ULL << 6) #define BTRFS_FEATURE_INCOMPAT_RAID56 (1ULL << 7) #define BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA (1ULL << 8) #define BTRFS_FEATURE_INCOMPAT_NO_HOLES (1ULL << 9) struct btrfs_ioctl_feature_flags { __u64 compat_flags; __u64 compat_ro_flags; __u64 incompat_flags; }; /* balance control ioctl modes */ #define BTRFS_BALANCE_CTL_PAUSE 1 #define BTRFS_BALANCE_CTL_CANCEL 2 /* * this is packed, because it should be exactly the same as its disk * byte order counterpart (struct btrfs_disk_balance_args) */ struct btrfs_balance_args { __u64 profiles; union { __u64 usage; struct { __u32 usage_min; __u32 usage_max; }; }; __u64 devid; __u64 pstart; __u64 pend; __u64 vstart; __u64 vend; __u64 target; __u64 flags; /* * BTRFS_BALANCE_ARGS_LIMIT with value 'limit' * BTRFS_BALANCE_ARGS_LIMIT_RANGE - the extend version can use minimum * and maximum */ union { __u64 limit; /* limit number of processed chunks */ struct { __u32 limit_min; __u32 limit_max; }; }; /* * Process chunks that cross stripes_min..stripes_max devices, * BTRFS_BALANCE_ARGS_STRIPES_RANGE */ __u32 stripes_min; __u32 stripes_max; __u64 unused[6]; } __attribute__ ((__packed__)); /* report balance progress to userspace */ struct btrfs_balance_progress { __u64 expected; /* estimated # of chunks that will be * relocated to fulfill the request */ __u64 considered; /* # of chunks we have considered so far */ __u64 completed; /* # of chunks relocated so far */ }; /* * flags definition for balance * * Restriper's general type filter * * Used by: * btrfs_ioctl_balance_args.flags * btrfs_balance_control.flags (internal) */ #define BTRFS_BALANCE_DATA (1ULL << 0) #define BTRFS_BALANCE_SYSTEM (1ULL << 1) #define BTRFS_BALANCE_METADATA (1ULL << 2) #define BTRFS_BALANCE_TYPE_MASK (BTRFS_BALANCE_DATA | \ BTRFS_BALANCE_SYSTEM | \ BTRFS_BALANCE_METADATA) #define BTRFS_BALANCE_FORCE (1ULL << 3) #define BTRFS_BALANCE_RESUME (1ULL << 4) /* * flags definitions for per-type balance args * * Balance filters * * Used by: * struct btrfs_balance_args */ #define BTRFS_BALANCE_ARGS_PROFILES (1ULL << 0) #define BTRFS_BALANCE_ARGS_USAGE (1ULL << 1) #define BTRFS_BALANCE_ARGS_DEVID (1ULL << 2) #define BTRFS_BALANCE_ARGS_DRANGE (1ULL << 3) #define BTRFS_BALANCE_ARGS_VRANGE (1ULL << 4) #define BTRFS_BALANCE_ARGS_LIMIT (1ULL << 5) #define BTRFS_BALANCE_ARGS_LIMIT_RANGE (1ULL << 6) #define BTRFS_BALANCE_ARGS_STRIPES_RANGE (1ULL << 7) #define BTRFS_BALANCE_ARGS_USAGE_RANGE (1ULL << 10) #define BTRFS_BALANCE_ARGS_MASK \ (BTRFS_BALANCE_ARGS_PROFILES | \ BTRFS_BALANCE_ARGS_USAGE | \ BTRFS_BALANCE_ARGS_DEVID | \ BTRFS_BALANCE_ARGS_DRANGE | \ BTRFS_BALANCE_ARGS_VRANGE | \ BTRFS_BALANCE_ARGS_LIMIT | \ BTRFS_BALANCE_ARGS_LIMIT_RANGE | \ BTRFS_BALANCE_ARGS_STRIPES_RANGE | \ BTRFS_BALANCE_ARGS_USAGE_RANGE) /* * Profile changing flags. When SOFT is set we won't relocate chunk if * it already has the target profile (even though it may be * half-filled). */ #define BTRFS_BALANCE_ARGS_CONVERT (1ULL << 8) #define BTRFS_BALANCE_ARGS_SOFT (1ULL << 9) /* * flags definition for balance state * * Used by: * struct btrfs_ioctl_balance_args.state */ #define BTRFS_BALANCE_STATE_RUNNING (1ULL << 0) #define BTRFS_BALANCE_STATE_PAUSE_REQ (1ULL << 1) #define BTRFS_BALANCE_STATE_CANCEL_REQ (1ULL << 2) struct btrfs_ioctl_balance_args { __u64 flags; /* in/out */ __u64 state; /* out */ struct btrfs_balance_args data; /* in/out */ struct btrfs_balance_args meta; /* in/out */ struct btrfs_balance_args sys; /* in/out */ struct btrfs_balance_progress stat; /* out */ __u64 unused[72]; /* pad to 1k */ }; #define BTRFS_INO_LOOKUP_PATH_MAX 4080 struct btrfs_ioctl_ino_lookup_args { __u64 treeid; __u64 objectid; char name[BTRFS_INO_LOOKUP_PATH_MAX]; }; #define BTRFS_INO_LOOKUP_USER_PATH_MAX (4080 - BTRFS_VOL_NAME_MAX - 1) struct btrfs_ioctl_ino_lookup_user_args { /* in, inode number containing the subvolume of 'subvolid' */ __u64 dirid; /* in */ __u64 treeid; /* out, name of the subvolume of 'treeid' */ char name[BTRFS_VOL_NAME_MAX + 1]; /* * out, constructed path from the directory with which the ioctl is * called to dirid */ char path[BTRFS_INO_LOOKUP_USER_PATH_MAX]; }; /* Search criteria for the btrfs SEARCH ioctl family. */ struct btrfs_ioctl_search_key { /* * The tree we're searching in. 1 is the tree of tree roots, 2 is the * extent tree, etc... * * A special tree_id value of 0 will cause a search in the subvolume * tree that the inode which is passed to the ioctl is part of. */ __u64 tree_id; /* in */ /* * When doing a tree search, we're actually taking a slice from a * linear search space of 136-bit keys. * * A full 136-bit tree key is composed as: * (objectid << 72) + (type << 64) + offset * * The individual min and max values for objectid, type and offset * define the min_key and max_key values for the search range. All * metadata items with a key in the interval [min_key, max_key] will be * returned. * * Additionally, we can filter the items returned on transaction id of * the metadata block they're stored in by specifying a transid range. * Be aware that this transaction id only denotes when the metadata * page that currently contains the item got written the last time as * result of a COW operation. The number does not have any meaning * related to the transaction in which an individual item that is being * returned was created or changed. */ __u64 min_objectid; /* in */ __u64 max_objectid; /* in */ __u64 min_offset; /* in */ __u64 max_offset; /* in */ __u64 min_transid; /* in */ __u64 max_transid; /* in */ __u32 min_type; /* in */ __u32 max_type; /* in */ /* * input: The maximum amount of results desired. * output: The actual amount of items returned, restricted by any of: * - reaching the upper bound of the search range * - reaching the input nr_items amount of items * - completely filling the supplied memory buffer */ __u32 nr_items; /* in/out */ /* align to 64 bits */ __u32 unused; /* some extra for later */ __u64 unused1; __u64 unused2; __u64 unused3; __u64 unused4; }; struct btrfs_ioctl_search_header { __u64 transid; __u64 objectid; __u64 offset; __u32 type; __u32 len; }; #define BTRFS_SEARCH_ARGS_BUFSIZE (4096 - sizeof(struct btrfs_ioctl_search_key)) /* * the buf is an array of search headers where * each header is followed by the actual item * the type field is expanded to 32 bits for alignment */ struct btrfs_ioctl_search_args { struct btrfs_ioctl_search_key key; char buf[BTRFS_SEARCH_ARGS_BUFSIZE]; }; struct btrfs_ioctl_search_args_v2 { struct btrfs_ioctl_search_key key; /* in/out - search parameters */ __u64 buf_size; /* in - size of buffer * out - on EOVERFLOW: needed size * to store item */ __u64 buf[0]; /* out - found items */ }; struct btrfs_ioctl_clone_range_args { __s64 src_fd; __u64 src_offset, src_length; __u64 dest_offset; }; /* * flags definition for the defrag range ioctl * * Used by: * struct btrfs_ioctl_defrag_range_args.flags */ #define BTRFS_DEFRAG_RANGE_COMPRESS 1 #define BTRFS_DEFRAG_RANGE_START_IO 2 struct btrfs_ioctl_defrag_range_args { /* start of the defrag operation */ __u64 start; /* number of bytes to defrag, use (u64)-1 to say all */ __u64 len; /* * flags for the operation, which can include turning * on compression for this one defrag */ __u64 flags; /* * any extent bigger than this will be considered * already defragged. Use 0 to take the kernel default * Use 1 to say every single extent must be rewritten */ __u32 extent_thresh; /* * which compression method to use if turning on compression * for this defrag operation. If unspecified, zlib will * be used */ __u32 compress_type; /* spare for later */ __u32 unused[4]; }; #define BTRFS_SAME_DATA_DIFFERS 1 /* For extent-same ioctl */ struct btrfs_ioctl_same_extent_info { __s64 fd; /* in - destination file */ __u64 logical_offset; /* in - start of extent in destination */ __u64 bytes_deduped; /* out - total # of bytes we were able * to dedupe from this file */ /* status of this dedupe operation: * 0 if dedup succeeds * < 0 for error * == BTRFS_SAME_DATA_DIFFERS if data differs */ __s32 status; /* out - see above description */ __u32 reserved; }; struct btrfs_ioctl_same_args { __u64 logical_offset; /* in - start of extent in source */ __u64 length; /* in - length of extent */ __u16 dest_count; /* in - total elements in info array */ __u16 reserved1; __u32 reserved2; struct btrfs_ioctl_same_extent_info info[0]; }; struct btrfs_ioctl_space_info { __u64 flags; __u64 total_bytes; __u64 used_bytes; }; struct btrfs_ioctl_space_args { __u64 space_slots; __u64 total_spaces; struct btrfs_ioctl_space_info spaces[0]; }; struct btrfs_data_container { __u32 bytes_left; /* out -- bytes not needed to deliver output */ __u32 bytes_missing; /* out -- additional bytes needed for result */ __u32 elem_cnt; /* out */ __u32 elem_missed; /* out */ __u64 val[0]; /* out */ }; struct btrfs_ioctl_ino_path_args { __u64 inum; /* in */ __u64 size; /* in */ __u64 reserved[4]; /* struct btrfs_data_container *fspath; out */ __u64 fspath; /* out */ }; struct btrfs_ioctl_logical_ino_args { __u64 logical; /* in */ __u64 size; /* in */ __u64 reserved[3]; /* must be 0 for now */ __u64 flags; /* in, v2 only */ /* struct btrfs_data_container *inodes; out */ __u64 inodes; }; /* Return every ref to the extent, not just those containing logical block. * Requires logical == extent bytenr. */ #define BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET (1ULL << 0) enum btrfs_dev_stat_values { /* disk I/O failure stats */ BTRFS_DEV_STAT_WRITE_ERRS, /* EIO or EREMOTEIO from lower layers */ BTRFS_DEV_STAT_READ_ERRS, /* EIO or EREMOTEIO from lower layers */ BTRFS_DEV_STAT_FLUSH_ERRS, /* EIO or EREMOTEIO from lower layers */ /* stats for indirect indications for I/O failures */ BTRFS_DEV_STAT_CORRUPTION_ERRS, /* checksum error, bytenr error or * contents is illegal: this is an * indication that the block was damaged * during read or write, or written to * wrong location or read from wrong * location */ BTRFS_DEV_STAT_GENERATION_ERRS, /* an indication that blocks have not * been written */ BTRFS_DEV_STAT_VALUES_MAX }; /* Reset statistics after reading; needs SYS_ADMIN capability */ #define BTRFS_DEV_STATS_RESET (1ULL << 0) struct btrfs_ioctl_get_dev_stats { __u64 devid; /* in */ __u64 nr_items; /* in/out */ __u64 flags; /* in/out */ /* out values: */ __u64 values[BTRFS_DEV_STAT_VALUES_MAX]; __u64 unused[128 - 2 - BTRFS_DEV_STAT_VALUES_MAX]; /* pad to 1k */ }; #define BTRFS_QUOTA_CTL_ENABLE 1 #define BTRFS_QUOTA_CTL_DISABLE 2 #define BTRFS_QUOTA_CTL_RESCAN__NOTUSED 3 struct btrfs_ioctl_quota_ctl_args { __u64 cmd; __u64 status; }; struct btrfs_ioctl_quota_rescan_args { __u64 flags; __u64 progress; __u64 reserved[6]; }; struct btrfs_ioctl_qgroup_assign_args { __u64 assign; __u64 src; __u64 dst; }; struct btrfs_ioctl_qgroup_create_args { __u64 create; __u64 qgroupid; }; struct btrfs_ioctl_timespec { __u64 sec; __u32 nsec; }; struct btrfs_ioctl_received_subvol_args { char uuid[BTRFS_UUID_SIZE]; /* in */ __u64 stransid; /* in */ __u64 rtransid; /* out */ struct btrfs_ioctl_timespec stime; /* in */ struct btrfs_ioctl_timespec rtime; /* out */ __u64 flags; /* in */ __u64 reserved[16]; /* in */ }; /* * Caller doesn't want file data in the send stream, even if the * search of clone sources doesn't find an extent. UPDATE_EXTENT * commands will be sent instead of WRITE commands. */ #define BTRFS_SEND_FLAG_NO_FILE_DATA 0x1 /* * Do not add the leading stream header. Used when multiple snapshots * are sent back to back. */ #define BTRFS_SEND_FLAG_OMIT_STREAM_HEADER 0x2 /* * Omit the command at the end of the stream that indicated the end * of the stream. This option is used when multiple snapshots are * sent back to back. */ #define BTRFS_SEND_FLAG_OMIT_END_CMD 0x4 #define BTRFS_SEND_FLAG_MASK \ (BTRFS_SEND_FLAG_NO_FILE_DATA | \ BTRFS_SEND_FLAG_OMIT_STREAM_HEADER | \ BTRFS_SEND_FLAG_OMIT_END_CMD) struct btrfs_ioctl_send_args { __s64 send_fd; /* in */ __u64 clone_sources_count; /* in */ __u64 *clone_sources; /* in */ __u64 parent_root; /* in */ __u64 flags; /* in */ __u64 reserved[4]; /* in */ }; /* * Information about a fs tree root. * * All items are filled by the ioctl */ struct btrfs_ioctl_get_subvol_info_args { /* Id of this subvolume */ __u64 treeid; /* Name of this subvolume, used to get the real name at mount point */ char name[BTRFS_VOL_NAME_MAX + 1]; /* * Id of the subvolume which contains this subvolume. * Zero for top-level subvolume or a deleted subvolume. */ __u64 parent_id; /* * Inode number of the directory which contains this subvolume. * Zero for top-level subvolume or a deleted subvolume */ __u64 dirid; /* Latest transaction id of this subvolume */ __u64 generation; /* Flags of this subvolume */ __u64 flags; /* UUID of this subvolume */ __u8 uuid[BTRFS_UUID_SIZE]; /* * UUID of the subvolume of which this subvolume is a snapshot. * All zero for a non-snapshot subvolume. */ __u8 parent_uuid[BTRFS_UUID_SIZE]; /* * UUID of the subvolume from which this subvolume was received. * All zero for non-received subvolume. */ __u8 received_uuid[BTRFS_UUID_SIZE]; /* Transaction id indicating when change/create/send/receive happened */ __u64 ctransid; __u64 otransid; __u64 stransid; __u64 rtransid; /* Time corresponding to c/o/s/rtransid */ struct btrfs_ioctl_timespec ctime; struct btrfs_ioctl_timespec otime; struct btrfs_ioctl_timespec stime; struct btrfs_ioctl_timespec rtime; /* Must be zero */ __u64 reserved[8]; }; #define BTRFS_MAX_ROOTREF_BUFFER_NUM 255 struct btrfs_ioctl_get_subvol_rootref_args { /* in/out, minimum id of rootref's treeid to be searched */ __u64 min_treeid; /* out */ struct { __u64 treeid; __u64 dirid; } rootref[BTRFS_MAX_ROOTREF_BUFFER_NUM]; /* out, number of found items */ __u8 num_items; __u8 align[7]; }; /* Error codes as returned by the kernel */ enum btrfs_err_code { BTRFS_ERROR_DEV_RAID1_MIN_NOT_MET = 1, BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET, BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET, BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET, BTRFS_ERROR_DEV_TGT_REPLACE, BTRFS_ERROR_DEV_MISSING_NOT_FOUND, BTRFS_ERROR_DEV_ONLY_WRITABLE, BTRFS_ERROR_DEV_EXCL_RUN_IN_PROGRESS }; #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_RESIZE _IOW(BTRFS_IOCTL_MAGIC, 3, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_SCAN_DEV _IOW(BTRFS_IOCTL_MAGIC, 4, \ struct btrfs_ioctl_vol_args) /* trans start and trans end are dangerous, and only for * use by applications that know how to avoid the * resulting deadlocks */ #define BTRFS_IOC_TRANS_START _IO(BTRFS_IOCTL_MAGIC, 6) #define BTRFS_IOC_TRANS_END _IO(BTRFS_IOCTL_MAGIC, 7) #define BTRFS_IOC_SYNC _IO(BTRFS_IOCTL_MAGIC, 8) #define BTRFS_IOC_CLONE _IOW(BTRFS_IOCTL_MAGIC, 9, int) #define BTRFS_IOC_ADD_DEV _IOW(BTRFS_IOCTL_MAGIC, 10, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_RM_DEV _IOW(BTRFS_IOCTL_MAGIC, 11, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_BALANCE _IOW(BTRFS_IOCTL_MAGIC, 12, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_CLONE_RANGE _IOW(BTRFS_IOCTL_MAGIC, 13, \ struct btrfs_ioctl_clone_range_args) #define BTRFS_IOC_SUBVOL_CREATE _IOW(BTRFS_IOCTL_MAGIC, 14, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_SNAP_DESTROY _IOW(BTRFS_IOCTL_MAGIC, 15, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_DEFRAG_RANGE _IOW(BTRFS_IOCTL_MAGIC, 16, \ struct btrfs_ioctl_defrag_range_args) #define BTRFS_IOC_TREE_SEARCH _IOWR(BTRFS_IOCTL_MAGIC, 17, \ struct btrfs_ioctl_search_args) #define BTRFS_IOC_TREE_SEARCH_V2 _IOWR(BTRFS_IOCTL_MAGIC, 17, \ struct btrfs_ioctl_search_args_v2) #define BTRFS_IOC_INO_LOOKUP _IOWR(BTRFS_IOCTL_MAGIC, 18, \ struct btrfs_ioctl_ino_lookup_args) #define BTRFS_IOC_DEFAULT_SUBVOL _IOW(BTRFS_IOCTL_MAGIC, 19, __u64) #define BTRFS_IOC_SPACE_INFO _IOWR(BTRFS_IOCTL_MAGIC, 20, \ struct btrfs_ioctl_space_args) #define BTRFS_IOC_START_SYNC _IOR(BTRFS_IOCTL_MAGIC, 24, __u64) #define BTRFS_IOC_WAIT_SYNC _IOW(BTRFS_IOCTL_MAGIC, 22, __u64) #define BTRFS_IOC_SNAP_CREATE_V2 _IOW(BTRFS_IOCTL_MAGIC, 23, \ struct btrfs_ioctl_vol_args_v2) #define BTRFS_IOC_SUBVOL_CREATE_V2 _IOW(BTRFS_IOCTL_MAGIC, 24, \ struct btrfs_ioctl_vol_args_v2) #define BTRFS_IOC_SUBVOL_GETFLAGS _IOR(BTRFS_IOCTL_MAGIC, 25, __u64) #define BTRFS_IOC_SUBVOL_SETFLAGS _IOW(BTRFS_IOCTL_MAGIC, 26, __u64) #define BTRFS_IOC_SCRUB _IOWR(BTRFS_IOCTL_MAGIC, 27, \ struct btrfs_ioctl_scrub_args) #define BTRFS_IOC_SCRUB_CANCEL _IO(BTRFS_IOCTL_MAGIC, 28) #define BTRFS_IOC_SCRUB_PROGRESS _IOWR(BTRFS_IOCTL_MAGIC, 29, \ struct btrfs_ioctl_scrub_args) #define BTRFS_IOC_DEV_INFO _IOWR(BTRFS_IOCTL_MAGIC, 30, \ struct btrfs_ioctl_dev_info_args) #define BTRFS_IOC_FS_INFO _IOR(BTRFS_IOCTL_MAGIC, 31, \ struct btrfs_ioctl_fs_info_args) #define BTRFS_IOC_BALANCE_V2 _IOWR(BTRFS_IOCTL_MAGIC, 32, \ struct btrfs_ioctl_balance_args) #define BTRFS_IOC_BALANCE_CTL _IOW(BTRFS_IOCTL_MAGIC, 33, int) #define BTRFS_IOC_BALANCE_PROGRESS _IOR(BTRFS_IOCTL_MAGIC, 34, \ struct btrfs_ioctl_balance_args) #define BTRFS_IOC_INO_PATHS _IOWR(BTRFS_IOCTL_MAGIC, 35, \ struct btrfs_ioctl_ino_path_args) #define BTRFS_IOC_LOGICAL_INO _IOWR(BTRFS_IOCTL_MAGIC, 36, \ struct btrfs_ioctl_logical_ino_args) #define BTRFS_IOC_SET_RECEIVED_SUBVOL _IOWR(BTRFS_IOCTL_MAGIC, 37, \ struct btrfs_ioctl_received_subvol_args) #define BTRFS_IOC_SEND _IOW(BTRFS_IOCTL_MAGIC, 38, struct btrfs_ioctl_send_args) #define BTRFS_IOC_DEVICES_READY _IOR(BTRFS_IOCTL_MAGIC, 39, \ struct btrfs_ioctl_vol_args) #define BTRFS_IOC_QUOTA_CTL _IOWR(BTRFS_IOCTL_MAGIC, 40, \ struct btrfs_ioctl_quota_ctl_args) #define BTRFS_IOC_QGROUP_ASSIGN _IOW(BTRFS_IOCTL_MAGIC, 41, \ struct btrfs_ioctl_qgroup_assign_args) #define BTRFS_IOC_QGROUP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 42, \ struct btrfs_ioctl_qgroup_create_args) #define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \ struct btrfs_ioctl_qgroup_limit_args) #define BTRFS_IOC_QUOTA_RESCAN _IOW(BTRFS_IOCTL_MAGIC, 44, \ struct btrfs_ioctl_quota_rescan_args) #define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \ struct btrfs_ioctl_quota_rescan_args) #define BTRFS_IOC_QUOTA_RESCAN_WAIT _IO(BTRFS_IOCTL_MAGIC, 46) #define BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ char[BTRFS_LABEL_SIZE]) #define BTRFS_IOC_SET_FSLABEL _IOW(BTRFS_IOCTL_MAGIC, 50, \ char[BTRFS_LABEL_SIZE]) #define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \ struct btrfs_ioctl_get_dev_stats) #define BTRFS_IOC_DEV_REPLACE _IOWR(BTRFS_IOCTL_MAGIC, 53, \ struct btrfs_ioctl_dev_replace_args) #define BTRFS_IOC_FILE_EXTENT_SAME _IOWR(BTRFS_IOCTL_MAGIC, 54, \ struct btrfs_ioctl_same_args) #define BTRFS_IOC_GET_FEATURES _IOR(BTRFS_IOCTL_MAGIC, 57, \ struct btrfs_ioctl_feature_flags) #define BTRFS_IOC_SET_FEATURES _IOW(BTRFS_IOCTL_MAGIC, 57, \ struct btrfs_ioctl_feature_flags[2]) #define BTRFS_IOC_GET_SUPPORTED_FEATURES _IOR(BTRFS_IOCTL_MAGIC, 57, \ struct btrfs_ioctl_feature_flags[3]) #define BTRFS_IOC_RM_DEV_V2 _IOW(BTRFS_IOCTL_MAGIC, 58, \ struct btrfs_ioctl_vol_args_v2) #define BTRFS_IOC_LOGICAL_INO_V2 _IOWR(BTRFS_IOCTL_MAGIC, 59, \ struct btrfs_ioctl_logical_ino_args) #define BTRFS_IOC_GET_SUBVOL_INFO _IOR(BTRFS_IOCTL_MAGIC, 60, \ struct btrfs_ioctl_get_subvol_info_args) #define BTRFS_IOC_GET_SUBVOL_ROOTREF _IOWR(BTRFS_IOCTL_MAGIC, 61, \ struct btrfs_ioctl_get_subvol_rootref_args) #define BTRFS_IOC_INO_LOOKUP_USER _IOWR(BTRFS_IOCTL_MAGIC, 62, \ struct btrfs_ioctl_ino_lookup_user_args) #endif /* _LINUX_BTRFS_H */
Save