diff options
author | Roland Dreier <roland@purestorage.com> | 2011-05-23 13:48:43 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-05-23 13:48:43 -0400 |
commit | 04ea2f81973f55db715bfdac7dd258f8a8485a6d (patch) | |
tree | f8f0bf76fc9e7e409dc26b088e1263603556dcb1 /drivers/infiniband | |
parent | 257313b2a87795e07a0bdf58d0fffbdba8b31051 (diff) |
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/ucma.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index b3fa798525b2..3170899dab01 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c | |||
@@ -1338,9 +1338,11 @@ static const struct file_operations ucma_fops = { | |||
1338 | }; | 1338 | }; |
1339 | 1339 | ||
1340 | static struct miscdevice ucma_misc = { | 1340 | static struct miscdevice ucma_misc = { |
1341 | .minor = MISC_DYNAMIC_MINOR, | 1341 | .minor = MISC_DYNAMIC_MINOR, |
1342 | .name = "rdma_cm", | 1342 | .name = "rdma_cm", |
1343 | .fops = &ucma_fops, | 1343 | .nodename = "infiniband/rdma_cm", |
1344 | .mode = 0666, | ||
1345 | .fops = &ucma_fops, | ||
1344 | }; | 1346 | }; |
1345 | 1347 | ||
1346 | static ssize_t show_abi_version(struct device *dev, | 1348 | static ssize_t show_abi_version(struct device *dev, |