History

IB/uverbs: Add IDRs array attribute type to ioctl() interface

Methods sometimes need to get a flexible set of IDRs and not a strict set as can be achieved today by the conventional IDR attribute. Add a new IDRS_ARRAY attribute to the generic uverbs ioctl layer. IDRS_ARRAY points to array of idrs of the same object type and same access rights, only write and read are supported.

Guy Levi committed 8 years ago

Commit 70cd20a1 parent e806f934 files · +201 −3Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/rdma/rdma_user_ioctl_cmds.h+5−2
@@ -53,7 +53,7 @@ enum { · 52 unmodified lines
5353
5454 struct ib_uverbs_attr {
5555 __u16 attr_id; /* command specific type attribute */
56− __u16 len; /* only for pointers */
56+ __u16 len; /* only for pointers and IDRs array */
5757 __u16 flags; /* combination of UVERBS_ATTR_F_XXXX */
5858 union {
5959 struct {
@@ -63,7 +63,10 @@ struct ib_uverbs_attr { · 3 unmodified lines
6363 __u16 reserved;
6464 } attr_data;
6565 union {
66− /* Used by PTR_IN/OUT, ENUM_IN and IDR */
66+ /*
67+ * ptr to command, inline data, idr/fd or
68+ * ptr to __u32 array of IDRs
69+ */
6770 __aligned_u64 data;
6871 /* Used by FD_IN and FD_OUT */
6972 __s64 data_s64;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t