Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04ea2f81 authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <roland@purestorage.com>
Acked-by: default avatarSean Hefty <sean.hefty@intel.com>
parent 257313b2
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1340,6 +1340,8 @@ static const struct file_operations ucma_fops = {
static struct miscdevice ucma_misc = {
	.minor		= MISC_DYNAMIC_MINOR,
	.name		= "rdma_cm",
	.nodename	= "infiniband/rdma_cm",
	.mode		= 0666,
	.fops		= &ucma_fops,
};