aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/core_priv.h
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2019-02-13 19:23:06 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-02-15 21:57:14 -0700
commit5f8f5499005c51656645a011bca81ffb66fcaaca (patch)
tree7cbe87ad40981de4ff096a28d912dc463b90c03c /drivers/infiniband/core/core_priv.h
parentRDMA/core: Introduce and use ib_setup_port_attrs() (diff)
downloadlinux-dev-5f8f5499005c51656645a011bca81ffb66fcaaca.tar.xz
linux-dev-5f8f5499005c51656645a011bca81ffb66fcaaca.zip
RDMA/core: Move device addition deletion to device.c
Move core device addition and removal from sysfs.c to device.c as device.c is more appropriate place for device management. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/core/core_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/core_priv.h b/drivers/infiniband/core/core_priv.h
index a1826f4c2e23..eeabe9ca8427 100644
--- a/drivers/infiniband/core/core_priv.h
+++ b/drivers/infiniband/core/core_priv.h
@@ -54,6 +54,8 @@ struct pkey_index_qp_list {
struct list_head qp_list;
};
+extern const struct attribute_group ib_dev_attr_group;
+
int ib_device_register_sysfs(struct ib_device *device);
void ib_device_unregister_sysfs(struct ib_device *device);
int ib_device_rename(struct ib_device *ibdev, const char *name);