Skip to content

Commit

Permalink
RDMA/ucma: Add .nodename/.mode to tell userspace where to create devi…
Browse files Browse the repository at this point in the history
…ce 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: Roland Dreier <roland@purestorage.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
  • Loading branch information
Roland Dreier committed May 23, 2011
1 parent 257313b commit 04ea2f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/infiniband/core/ucma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 04ea2f8

Please sign in to comment.