1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef RDMA_USER_IOCTL_CMDS_H 8 #define RDMA_USER_IOCTL_CMDS_H 9 #include <linux/types.h> 10 #include <linux/ioctl.h> 11 #define RDMA_IOCTL_MAGIC 0x1b 12 #define RDMA_VERBS_IOCTL _IOWR(RDMA_IOCTL_MAGIC, 1, struct ib_uverbs_ioctl_hdr) 13 enum { 14 UVERBS_ATTR_F_MANDATORY = 1U << 0, 15 UVERBS_ATTR_F_VALID_OUTPUT = 1U << 1, 16 }; 17 struct ib_uverbs_attr { 18 __u16 attr_id; 19 __u16 len; 20 __u16 flags; 21 union { 22 struct { 23 __u8 elem_id; 24 __u8 reserved; 25 } enum_data; 26 __u16 reserved; 27 } attr_data; 28 union { 29 __aligned_u64 data; 30 __s64 data_s64; 31 }; 32 }; 33 struct ib_uverbs_ioctl_hdr { 34 __u16 length; 35 __u16 object_id; 36 __u16 method_id; 37 __u16 num_attrs; 38 __aligned_u64 reserved1; 39 __u32 driver_id; 40 __u32 reserved2; 41 struct ib_uverbs_attr attrs[]; 42 }; 43 #endif 44