History

RDMA/core: Move legacy MAD IOCTL declarations to common file

Move legacy MAD IOCTL declarations to rdma_user_ioctl.h file.

Leon Romanovsky committed 10 years ago

Commit 06393bc1 parent 843debb2 files · +11 −10Browse files

Unified · Split

2 files
  1. include/uapi/rdma/ib_user_mad.h +0 −10
  2. include/uapi/rdma/rdma_user_ioctl.h +11 −0
include/uapi/rdma/ib_user_mad.h+0−10
@@ -230,14 +230,4 @@ struct ib_user_mad_reg_req2 { · 229 unmodified lines
230 __u8 reserved[3];230 __u8 reserved[3];
231};231};
232 232
233#define IB_USER_MAD_REGISTER_AGENT _IOWR(IB_IOCTL_MAGIC, 1, \
234 struct ib_user_mad_reg_req)
235
236#define IB_USER_MAD_UNREGISTER_AGENT _IOW(IB_IOCTL_MAGIC, 2, __u32)
237
238#define IB_USER_MAD_ENABLE_PKEY _IO(IB_IOCTL_MAGIC, 3)
239
240#define IB_USER_MAD_REGISTER_AGENT2 _IOWR(IB_IOCTL_MAGIC, 4, \
241 struct ib_user_mad_reg_req2)
242
243#endif /* IB_USER_MAD_H */233#endif /* IB_USER_MAD_H */
include/uapi/rdma/rdma_user_ioctl.h+11−0
@@ -35,9 +35,20 @@ · 34 unmodified lines
35 35
36#include <linux/types.h>36#include <linux/types.h>
37#include <linux/ioctl.h>37#include <linux/ioctl.h>
38#include <rdma/ib_user_mad.h>
38 39
39/* Documentation/ioctl/ioctl-number.txt */40/* Documentation/ioctl/ioctl-number.txt */
40#define RDMA_IOCTL_MAGIC 0x1b41#define RDMA_IOCTL_MAGIC 0x1b
41#define IB_IOCTL_MAGIC RDMA_IOCTL_MAGIC42#define IB_IOCTL_MAGIC RDMA_IOCTL_MAGIC
42 43
44#define IB_USER_MAD_REGISTER_AGENT _IOWR(IB_IOCTL_MAGIC, 1, \
45 struct ib_user_mad_reg_req)
46
47#define IB_USER_MAD_UNREGISTER_AGENT _IOW(IB_IOCTL_MAGIC, 2, __u32)
48
49#define IB_USER_MAD_ENABLE_PKEY _IO(IB_IOCTL_MAGIC, 3)
50
51#define IB_USER_MAD_REGISTER_AGENT2 _IOWR(IB_IOCTL_MAGIC, 4, \
52 struct ib_user_mad_reg_req2)
53
43#endif /* RDMA_USER_IOCTL_H */54#endif /* RDMA_USER_IOCTL_H */

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