提交 04ea2f81 编写于 作者: R Roland Dreier

RDMA/ucma: Add .nodename/.mode to tell userspace where to create device node

We want udev to create a device node under /dev/infiniband with
permission 0666 for rdma_cm, so add that info to our struct miscdevice.
Signed-off-by: NRoland Dreier <roland@purestorage.com>
Acked-by: NSean Hefty <sean.hefty@intel.com>
上级 257313b2
......@@ -1338,9 +1338,11 @@ static const struct file_operations ucma_fops = {
};
static struct miscdevice ucma_misc = {
.minor = MISC_DYNAMIC_MINOR,
.name = "rdma_cm",
.fops = &ucma_fops,
.minor = MISC_DYNAMIC_MINOR,
.name = "rdma_cm",
.nodename = "infiniband/rdma_cm",
.mode = 0666,
.fops = &ucma_fops,
};
static ssize_t show_abi_version(struct device *dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册