RDMA/ucma: Add .nodename/.mode to tell userspace where to create device node
Any objection to merging this? Based on
https://bugzilla.redhat.com/show_bug.cgi?id=603264#c1 I think this is the right thing to do these days.
-- 8< ---- snip ----
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 Roland Dreier <[email protected]>
--- drivers/infiniband/core/ucma.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
drivers/infiniband/core/ucma.c +5 -3
@@ -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,
Signature · 6 lines
1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hefty, Sean
Acked-byQuoted 3 lines
Any objection to merging this? Based on
https://bugzilla.redhat.com/show_bug.cgi?id=603264#c1 I think this is the right thing to do these days.
No objection. Thanks.
Acked-by Sean Hefty <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html