aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/rdma_core.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-11-25 20:51:13 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-11-26 16:48:07 -0700
commit8313c10fa8be032fccc1e757bccc21207f533127 (patch)
tree83df5841953b27023aa65ab8a6b5ed790dba5765 /drivers/infiniband/core/rdma_core.h
parentRDMA/uverbs: Add missing driver_data (diff)
downloadlinux-dev-8313c10fa8be032fccc1e757bccc21207f533127.tar.xz
linux-dev-8313c10fa8be032fccc1e757bccc21207f533127.zip
RDMA/uverbs: Replace ib_uverbs_file with uverbs_attr_bundle for write
Now that we can add meta-data to the description of write() methods we need to pass the uverbs_attr_bundle into all write based handlers so future patches can use it as a container for any new data transferred out of the core. This is the first step to bringing the write() and ioctl() methods to a common interface signature. This is a simple search/replace, and we push the attr down into the uobj and other APIs to keep changes minimal. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/rdma_core.h')
-rw-r--r--drivers/infiniband/core/rdma_core.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/core/rdma_core.h b/drivers/infiniband/core/rdma_core.h
index f9039cfb28b4..edd299174d95 100644
--- a/drivers/infiniband/core/rdma_core.h
+++ b/drivers/infiniband/core/rdma_core.h
@@ -137,10 +137,10 @@ struct uverbs_api_ioctl_method {
};
struct uverbs_api_write_method {
- ssize_t (*handler)(struct ib_uverbs_file *file, const char __user *buf,
- int in_len, int out_len);
- int (*handler_ex)(struct ib_uverbs_file *file, struct ib_udata *ucore,
- struct ib_udata *uhw);
+ ssize_t (*handler)(struct uverbs_attr_bundle *attrs,
+ const char __user *buf, int in_len, int out_len);
+ int (*handler_ex)(struct uverbs_attr_bundle *attrs,
+ struct ib_udata *ucore, struct ib_udata *uhw);
u8 disabled:1;
u8 is_ex:1;
};