alistair23-linux/drivers/staging/rdma/hfi1
Ira Weiny e116a64fab IB/hfi: Properly set permissions for user device files
Some of the device files are required to be user accessible for PSM while
most should remain accessible only by root.

Add a parameter to hfi1_cdev_init which controls if the user should have access
to this device which places it in a different class with the appropriate
devnode callback.

In addition set the devnode call back for the existing class to be a bit more
explicit for those permissions.

Finally remove the unnecessary null check before class_destroy

Tested-by: Donald Dutile <ddutile@redhat.com>
Signed-off-by: Haralanov, Mitko (mitko.haralanov@intel.com)
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2015-09-18 11:28:47 -04:00
..
chip.c IB/hfi1: fix a locking bug 2015-09-18 11:28:47 -04:00
chip.h
chip_registers.h IB/hfi1: Add CSRs for CONFIG_SDMA_VERBOSITY 2015-09-03 15:27:45 -04:00
common.h
cq.c
debugfs.c
debugfs.h
device.c IB/hfi: Properly set permissions for user device files 2015-09-18 11:28:47 -04:00
device.h IB/hfi: Properly set permissions for user device files 2015-09-18 11:28:47 -04:00
diag.c IB/hfi: Properly set permissions for user device files 2015-09-18 11:28:47 -04:00
dma.c
driver.c
eprom.c
eprom.h
file_ops.c IB/hfi: Properly set permissions for user device files 2015-09-18 11:28:47 -04:00
firmware.c
hfi.h
init.c
intr.c
iowait.h
Kconfig
keys.c
mad.c IB/hfi1: fix pstateinfo from returning improperly byteswapped value 2015-09-18 11:28:47 -04:00
mad.h
Makefile
mmap.c
mr.c IB/hfi1: Support ib_alloc_mr verb 2015-08-30 18:08:48 -04:00
opa_compat.h
pcie.c
pio.c
pio.h
pio_copy.c
platform_config.h
qp.c
qp.h
qsfp.c
qsfp.h
rc.c
ruc.c
sdma.c IB/hfi1: mask vs shift confusion 2015-09-18 11:28:47 -04:00
sdma.h IB/hfi1: clean up some defines 2015-09-18 11:28:47 -04:00
srq.c
sysfs.c
TODO
trace.c
trace.h
twsi.c
twsi.h
uc.c
ud.c
user_pages.c
user_sdma.c
user_sdma.h
verbs.c IB/hfi1: checking for NULL instead of IS_ERR 2015-09-18 11:28:47 -04:00
verbs.h IB/hfi1: Support ib_alloc_mr verb 2015-08-30 18:08:48 -04:00
verbs_mcast.c