/usr/src/linux-headers-5.15.0-181/include/uapi/linux
NameSizeModeActions
android/-0755rm
byteorder/-0755rm
caif/-0755rm
can/-0755rm
cifs/-0755rm
dvb/-0755rm
genwqe/-0755rm
hdlc/-0755rm
hsi/-0755rm
iio/-0755rm
isdn/-0755rm
misc/-0755rm
mmc/-0755rm
netfilter/-0755rm
netfilter_arp/-0755rm
netfilter_bridge/-0755rm
netfilter_ipv4/-0755rm
netfilter_ipv6/-0755rm
nfsd/-0755rm
raid/-0755rm
sched/-0755rm
spi/-0755rm
sunrpc/-0755rm
surface_aggregator/-0755rm
tc_act/-0755rm
tc_ematch/-0755rm
usb/-0755rm
a.out.h69590644editdlrm
acct.h40130644editdlrm
acrn.h167050644editdlrm
adb.h11550644editdlrm
adfs_fs.h10080644editdlrm
affs_hardblocks.h15780644editdlrm
agpgart.h40010644editdlrm
aio_abi.h33980644editdlrm
am437x-vpfe.h36810644editdlrm
apm_bios.h36980644editdlrm
arcfb.h2130644editdlrm
arm_sdei.h27660644editdlrm
aspeed-lpc-ctrl.h17950644editdlrm
aspeed-p2a-ctrl.h19210644editdlrm
atalk.h10380644editdlrm
atm.h79370644editdlrm
atmapi.h9520644editdlrm
atmarp.h12960644editdlrm
atmbr2684.h32710644editdlrm
atmclip.h5760644editdlrm
atmdev.h76990644editdlrm
atmioc.h16470644editdlrm
atmlec.h23810644editdlrm
atmmpc.h42260644editdlrm
atmppp.h6390644editdlrm
atmsap.h49700644editdlrm
atmsvc.h18530644editdlrm
atm_eni.h6480644editdlrm
atm_he.h4060644editdlrm
atm_idt77105.h9550644editdlrm
atm_nicstar.h12780644editdlrm
atm_tcp.h16370644editdlrm
atm_zatm.h15400644editdlrm
audit.h212670644editdlrm
aufs_type.h126410644editdlrm
auto_dev-ioctl.h49960644editdlrm
auto_fs.h64500644editdlrm
auto_fs4.h4660644editdlrm
auxvec.h16120644editdlrm
ax25.h28240644editdlrm
batadv_packet.h203600644editdlrm
batman_adv.h169020644editdlrm
baycom.h8830644editdlrm
bcache.h99100644editdlrm
bcm933xx_hcs.h4190644editdlrm
bfs_fs.h19050644editdlrm
binfmts.h7910644editdlrm
blkpg.h9530644editdlrm
blktrace_api.h47160644editdlrm
blkzoned.h65080644editdlrm
bpf.h2350840644editdlrm
bpfilter.h4800644editdlrm
bpf_common.h13820644editdlrm
bpf_perf_event.h5440644editdlrm
bpqether.h9810644editdlrm
bsg.h25090644editdlrm
bt-bmc.h5870644editdlrm
btf.h48110644editdlrm
btrfs.h309040644editdlrm
btrfs_tree.h273920644editdlrm
can.h92680644editdlrm
capability.h135470644editdlrm
capi.h31570644editdlrm
cciss_defs.h32810644editdlrm
cciss_ioctl.h27900644editdlrm
ccs.h7670644editdlrm
cdrom.h289490644editdlrm
cec-funcs.h534530644editdlrm
cec.h413340644editdlrm
cfm_bridge.h14660644editdlrm
cgroupstats.h22190644editdlrm
chio.h53040644editdlrm
close_range.h3920644editdlrm
cm4000_cs.h18210644editdlrm
cn_proc.h34710644editdlrm
coda.h183930644editdlrm
coff.h125640644editdlrm
connector.h22680644editdlrm
const.h10060644editdlrm
coresight-stm.h7470644editdlrm
cramfs_fs.h35700644editdlrm
cryptouser.h53360644editdlrm
cuda.h9200644editdlrm
cxl_mem.h64890644editdlrm
cyclades.h9840644editdlrm
cycx_cfm.h29900644editdlrm
dcbnl.h252920644editdlrm
dccp.h64470644editdlrm
devlink.h202070644editdlrm
dlm.h25680644editdlrm
dlmconstants.h50800644editdlrm
dlm_device.h25990644editdlrm
dlm_netlink.h11590644editdlrm
dlm_plock.h9090644editdlrm
dm-ioctl.h116020644editdlrm
dm-log-userspace.h151910644editdlrm
dma-buf.h37790644editdlrm
dma-heap.h14090644editdlrm
dns_resolver.h39040644editdlrm
dqblk_xfs.h93880644editdlrm
edd.h56190644editdlrm
efs_fs_sb.h22270644editdlrm
elf-em.h25860644editdlrm
elf-fdpic.h11390644editdlrm
elf.h141800644editdlrm
errno.h230644editdlrm
errqueue.h20660644editdlrm
erspan.h10740644editdlrm
ethtool.h825540644editdlrm
ethtool_netlink.h230880644editdlrm
eventpoll.h30560644editdlrm
f2fs.h33160644editdlrm
fadvise.h8420644editdlrm
falloc.h35990644editdlrm
fanotify.h74950644editdlrm
fb.h165180644editdlrm
fcntl.h42660644editdlrm
fd.h121660644editdlrm
fdreg.h53640644editdlrm
fib_rules.h20360644editdlrm
fiemap.h27900644editdlrm
filter.h22650644editdlrm
firewire-cdev.h442400644editdlrm
firewire-constants.h32310644editdlrm
fou.h9090644editdlrm
fpga-dfl.h87430644editdlrm
fs.h124110644editdlrm
fscrypt.h66380644editdlrm
fsi.h22700644editdlrm
fsl_hypervisor.h73160644editdlrm
fsl_mc.h7490644editdlrm
fsmap.h43850644editdlrm
fsverity.h32930644editdlrm
fuse.h230480644editdlrm
futex.h51450644editdlrm
gameport.h9120644editdlrm
genetlink.h21900644editdlrm
gen_stats.h15260644editdlrm
gfs2_ondisk.h147690644editdlrm
gpio.h197830644editdlrm
gsmmux.h11440644editdlrm
gtp.h7310644editdlrm
hash_info.h9860644editdlrm
hdlc.h6520644editdlrm
hdlcdrv.h29230644editdlrm
hdreg.h229450644editdlrm
hid.h19160644editdlrm
hiddev.h63600644editdlrm
hidraw.h20080644editdlrm
hpet.h7850644editdlrm
hsr_netlink.h11010644editdlrm
hw_breakpoint.h7570644editdlrm
hyperv.h105830644editdlrm
i2c-dev.h19310644editdlrm
i2c.h69050644editdlrm
i2o-dev.h116460644editdlrm
i8k.h15280644editdlrm
icmp.h48000644editdlrm
icmpv6.h42840644editdlrm
idxd.h76240644editdlrm
if.h110150644editdlrm
ife.h3510644editdlrm
if_addr.h19120644editdlrm
if_addrlabel.h7210644editdlrm
if_alg.h15660644editdlrm
if_arcnet.h37170644editdlrm
if_arp.h66040644editdlrm
if_bonding.h51450644editdlrm
if_bridge.h191210644editdlrm
if_cablemodem.h9860644editdlrm
if_eql.h13640644editdlrm
if_ether.h84570644editdlrm
if_fc.h17380644editdlrm
if_fddi.h43840644editdlrm
if_hippi.h42350644editdlrm
if_infiniband.h12450644editdlrm
if_link.h317600644editdlrm
if_ltalk.h2250644editdlrm
if_macsec.h64900644editdlrm
if_packet.h81470644editdlrm
if_phonet.h4390644editdlrm
if_plip.h6600644editdlrm
if_ppp.h290644editdlrm
if_pppol2tp.h33180644editdlrm
if_pppox.h48040644editdlrm
if_slip.h8720644editdlrm
if_team.h26150644editdlrm
if_tun.h41130644editdlrm
if_tunnel.h48580644editdlrm
if_vlan.h18460644editdlrm
if_x25.h8810644editdlrm
if_xdp.h30110644editdlrm
igmp.h30790644editdlrm
ila.h12610644editdlrm
in.h108970644editdlrm
in6.h75930644editdlrm
inet_diag.h50320644editdlrm
inotify.h33070644editdlrm
input-event-codes.h288940644editdlrm
input.h160300644editdlrm
in_route.h9360644editdlrm
ioam6.h23990644editdlrm
ioam6_genl.h9600644editdlrm
ioam6_iptunnel.h4510644editdlrm
ioctl.h1630644editdlrm
iommu.h120310644editdlrm
ioprio.h14710644editdlrm
io_uring.h97950644editdlrm
ip.h48280644editdlrm
ip6_tunnel.h19530644editdlrm
ipc.h21230644editdlrm
ipmi.h151120644editdlrm
ipmi_bmc.h5030644editdlrm
ipmi_msgdefs.h34300644editdlrm
ipsec.h9470644editdlrm
ipu-isys.h4810644editdlrm
ipu-psys.h36630644editdlrm
ipv6.h43410644editdlrm
ipv6_route.h19230644editdlrm
ip_vs.h141350644editdlrm
irqnr.h1040644editdlrm
iso_fs.h64850644editdlrm
isst_if.h54040644editdlrm
ivtv.h30630644editdlrm
ivtvfb.h12410644editdlrm
jffs2.h68150644editdlrm
joystick.h34490644editdlrm
kcm.h8220644editdlrm
kcmp.h5370644editdlrm
kcov.h19590644editdlrm
kd.h63110644editdlrm
kdev_t.h4410644editdlrm
kernel-page-flags.h9150644editdlrm
kernel.h2090644editdlrm
kernelcapi.h10340644editdlrm
kexec.h19700644editdlrm
keyboard.h134740644editdlrm
keyctl.h60100644editdlrm
kfd_ioctl.h241510644editdlrm
kvm.h607960644editdlrm
kvm_para.h10160644editdlrm
l2tp.h57880644editdlrm
landlock.h49150644editdlrm
libc-compat.h83040644editdlrm
limits.h9470644editdlrm
lirc.h81440644editdlrm
llc.h31790644editdlrm
loop.h35120644editdlrm
lp.h42050644editdlrm
lwtunnel.h22380644editdlrm
magic.h38010644editdlrm
major.h46570644editdlrm
map_to_7segment.h66080644editdlrm
matroxfb.h14640644editdlrm
max2175.h10350644editdlrm
mctp.h7360644editdlrm
mdio.h172830644editdlrm
media-bus-format.h69090644editdlrm
media.h132230644editdlrm
mei.h34750644editdlrm
membarrier.h93770644editdlrm
memfd.h13390644editdlrm
mempolicy.h25830644editdlrm
meye.h25290644editdlrm
mii.h95110644editdlrm
minix_fs.h21220644editdlrm
mman.h15990644editdlrm
mmtimer.h21170644editdlrm
module.h2700644editdlrm
mount.h51070644editdlrm
mpls.h23170644editdlrm
mpls_iptunnel.h7760644editdlrm
mptcp.h57500644editdlrm
mqueue.h22010644editdlrm
mroute.h59370644editdlrm
mroute6.h49450644editdlrm
mrp_bridge.h17180644editdlrm
msdos_fs.h67460644editdlrm
msg.h34010644editdlrm
mtio.h81750644editdlrm
nbd-netlink.h24230644editdlrm
nbd.h30390644editdlrm
ncsi.h48280644editdlrm
ndctl.h67930644editdlrm
neighbour.h51240644editdlrm
net.h21000644editdlrm
netconf.h6290644editdlrm
netdevice.h22680644editdlrm
netfilter.h17800644editdlrm
netfilter_arp.h4710644editdlrm
netfilter_bridge.h12090644editdlrm
netfilter_ipv4.h15480644editdlrm
netfilter_ipv6.h14430644editdlrm
netlink.h117170644editdlrm
netlink_diag.h15500644editdlrm
netrom.h8070644editdlrm
net_dropmon.h28860644editdlrm
net_namespace.h7300644editdlrm
net_tstamp.h55710644editdlrm
nexthop.h28350644editdlrm
nfc.h112360644editdlrm
nfs.h44810644editdlrm
nfs2.h14680644editdlrm
nfs3.h24680644editdlrm
nfs4.h65060644editdlrm
nfs4_mount.h19530644editdlrm
nfsacl.h7330644editdlrm
nfs_fs.h16560644editdlrm
nfs_idmap.h22580644editdlrm
nfs_mount.h21420644editdlrm
nilfs2_api.h75650644editdlrm
nilfs2_ondisk.h180530644editdlrm
nitro_enclaves.h131670644editdlrm
nl80211-vnd-intel.h29370644editdlrm
nl80211.h3140080644editdlrm
nsfs.h6390644editdlrm
nubus.h82060644editdlrm
nvme_ioctl.h16760644editdlrm
nvram.h5470644editdlrm
omap3isp.h214230644editdlrm
omapfb.h59400644editdlrm
oom.h5260644editdlrm
openat2.h14650644editdlrm
openvswitch.h406950644editdlrm
packet_diag.h16720644editdlrm
param.h1410644editdlrm
parport.h36590644editdlrm
patchkey.h9650644editdlrm
pci.h13950644editdlrm
pcitest.h8780644editdlrm
pci_regs.h586560644editdlrm
perf_event.h397810644editdlrm
personality.h21120644editdlrm
pfkeyv2.h105690644editdlrm
pg.h24090644editdlrm
phantom.h16540644editdlrm
phonet.h46400644editdlrm
pidfd.h2710644editdlrm
pktcdvd.h27020644editdlrm
pkt_cls.h181710644editdlrm
pkt_sched.h301060644editdlrm
pmu.h54590644editdlrm
poll.h220644editdlrm
posix_acl.h12540644editdlrm
posix_acl_xattr.h11150644editdlrm
posix_types.h10980644editdlrm
ppdev.h33000644editdlrm
ppp-comp.h25420644editdlrm
ppp-ioctl.h57630644editdlrm
ppp_defs.h55720644editdlrm
pps.h47340644editdlrm
pr.h10880644editdlrm
prctl.h93950644editdlrm
psample.h22710644editdlrm
psci.h43430644editdlrm
psp-sev.h40530644editdlrm
ptp_clock.h74560644editdlrm
ptrace.h44260644editdlrm
qemu_fw_cfg.h24690644editdlrm
qnx4_fs.h23280644editdlrm
qnxtypes.h6240644editdlrm
qrtr.h8780644editdlrm
quota.h63060644editdlrm
radeonfb.h3600644editdlrm
random.h14300644editdlrm
rds.h111680644editdlrm
reboot.h13580644editdlrm
reiserfs_fs.h7750644editdlrm
reiserfs_xattr.h5330644editdlrm
remoteproc_cdev.h11120644editdlrm
resource.h23880644editdlrm
rfkill.h61180644editdlrm
rio_cm_cdev.h32480644editdlrm
rio_mport_cdev.h93300644editdlrm
rkisp1-config.h313770644editdlrm
romfs_fs.h12380644editdlrm
rose.h22320644editdlrm
route.h23920644editdlrm
rpl.h8240644editdlrm
rpl_iptunnel.h4340644editdlrm
rpmsg.h8130644editdlrm
rpmsg_types.h3030644editdlrm
rseq.h47210644editdlrm
rtc.h46100644editdlrm
rtnetlink.h207840644editdlrm
rxrpc.h49370644editdlrm
scc.h46390644editdlrm
sched.h62810644editdlrm
scif_ioctl.h63820644editdlrm
screen_info.h24940644editdlrm
sctp.h360990644editdlrm
seccomp.h57740644editdlrm
securebits.h27190644editdlrm
sed-opal.h37770644editdlrm
seg6.h11800644editdlrm
seg6_genl.h5990644editdlrm
seg6_hmac.h4330644editdlrm
seg6_iptunnel.h9940644editdlrm
seg6_local.h33380644editdlrm
selinux_netlink.h12210644editdlrm
sem.h30940644editdlrm
serial.h38250644editdlrm
serial_core.h61290644editdlrm
serial_reg.h155520644editdlrm
serio.h21140644editdlrm
shm.h38350644editdlrm
signal.h4030644editdlrm
signalfd.h12480644editdlrm
smc.h80190644editdlrm
smc_diag.h28500644editdlrm
smiapp.h10580644editdlrm
snmp.h139500644editdlrm
socket.h9550644editdlrm
sockios.h68460644editdlrm
sock_diag.h13160644editdlrm
sonet.h23050644editdlrm
sonypi.h53240644editdlrm
sound.h12520644editdlrm
soundcard.h461700644editdlrm
stat.h67670644editdlrm
stddef.h15770644editdlrm
stm.h12900644editdlrm
string.h2960644editdlrm
suspend_ioctls.h14310644editdlrm
swab.h70160644editdlrm
switchtec_ioctl.h52720644editdlrm
synclink.h90000644editdlrm
sync_file.h28990644editdlrm
sysctl.h259880644editdlrm
sysinfo.h10490644editdlrm
target_core_user.h45570644editdlrm
taskstats.h72900644editdlrm
tcp.h119490644editdlrm
tcp_metrics.h15490644editdlrm
tee.h135920644editdlrm
termios.h1720644editdlrm
thermal.h30880644editdlrm
time.h17930644editdlrm
timerfd.h9510644editdlrm
times.h2780644editdlrm
timex.h78840644editdlrm
time_types.h12820644editdlrm
tiocl.h17290644editdlrm
tipc.h88050644editdlrm
tipc_config.h148380644editdlrm
tipc_netlink.h93950644editdlrm
tipc_sockets_diag.h4830644editdlrm
tls.h49180644editdlrm
toshiba.h19450644editdlrm
tty.h16000644editdlrm
tty_flags.h45530644editdlrm
types.h17380644editdlrm
udf_fs_i.h6970644editdlrm
udmabuf.h6580644editdlrm
udp.h17030644editdlrm
uhid.h46550644editdlrm
uinput.h92760644editdlrm
uio.h7810644editdlrm
uleds.h8130644editdlrm
ultrasound.h45620644editdlrm
um_timetravel.h39760644editdlrm
un.h3840644editdlrm
unistd.h2200644editdlrm
unix_diag.h13280644editdlrm
usbdevice_fs.h83740644editdlrm
usbip.h6550644editdlrm
userfaultfd.h90890644editdlrm
userio.h15160644editdlrm
utime.h2230644editdlrm
utsname.h6840644editdlrm
uuid.h13710644editdlrm
uvcvideo.h25810644editdlrm
v4l2-common.h42030644editdlrm
v4l2-controls.h864530644editdlrm
v4l2-dv-timings.h315620644editdlrm
v4l2-mediabus.h54610644editdlrm
v4l2-subdev.h77820644editdlrm
vboxguest.h93680644editdlrm
vbox_err.h72570644editdlrm
vbox_vmmdev_types.h115910644editdlrm
vdpa.h11830644editdlrm
vduse.h83060644editdlrm
veth.h2240644editdlrm
vfio.h538090644editdlrm
vfio_ccw.h12570644editdlrm
vfio_zdev.h25420644editdlrm
vhost.h64180644editdlrm
vhost_types.h40240644editdlrm
videodev2.h961870644editdlrm
virtio_9p.h20530644editdlrm
virtio_balloon.h52790644editdlrm
virtio_blk.h68880644editdlrm
virtio_bt.h7870644editdlrm
virtio_config.h40630644editdlrm
virtio_console.h31710644editdlrm
virtio_crypto.h138870644editdlrm
virtio_fs.h5880644editdlrm
virtio_gpio.h10390644editdlrm
virtio_gpu.h110530644editdlrm
virtio_i2c.h10040644editdlrm
virtio_ids.h43030644editdlrm
virtio_input.h25150644editdlrm
virtio_iommu.h37930644editdlrm
virtio_mem.h69550644editdlrm
virtio_mmio.h49690644editdlrm
virtio_net.h138310644editdlrm
virtio_pci.h74060644editdlrm
virtio_pcidev.h24620644editdlrm
virtio_pmem.h6510644editdlrm
virtio_ring.h86060644editdlrm
virtio_rng.h2650644editdlrm
virtio_scmi.h6520644editdlrm
virtio_scsi.h60850644editdlrm
virtio_snd.h93040644editdlrm
virtio_types.h21680644editdlrm
virtio_vsock.h33630644editdlrm
vmcore.h4700644editdlrm
vm_sockets.h66090644editdlrm
vm_sockets_diag.h9780644editdlrm
vsockmon.h18950644editdlrm
vt.h30740644editdlrm
vtpm_proxy.h17340644editdlrm
wait.h6970644editdlrm
watchdog.h23500644editdlrm
watch_queue.h35050644editdlrm
wireguard.h77480644editdlrm
wireless.h428040644editdlrm
wmi.h17180644editdlrm
wwan.h3100644editdlrm
x25.h35620644editdlrm
xattr.h30380644editdlrm
xdp_diag.h14680644editdlrm
xfrm.h124330644editdlrm
xilinx-v4l2-controls.h29760644editdlrm
zorro.h32660644editdlrm
zorro_ids.h300650644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/include/uapi/linux/vduse.h (8306B)
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI_VDUSE_H_ #define _UAPI_VDUSE_H_ #include #define VDUSE_BASE 0x81 /* The ioctls for control device (/dev/vduse/control) */ #define VDUSE_API_VERSION 0 /* * Get the version of VDUSE API that kernel supported (VDUSE_API_VERSION). * This is used for future extension. */ #define VDUSE_GET_API_VERSION _IOR(VDUSE_BASE, 0x00, __u64) /* Set the version of VDUSE API that userspace supported. */ #define VDUSE_SET_API_VERSION _IOW(VDUSE_BASE, 0x01, __u64) /** * struct vduse_dev_config - basic configuration of a VDUSE device * @name: VDUSE device name, needs to be NUL terminated * @vendor_id: virtio vendor id * @device_id: virtio device id * @features: virtio features * @vq_num: the number of virtqueues * @vq_align: the allocation alignment of virtqueue's metadata * @reserved: for future use, needs to be initialized to zero * @config_size: the size of the configuration space * @config: the buffer of the configuration space * * Structure used by VDUSE_CREATE_DEV ioctl to create VDUSE device. */ struct vduse_dev_config { #define VDUSE_NAME_MAX 256 char name[VDUSE_NAME_MAX]; __u32 vendor_id; __u32 device_id; __u64 features; __u32 vq_num; __u32 vq_align; __u32 reserved[13]; __u32 config_size; __u8 config[]; }; /* Create a VDUSE device which is represented by a char device (/dev/vduse/$NAME) */ #define VDUSE_CREATE_DEV _IOW(VDUSE_BASE, 0x02, struct vduse_dev_config) /* * Destroy a VDUSE device. Make sure there are no more references * to the char device (/dev/vduse/$NAME). */ #define VDUSE_DESTROY_DEV _IOW(VDUSE_BASE, 0x03, char[VDUSE_NAME_MAX]) /* The ioctls for VDUSE device (/dev/vduse/$NAME) */ /** * struct vduse_iotlb_entry - entry of IOTLB to describe one IOVA region [start, last] * @offset: the mmap offset on returned file descriptor * @start: start of the IOVA region * @last: last of the IOVA region * @perm: access permission of the IOVA region * * Structure used by VDUSE_IOTLB_GET_FD ioctl to find an overlapped IOVA region. */ struct vduse_iotlb_entry { __u64 offset; __u64 start; __u64 last; #define VDUSE_ACCESS_RO 0x1 #define VDUSE_ACCESS_WO 0x2 #define VDUSE_ACCESS_RW 0x3 __u8 perm; }; /* * Find the first IOVA region that overlaps with the range [start, last] * and return the corresponding file descriptor. Return -EINVAL means the * IOVA region doesn't exist. Caller should set start and last fields. */ #define VDUSE_IOTLB_GET_FD _IOWR(VDUSE_BASE, 0x10, struct vduse_iotlb_entry) /* * Get the negotiated virtio features. It's a subset of the features in * struct vduse_dev_config which can be accepted by virtio driver. It's * only valid after FEATURES_OK status bit is set. */ #define VDUSE_DEV_GET_FEATURES _IOR(VDUSE_BASE, 0x11, __u64) /** * struct vduse_config_data - data used to update configuration space * @offset: the offset from the beginning of configuration space * @length: the length to write to configuration space * @buffer: the buffer used to write from * * Structure used by VDUSE_DEV_SET_CONFIG ioctl to update device * configuration space. */ struct vduse_config_data { __u32 offset; __u32 length; __u8 buffer[]; }; /* Set device configuration space */ #define VDUSE_DEV_SET_CONFIG _IOW(VDUSE_BASE, 0x12, struct vduse_config_data) /* * Inject a config interrupt. It's usually used to notify virtio driver * that device configuration space has changed. */ #define VDUSE_DEV_INJECT_CONFIG_IRQ _IO(VDUSE_BASE, 0x13) /** * struct vduse_vq_config - basic configuration of a virtqueue * @index: virtqueue index * @max_size: the max size of virtqueue * @reserved: for future use, needs to be initialized to zero * * Structure used by VDUSE_VQ_SETUP ioctl to setup a virtqueue. */ struct vduse_vq_config { __u32 index; __u16 max_size; __u16 reserved[13]; }; /* * Setup the specified virtqueue. Make sure all virtqueues have been * configured before the device is attached to vDPA bus. */ #define VDUSE_VQ_SETUP _IOW(VDUSE_BASE, 0x14, struct vduse_vq_config) /** * struct vduse_vq_state_split - split virtqueue state * @avail_index: available index */ struct vduse_vq_state_split { __u16 avail_index; }; /** * struct vduse_vq_state_packed - packed virtqueue state * @last_avail_counter: last driver ring wrap counter observed by device * @last_avail_idx: device available index * @last_used_counter: device ring wrap counter * @last_used_idx: used index */ struct vduse_vq_state_packed { __u16 last_avail_counter; __u16 last_avail_idx; __u16 last_used_counter; __u16 last_used_idx; }; /** * struct vduse_vq_info - information of a virtqueue * @index: virtqueue index * @num: the size of virtqueue * @desc_addr: address of desc area * @driver_addr: address of driver area * @device_addr: address of device area * @split: split virtqueue state * @packed: packed virtqueue state * @ready: ready status of virtqueue * * Structure used by VDUSE_VQ_GET_INFO ioctl to get virtqueue's information. */ struct vduse_vq_info { __u32 index; __u32 num; __u64 desc_addr; __u64 driver_addr; __u64 device_addr; union { struct vduse_vq_state_split split; struct vduse_vq_state_packed packed; }; __u8 ready; }; /* Get the specified virtqueue's information. Caller should set index field. */ #define VDUSE_VQ_GET_INFO _IOWR(VDUSE_BASE, 0x15, struct vduse_vq_info) /** * struct vduse_vq_eventfd - eventfd configuration for a virtqueue * @index: virtqueue index * @fd: eventfd, -1 means de-assigning the eventfd * * Structure used by VDUSE_VQ_SETUP_KICKFD ioctl to setup kick eventfd. */ struct vduse_vq_eventfd { __u32 index; #define VDUSE_EVENTFD_DEASSIGN -1 int fd; }; /* * Setup kick eventfd for specified virtqueue. The kick eventfd is used * by VDUSE kernel module to notify userspace to consume the avail vring. */ #define VDUSE_VQ_SETUP_KICKFD _IOW(VDUSE_BASE, 0x16, struct vduse_vq_eventfd) /* * Inject an interrupt for specific virtqueue. It's used to notify virtio driver * to consume the used vring. */ #define VDUSE_VQ_INJECT_IRQ _IOW(VDUSE_BASE, 0x17, __u32) /* The control messages definition for read(2)/write(2) on /dev/vduse/$NAME */ /** * enum vduse_req_type - request type * @VDUSE_GET_VQ_STATE: get the state for specified virtqueue from userspace * @VDUSE_SET_STATUS: set the device status * @VDUSE_UPDATE_IOTLB: Notify userspace to update the memory mapping for * specified IOVA range via VDUSE_IOTLB_GET_FD ioctl */ enum vduse_req_type { VDUSE_GET_VQ_STATE, VDUSE_SET_STATUS, VDUSE_UPDATE_IOTLB, }; /** * struct vduse_vq_state - virtqueue state * @index: virtqueue index * @split: split virtqueue state * @packed: packed virtqueue state */ struct vduse_vq_state { __u32 index; union { struct vduse_vq_state_split split; struct vduse_vq_state_packed packed; }; }; /** * struct vduse_dev_status - device status * @status: device status */ struct vduse_dev_status { __u8 status; }; /** * struct vduse_iova_range - IOVA range [start, last] * @start: start of the IOVA range * @last: last of the IOVA range */ struct vduse_iova_range { __u64 start; __u64 last; }; /** * struct vduse_dev_request - control request * @type: request type * @request_id: request id * @reserved: for future use * @vq_state: virtqueue state, only index field is available * @s: device status * @iova: IOVA range for updating * @padding: padding * * Structure used by read(2) on /dev/vduse/$NAME. */ struct vduse_dev_request { __u32 type; __u32 request_id; __u32 reserved[4]; union { struct vduse_vq_state vq_state; struct vduse_dev_status s; struct vduse_iova_range iova; __u32 padding[32]; }; }; /** * struct vduse_dev_response - response to control request * @request_id: corresponding request id * @result: the result of request * @reserved: for future use, needs to be initialized to zero * @vq_state: virtqueue state * @padding: padding * * Structure used by write(2) on /dev/vduse/$NAME. */ struct vduse_dev_response { __u32 request_id; #define VDUSE_REQ_RESULT_OK 0x00 #define VDUSE_REQ_RESULT_FAILED 0x01 __u32 result; __u32 reserved[4]; union { struct vduse_vq_state vq_state; __u32 padding[32]; }; }; #endif /* _UAPI_VDUSE_H_ */