/usr/include/linux
NameSizeModeActions
android/-0755rm
byteorder/-0755rm
caif/-0755rm
can/-0755rm
cifs/-0755rm
dvb/-0755rm
genwqe/-0755rm
hdlc/-0755rm
hsi/-0755rm
iio/-0755rm
isdn/-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
tc_act/-0755rm
tc_ematch/-0755rm
usb/-0755rm
wimax/-0755rm
a.out.h68920644editdlrm
acct.h37330644editdlrm
adb.h11400644editdlrm
adfs_fs.h9360644editdlrm
affs_hardblocks.h15440644editdlrm
agpgart.h39400644editdlrm
aio_abi.h34170644editdlrm
am437x-vpfe.h36810644editdlrm
apm_bios.h36830644editdlrm
arcfb.h2130644editdlrm
arm_sdei.h27510644editdlrm
aspeed-lpc-ctrl.h17800644editdlrm
atalk.h10230644editdlrm
atm.h78880644editdlrm
atmapi.h9520644editdlrm
atmarp.h12960644editdlrm
atmbr2684.h32710644editdlrm
atmclip.h5760644editdlrm
atmdev.h76770644editdlrm
atmioc.h16460644editdlrm
atmlec.h23810644editdlrm
atmmpc.h42260644editdlrm
atmppp.h6390644editdlrm
atmsap.h49700644editdlrm
atmsvc.h18530644editdlrm
atm_eni.h6480644editdlrm
atm_he.h4060644editdlrm
atm_idt77105.h9550644editdlrm
atm_nicstar.h12780644editdlrm
atm_tcp.h16220644editdlrm
atm_zatm.h15400644editdlrm
audit.h203940644editdlrm
auto_dev-ioctl.h49860644editdlrm
auto_fs.h64280644editdlrm
auto_fs4.h4510644editdlrm
auxvec.h15970644editdlrm
ax25.h28240644editdlrm
b1lli.h17170644editdlrm
batadv_packet.h204950644editdlrm
batman_adv.h119770644editdlrm
baycom.h8830644editdlrm
bcache.h83660644editdlrm
bcm933xx_hcs.h4190644editdlrm
bfs_fs.h18930644editdlrm
binfmts.h6280644editdlrm
blkpg.h9040644editdlrm
blktrace_api.h47010644editdlrm
blkzoned.h66080644editdlrm
bpf.h2286600644editdlrm
bpfilter.h4650644editdlrm
bpf_common.h13670644editdlrm
bpf_perf_event.h5290644editdlrm
bpqether.h9810644editdlrm
bsg.h24940644editdlrm
bt-bmc.h5720644editdlrm
btf.h47960644editdlrm
btrfs.h289130644editdlrm
btrfs_tree.h252850644editdlrm
can.h78810644editdlrm
capability.h135210644editdlrm
capi.h31240644editdlrm
cciss_defs.h32810644editdlrm
cciss_ioctl.h27610644editdlrm
cdrom.h288590644editdlrm
cec-funcs.h539010644editdlrm
cec.h376910644editdlrm
cfm_bridge.h14560644editdlrm
cgroupstats.h22190644editdlrm
chio.h53440644editdlrm
close_range.h3770644editdlrm
cm4000_cs.h18060644editdlrm
cn_proc.h34560644editdlrm
coda.h175050644editdlrm
coda_psdev.h7830644editdlrm
coff.h124760644editdlrm
connector.h22530644editdlrm
const.h7880644editdlrm
coresight-stm.h6740644editdlrm
cramfs_fs.h35550644editdlrm
cryptouser.h33920644editdlrm
cuda.h9050644editdlrm
cyclades.h171080644editdlrm
cycx_cfm.h29900644editdlrm
dcbnl.h252380644editdlrm
dccp.h64360644editdlrm
devlink.h215560644editdlrm
dlm.h25530644editdlrm
dlmconstants.h50800644editdlrm
dlm_device.h25430644editdlrm
dlm_netlink.h11590644editdlrm
dlm_plock.h8940644editdlrm
dm-ioctl.h114000644editdlrm
dm-log-userspace.h151910644editdlrm
dma-buf.h52470644editdlrm
dn.h46420644editdlrm
dqblk_xfs.h92450644editdlrm
edd.h56040644editdlrm
efs_fs_sb.h22270644editdlrm
elf-em.h21870644editdlrm
elf-fdpic.h11240644editdlrm
elf.h134710644editdlrm
elfcore.h29950644editdlrm
errno.h230644editdlrm
errqueue.h14770644editdlrm
erspan.h10590644editdlrm
ethtool.h838550644editdlrm
ethtool_netlink.h228260644editdlrm
eventpoll.h27340644editdlrm
fadvise.h8420644editdlrm
falloc.h35840644editdlrm
fanotify.h53410644editdlrm
fb.h164770644editdlrm
fcntl.h41740644editdlrm
fd.h116720644editdlrm
fdreg.h54200644editdlrm
fib_rules.h20360644editdlrm
fiemap.h27750644editdlrm
filter.h22160644editdlrm
firewire-cdev.h438860644editdlrm
firewire-constants.h32310644editdlrm
flat.h21480644editdlrm
fou.h6940644editdlrm
fpga-dfl.h87280644editdlrm
fs.h134240644editdlrm
fsl_hypervisor.h73010644editdlrm
fsmap.h43930644editdlrm
fuse.h234730644editdlrm
futex.h49930644editdlrm
gameport.h8970644editdlrm
genetlink.h21750644editdlrm
gen_stats.h15260644editdlrm
gfs2_ondisk.h147430644editdlrm
gigaset_dev.h14420644editdlrm
gpio.h67510644editdlrm
gsmmux.h10410644editdlrm
gtp.h6810644editdlrm
hash_info.h9210644editdlrm
hdlc.h6370644editdlrm
hdlcdrv.h29080644editdlrm
hdreg.h227030644editdlrm
hid.h19010644editdlrm
hiddev.h63450644editdlrm
hidraw.h19930644editdlrm
hpet.h7430644editdlrm
hsr_netlink.h10810644editdlrm
hw_breakpoint.h7420644editdlrm
hyperv.h111520644editdlrm
hysdn_if.h13820644editdlrm
i2c-dev.h26120644editdlrm
i2c.h71320644editdlrm
i2o-dev.h115550644editdlrm
i8k.h15280644editdlrm
icmp.h29750644editdlrm
icmpv6.h40380644editdlrm
idxd.h84170644editdlrm
if.h109010644editdlrm
ife.h3510644editdlrm
if_addr.h18860644editdlrm
if_addrlabel.h7210644editdlrm
if_alg.h9460644editdlrm
if_arcnet.h37170644editdlrm
if_arp.h65770644editdlrm
if_bonding.h52910644editdlrm
if_bridge.h195140644editdlrm
if_cablemodem.h9860644editdlrm
if_eql.h13490644editdlrm
if_ether.h82480644editdlrm
if_fc.h17380644editdlrm
if_fddi.h37480644editdlrm
if_frad.h30190644editdlrm
if_hippi.h42350644editdlrm
if_infiniband.h12450644editdlrm
if_link.h310050644editdlrm
if_ltalk.h2100644editdlrm
if_macsec.h58320644editdlrm
if_packet.h79190644editdlrm
if_phonet.h4240644editdlrm
if_plip.h6600644editdlrm
if_ppp.h290644editdlrm
if_pppol2tp.h32920644editdlrm
if_pppox.h48790644editdlrm
if_slip.h8720644editdlrm
if_team.h26000644editdlrm
if_tun.h40980644editdlrm
if_tunnel.h45120644editdlrm
if_vlan.h18310644editdlrm
if_x25.h8810644editdlrm
if_xdp.h30110644editdlrm
igmp.h30640644editdlrm
ila.h12460644editdlrm
in.h100140644editdlrm
in6.h74380644editdlrm
inet_diag.h46720644editdlrm
inotify.h32920644editdlrm
input-event-codes.h286060644editdlrm
input.h159850644editdlrm
in_route.h9360644editdlrm
ioctl.h1630644editdlrm
iommu.h49040644editdlrm
io_uring.h62070644editdlrm
ip.h47280644editdlrm
ip6_tunnel.h19530644editdlrm
ipc.h21010644editdlrm
ipmi.h154420644editdlrm
ipmi_bmc.h4640644editdlrm
ipmi_msgdefs.h34300644editdlrm
ipmi_ssif_bmc.h4410644editdlrm
ipsec.h9470644editdlrm
ipv6.h39670644editdlrm
ipv6_route.h19080644editdlrm
ipx.h23470644editdlrm
ip_vs.h136310644editdlrm
irqnr.h1040644editdlrm
isdn.h57740644editdlrm
isdnif.h23700644editdlrm
isdn_divertif.h12000644editdlrm
isdn_ppp.h19230644editdlrm
iso_fs.h64850644editdlrm
isst_if.h53840644editdlrm
ivtv.h30220644editdlrm
ivtvfb.h12070644editdlrm
jffs2.h70180644editdlrm
joystick.h34340644editdlrm
kcm.h8220644editdlrm
kcmp.h5220644editdlrm
kcov.h10990644editdlrm
kd.h62530644editdlrm
kdev_t.h3830644editdlrm
kernel-page-flags.h9000644editdlrm
kernel.h4380644editdlrm
kernelcapi.h10190644editdlrm
kexec.h18350644editdlrm
keyboard.h127830644editdlrm
keyctl.h35000644editdlrm
kfd_ioctl.h288140644editdlrm
kfd_sysfs.h43500644editdlrm
kvm.h615610644editdlrm
kvm_para.h10010644editdlrm
l2tp.h55910644editdlrm
libc-compat.h82890644editdlrm
lightnvm.h50420644editdlrm
limits.h9370644editdlrm
lirc.h78130644editdlrm
llc.h31640644editdlrm
loop.h34970644editdlrm
lp.h41900644editdlrm
lwtunnel.h21790644editdlrm
magic.h35310644editdlrm
major.h47130644editdlrm
map_to_7segment.h72510644editdlrm
matroxfb.h14640644editdlrm
max2175.h10350644editdlrm
mdio.h172720644editdlrm
media-bus-format.h64110644editdlrm
media.h113820644editdlrm
mei.h34750644editdlrm
membarrier.h78990644editdlrm
memfd.h13240644editdlrm
mempolicy.h22310644editdlrm
meye.h25290644editdlrm
mic_common.h65190644editdlrm
mic_ioctl.h22520644editdlrm
mii.h94960644editdlrm
minix_fs.h21220644editdlrm
mman.h13850644editdlrm
mmtimer.h21170644editdlrm
module.h2550644editdlrm
mount.h45460644editdlrm
mpls.h23020644editdlrm
mpls_iptunnel.h7610644editdlrm
mptcp.h56080644editdlrm
mqueue.h22010644editdlrm
mroute.h54270644editdlrm
mroute6.h45770644editdlrm
mrp_bridge.h17080644editdlrm
msdos_fs.h69630644editdlrm
msg.h33740644editdlrm
mtio.h81750644editdlrm
nbd-netlink.h24080644editdlrm
nbd.h30240644editdlrm
ncsi.h38800644editdlrm
ndctl.h68660644editdlrm
neighbour.h51380644editdlrm
net.h20850644editdlrm
netconf.h6140644editdlrm
netdevice.h22530644editdlrm
netfilter.h18200644editdlrm
netfilter_arp.h4450644editdlrm
netfilter_bridge.h11680644editdlrm
netfilter_decnet.h19790644editdlrm
netfilter_ipv4.h21690644editdlrm
netfilter_ipv6.h21890644editdlrm
netlink.h114950644editdlrm
netlink_diag.h15240644editdlrm
netrom.h8070644editdlrm
net_dropmon.h29220644editdlrm
net_namespace.h7150644editdlrm
net_tstamp.h58060644editdlrm
nexthop.h15340644editdlrm
nfc.h112090644editdlrm
nfs.h45000644editdlrm
nfs2.h14680644editdlrm
nfs3.h24530644editdlrm
nfs4.h65990644editdlrm
nfs4_mount.h19320644editdlrm
nfsacl.h7180644editdlrm
nfs_fs.h16410644editdlrm
nfs_idmap.h22430644editdlrm
nfs_mount.h21420644editdlrm
nilfs2_api.h75890644editdlrm
nilfs2_ondisk.h180330644editdlrm
nitro_enclaves.h131520644editdlrm
nl80211.h3352640644editdlrm
nsfs.h6390644editdlrm
nubus.h81910644editdlrm
nvme_ioctl.h21120644editdlrm
nvram.h5320644editdlrm
n_r3964.h24100644editdlrm
omap3isp.h208530644editdlrm
omapfb.h59180644editdlrm
oom.h5110644editdlrm
openat2.h12890644editdlrm
openvswitch.h401840644editdlrm
packet_diag.h16720644editdlrm
param.h1410644editdlrm
parport.h36440644editdlrm
patchkey.h8920644editdlrm
pci.h13800644editdlrm
pcitest.h7110644editdlrm
pci_regs.h578270644editdlrm
perf_event.h405800644editdlrm
personality.h20970644editdlrm
pfkeyv2.h105690644editdlrm
pfrut.h79870644editdlrm
pg.h23940644editdlrm
phantom.h16540644editdlrm
phonet.h46770644editdlrm
pktcdvd.h26870644editdlrm
pkt_cls.h185110644editdlrm
pkt_sched.h302960644editdlrm
pmu.h53190644editdlrm
poll.h220644editdlrm
posix_acl.h12540644editdlrm
posix_acl_xattr.h11150644editdlrm
posix_types.h10980644editdlrm
ppdev.h32110644editdlrm
ppp-comp.h25270644editdlrm
ppp-ioctl.h54750644editdlrm
ppp_defs.h51070644editdlrm
pps.h47340644editdlrm
pr.h10730644editdlrm
prctl.h80230644editdlrm
psample.h22710644editdlrm
psci.h43280644editdlrm
psp-sev.h45860644editdlrm
ptp_clock.h74560644editdlrm
ptrace.h36740644editdlrm
qemu_fw_cfg.h24690644editdlrm
qnx4_fs.h23280644editdlrm
qnxtypes.h6240644editdlrm
qrtr.h8930644editdlrm
quota.h62910644editdlrm
radeonfb.h3600644editdlrm
random.h13700644editdlrm
raw.h3650644editdlrm
rds.h93010644editdlrm
reboot.h13430644editdlrm
reiserfs_fs.h7750644editdlrm
reiserfs_xattr.h5330644editdlrm
resource.h23470644editdlrm
rfkill.h66080644editdlrm
rio_cm_cdev.h32480644editdlrm
rio_mport_cdev.h93300644editdlrm
romfs_fs.h12380644editdlrm
rose.h22320644editdlrm
route.h23320644editdlrm
rpmsg.h5440644editdlrm
rseq.h49040644editdlrm
rtc.h40090644editdlrm
rtnetlink.h202010644editdlrm
rxrpc.h50800644editdlrm
scc.h45970644editdlrm
sched.h27970644editdlrm
scif_ioctl.h63820644editdlrm
screen_info.h24790644editdlrm
sctp.h359940644editdlrm
sdla.h28390644editdlrm
seccomp.h22570644editdlrm
securebits.h27040644editdlrm
sed-opal.h32750644editdlrm
seg6.h11700644editdlrm
seg6_genl.h5890644editdlrm
seg6_hmac.h4230644editdlrm
seg6_iptunnel.h9270644editdlrm
seg6_local.h20600644editdlrm
selinux_netlink.h11950644editdlrm
sem.h30430644editdlrm
serial.h38660644editdlrm
serial_core.h62450644editdlrm
serial_reg.h154960644editdlrm
serio.h20370644editdlrm
sev-guest.h23030644editdlrm
shm.h37850644editdlrm
signal.h3880644editdlrm
signalfd.h12330644editdlrm
smc.h85130644editdlrm
smc_diag.h27280644editdlrm
smiapp.h10580644editdlrm
snmp.h136630644editdlrm
socket.h9010644editdlrm
sockios.h61060644editdlrm
sock_diag.h13010644editdlrm
sonet.h22900644editdlrm
sonypi.h53090644editdlrm
sound.h12370644editdlrm
soundcard.h460380644editdlrm
stat.h63520644editdlrm
stddef.h15320644editdlrm
stm.h12750644editdlrm
string.h2380644editdlrm
suspend_ioctls.h14310644editdlrm
swab.h69210644editdlrm
switchtec_ioctl.h52620644editdlrm
synclink.h89850644editdlrm
sync_file.h28830644editdlrm
sysctl.h258420644editdlrm
sysinfo.h10490644editdlrm
target_core_user.h46330644editdlrm
taskstats.h71800644editdlrm
tcp.h99200644editdlrm
tcp_metrics.h15490644editdlrm
tdx-guest.h13050644editdlrm
tee.h131650644editdlrm
termios.h5060644editdlrm
thermal.h33090644editdlrm
time.h17480644editdlrm
timerfd.h9360644editdlrm
times.h2780644editdlrm
timex.h64030644editdlrm
time_types.h11750644editdlrm
tiocl.h17290644editdlrm
tipc.h88250644editdlrm
tipc_config.h147080644editdlrm
tipc_netlink.h93950644editdlrm
tipc_sockets_diag.h4680644editdlrm
tls.h42880644editdlrm
toshiba.h19300644editdlrm
tty.h15850644editdlrm
tty_flags.h45270644editdlrm
types.h14760644editdlrm
udf_fs_i.h6970644editdlrm
udp.h16610644editdlrm
uhid.h46480644editdlrm
uinput.h92610644editdlrm
uio.h7320644editdlrm
uleds.h7980644editdlrm
ultrasound.h45620644editdlrm
un.h3840644editdlrm
unistd.h2200644editdlrm
unix_diag.h12530644editdlrm
usbdevice_fs.h83170644editdlrm
usbip.h6400644editdlrm
userfaultfd.h77740644editdlrm
userio.h15160644editdlrm
utime.h2150644editdlrm
utsname.h6690644editdlrm
uuid.h13560644editdlrm
uvcvideo.h26350644editdlrm
v4l2-common.h41770644editdlrm
v4l2-controls.h517770644editdlrm
v4l2-dv-timings.h315620644editdlrm
v4l2-mediabus.h51010644editdlrm
v4l2-subdev.h60960644editdlrm
vboxguest.h87290644editdlrm
vbox_err.h72570644editdlrm
vbox_vmmdev_types.h83560644editdlrm
vdpa.h14210644editdlrm
version.h4310644editdlrm
veth.h2240644editdlrm
vfio.h522230644editdlrm
vfio_ccw.h13170644editdlrm
vfio_zdev.h25420644editdlrm
vhost.h64180644editdlrm
vhost_types.h39970644editdlrm
videodev2.h907410644editdlrm
virtio_9p.h20410644editdlrm
virtio_balloon.h52740644editdlrm
virtio_blk.h67970644editdlrm
virtio_bt.h7720644editdlrm
virtio_config.h40050644editdlrm
virtio_console.h31360644editdlrm
virtio_crypto.h138740644editdlrm
virtio_fs.h5720644editdlrm
virtio_gpu.h114540644editdlrm
virtio_ids.h32690644editdlrm
virtio_input.h25060644editdlrm
virtio_iommu.h37830644editdlrm
virtio_mem.h71570644editdlrm
virtio_mmio.h49690644editdlrm
virtio_net.h105490644editdlrm
virtio_pci.h74060644editdlrm
virtio_ring.h74970644editdlrm
virtio_rng.h2650644editdlrm
virtio_scsi.h60350644editdlrm
virtio_snd.h93040644editdlrm
virtio_types.h21530644editdlrm
virtio_vsock.h30860644editdlrm
vmcore.h4310644editdlrm
vm_sockets.h64940644editdlrm
vm_sockets_diag.h9630644editdlrm
vsockmon.h18850644editdlrm
vt.h30590644editdlrm
vtpm_proxy.h17190644editdlrm
wait.h6820644editdlrm
wanrouter.h4530644editdlrm
watchdog.h23350644editdlrm
wimax.h83710644editdlrm
wireless.h427030644editdlrm
wmi.h18860644editdlrm
x25.h35620644editdlrm
xattr.h28600644editdlrm
xdp_diag.h14680644editdlrm
xfrm.h119940644editdlrm
xilinx-v4l2-controls.h29760644editdlrm
zorro.h32960644editdlrm
zorro_ids.h299630644editdlrm
Edit: /usr/include/linux/rds.h (9301B)
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ /* * Copyright (c) 2008 Oracle. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain the above * copyright notice, this list of conditions and the following * disclaimer. * * - Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * */ #ifndef _LINUX_RDS_H #define _LINUX_RDS_H #include #include /* For __kernel_sockaddr_storage. */ #define RDS_IB_ABI_VERSION 0x301 #define SOL_RDS 276 /* * setsockopt/getsockopt for SOL_RDS */ #define RDS_CANCEL_SENT_TO 1 #define RDS_GET_MR 2 #define RDS_FREE_MR 3 /* deprecated: RDS_BARRIER 4 */ #define RDS_RECVERR 5 #define RDS_CONG_MONITOR 6 #define RDS_GET_MR_FOR_DEST 7 #define SO_RDS_TRANSPORT 8 /* Socket option to tap receive path latency * SO_RDS: SO_RDS_MSG_RXPATH_LATENCY * Format used struct rds_rx_trace_so */ #define SO_RDS_MSG_RXPATH_LATENCY 10 /* supported values for SO_RDS_TRANSPORT */ #define RDS_TRANS_IB 0 #define RDS_TRANS_IWARP 1 #define RDS_TRANS_TCP 2 #define RDS_TRANS_COUNT 3 #define RDS_TRANS_NONE (~0) /* * Control message types for SOL_RDS. * * CMSG_RDMA_ARGS (sendmsg) * Request a RDMA transfer to/from the specified * memory ranges. * The cmsg_data is a struct rds_rdma_args. * RDS_CMSG_RDMA_DEST (recvmsg, sendmsg) * Kernel informs application about intended * source/destination of a RDMA transfer * RDS_CMSG_RDMA_MAP (sendmsg) * Application asks kernel to map the given * memory range into a IB MR, and send the * R_Key along in an RDS extension header. * The cmsg_data is a struct rds_get_mr_args, * the same as for the GET_MR setsockopt. * RDS_CMSG_RDMA_STATUS (recvmsg) * Returns the status of a completed RDMA operation. * RDS_CMSG_RXPATH_LATENCY(recvmsg) * Returns rds message latencies in various stages of receive * path in nS. Its set per socket using SO_RDS_MSG_RXPATH_LATENCY * socket option. Legitimate points are defined in * enum rds_message_rxpath_latency. More points can be added in * future. CSMG format is struct rds_cmsg_rx_trace. */ #define RDS_CMSG_RDMA_ARGS 1 #define RDS_CMSG_RDMA_DEST 2 #define RDS_CMSG_RDMA_MAP 3 #define RDS_CMSG_RDMA_STATUS 4 #define RDS_CMSG_CONG_UPDATE 5 #define RDS_CMSG_ATOMIC_FADD 6 #define RDS_CMSG_ATOMIC_CSWP 7 #define RDS_CMSG_MASKED_ATOMIC_FADD 8 #define RDS_CMSG_MASKED_ATOMIC_CSWP 9 #define RDS_CMSG_RXPATH_LATENCY 11 #define RDS_CMSG_ZCOPY_COOKIE 12 #define RDS_CMSG_ZCOPY_COMPLETION 13 #define RDS_INFO_FIRST 10000 #define RDS_INFO_COUNTERS 10000 #define RDS_INFO_CONNECTIONS 10001 /* 10002 aka RDS_INFO_FLOWS is deprecated */ #define RDS_INFO_SEND_MESSAGES 10003 #define RDS_INFO_RETRANS_MESSAGES 10004 #define RDS_INFO_RECV_MESSAGES 10005 #define RDS_INFO_SOCKETS 10006 #define RDS_INFO_TCP_SOCKETS 10007 #define RDS_INFO_IB_CONNECTIONS 10008 #define RDS_INFO_CONNECTION_STATS 10009 #define RDS_INFO_IWARP_CONNECTIONS 10010 #define RDS_INFO_LAST 10010 struct rds_info_counter { __u8 name[32]; __u64 value; } __attribute__((packed)); #define RDS_INFO_CONNECTION_FLAG_SENDING 0x01 #define RDS_INFO_CONNECTION_FLAG_CONNECTING 0x02 #define RDS_INFO_CONNECTION_FLAG_CONNECTED 0x04 #define TRANSNAMSIZ 16 struct rds_info_connection { __u64 next_tx_seq; __u64 next_rx_seq; __be32 laddr; __be32 faddr; __u8 transport[TRANSNAMSIZ]; /* null term ascii */ __u8 flags; } __attribute__((packed)); #define RDS_INFO_MESSAGE_FLAG_ACK 0x01 #define RDS_INFO_MESSAGE_FLAG_FAST_ACK 0x02 struct rds_info_message { __u64 seq; __u32 len; __be32 laddr; __be32 faddr; __be16 lport; __be16 fport; __u8 flags; } __attribute__((packed)); struct rds_info_socket { __u32 sndbuf; __be32 bound_addr; __be32 connected_addr; __be16 bound_port; __be16 connected_port; __u32 rcvbuf; __u64 inum; } __attribute__((packed)); struct rds_info_tcp_socket { __be32 local_addr; __be16 local_port; __be32 peer_addr; __be16 peer_port; __u64 hdr_rem; __u64 data_rem; __u32 last_sent_nxt; __u32 last_expected_una; __u32 last_seen_una; } __attribute__((packed)); #define RDS_IB_GID_LEN 16 struct rds_info_rdma_connection { __be32 src_addr; __be32 dst_addr; __u8 src_gid[RDS_IB_GID_LEN]; __u8 dst_gid[RDS_IB_GID_LEN]; __u32 max_send_wr; __u32 max_recv_wr; __u32 max_send_sge; __u32 rdma_mr_max; __u32 rdma_mr_size; }; /* RDS message Receive Path Latency points */ enum rds_message_rxpath_latency { RDS_MSG_RX_HDR_TO_DGRAM_START = 0, RDS_MSG_RX_DGRAM_REASSEMBLE, RDS_MSG_RX_DGRAM_DELIVERED, RDS_MSG_RX_DGRAM_TRACE_MAX }; struct rds_rx_trace_so { __u8 rx_traces; __u8 rx_trace_pos[RDS_MSG_RX_DGRAM_TRACE_MAX]; }; struct rds_cmsg_rx_trace { __u8 rx_traces; __u8 rx_trace_pos[RDS_MSG_RX_DGRAM_TRACE_MAX]; __u64 rx_trace[RDS_MSG_RX_DGRAM_TRACE_MAX]; }; /* * Congestion monitoring. * Congestion control in RDS happens at the host connection * level by exchanging a bitmap marking congested ports. * By default, a process sleeping in poll() is always woken * up when the congestion map is updated. * With explicit monitoring, an application can have more * fine-grained control. * The application installs a 64bit mask value in the socket, * where each bit corresponds to a group of ports. * When a congestion update arrives, RDS checks the set of * ports that are now uncongested against the list bit mask * installed in the socket, and if they overlap, we queue a * cong_notification on the socket. * * To install the congestion monitor bitmask, use RDS_CONG_MONITOR * with the 64bit mask. * Congestion updates are received via RDS_CMSG_CONG_UPDATE * control messages. * * The correspondence between bits and ports is * 1 << (portnum % 64) */ #define RDS_CONG_MONITOR_SIZE 64 #define RDS_CONG_MONITOR_BIT(port) (((unsigned int) port) % RDS_CONG_MONITOR_SIZE) #define RDS_CONG_MONITOR_MASK(port) (1ULL << RDS_CONG_MONITOR_BIT(port)) /* * RDMA related types */ /* * This encapsulates a remote memory location. * In the current implementation, it contains the R_Key * of the remote memory region, and the offset into it * (so that the application does not have to worry about * alignment). */ typedef __u64 rds_rdma_cookie_t; struct rds_iovec { __u64 addr; __u64 bytes; }; struct rds_get_mr_args { struct rds_iovec vec; __u64 cookie_addr; __u64 flags; }; struct rds_get_mr_for_dest_args { struct __kernel_sockaddr_storage dest_addr; struct rds_iovec vec; __u64 cookie_addr; __u64 flags; }; struct rds_free_mr_args { rds_rdma_cookie_t cookie; __u64 flags; }; struct rds_rdma_args { rds_rdma_cookie_t cookie; struct rds_iovec remote_vec; __u64 local_vec_addr; __u64 nr_local; __u64 flags; __u64 user_token; }; struct rds_atomic_args { rds_rdma_cookie_t cookie; __u64 local_addr; __u64 remote_addr; union { struct { __u64 compare; __u64 swap; } cswp; struct { __u64 add; } fadd; struct { __u64 compare; __u64 swap; __u64 compare_mask; __u64 swap_mask; } m_cswp; struct { __u64 add; __u64 nocarry_mask; } m_fadd; }; __u64 flags; __u64 user_token; }; struct rds_rdma_notify { __u64 user_token; __s32 status; }; #define RDS_RDMA_SUCCESS 0 #define RDS_RDMA_REMOTE_ERROR 1 #define RDS_RDMA_CANCELED 2 #define RDS_RDMA_DROPPED 3 #define RDS_RDMA_OTHER_ERROR 4 #define RDS_MAX_ZCOOKIES 8 struct rds_zcopy_cookies { __u32 num; __u32 cookies[RDS_MAX_ZCOOKIES]; }; /* * Common set of flags for all RDMA related structs */ #define RDS_RDMA_READWRITE 0x0001 #define RDS_RDMA_FENCE 0x0002 /* use FENCE for immediate send */ #define RDS_RDMA_INVALIDATE 0x0004 /* invalidate R_Key after freeing MR */ #define RDS_RDMA_USE_ONCE 0x0008 /* free MR after use */ #define RDS_RDMA_DONTWAIT 0x0010 /* Don't wait in SET_BARRIER */ #define RDS_RDMA_NOTIFY_ME 0x0020 /* Notify when operation completes */ #define RDS_RDMA_SILENT 0x0040 /* Do not interrupt remote */ #endif /* IB_RDS_H */