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: Roland Dreier <roland@purestorage.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
This commit is contained in:
Roland Dreier 2011-05-23 10:48:43 -07:00
parent 257313b2a8
commit 04ea2f8197

View file

@ -1340,6 +1340,8 @@ static const struct file_operations ucma_fops = {
static struct miscdevice ucma_misc = { static struct miscdevice ucma_misc = {
.minor = MISC_DYNAMIC_MINOR, .minor = MISC_DYNAMIC_MINOR,
.name = "rdma_cm", .name = "rdma_cm",
.nodename = "infiniband/rdma_cm",
.mode = 0666,
.fops = &ucma_fops, .fops = &ucma_fops,
}; };