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
53 53
54struct ib_uverbs_attr {54struct ib_uverbs_attr {
55 __u16 attr_id; /* command specific type attribute */55 __u16 attr_id; /* command specific type attribute */
56 __u16 len; /* only for pointers */56 __u16 len; /* only for pointers and IDRs array */
57 __u16 flags; /* combination of UVERBS_ATTR_F_XXXX */57 __u16 flags; /* combination of UVERBS_ATTR_F_XXXX */
58 union {58 union {
59 struct {59 struct {
@@ -63,7 +63,10 @@ struct ib_uverbs_attr { · 3 unmodified lines
63 __u16 reserved;63 __u16 reserved;
64 } attr_data;64 } attr_data;
65 union {65 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 */
67 __aligned_u64 data;70 __aligned_u64 data;
68 /* Used by FD_IN and FD_OUT */71 /* Used by FD_IN and FD_OUT */
69 __s64 data_s64;72 __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