summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib_wc_ppc64.c
diff options
context:
space:
mode:
authorRalph Campbell2010-05-07 02:03:25 +0200
committerRoland Dreier2010-05-21 19:34:44 +0200
commit9a6edb60ec10d86b1025a0cdad68fd89f1ddaf02 (patch)
tree8727118d511e8336f038e618cfc6d4aa6b73aaaf /drivers/infiniband/hw/qib/qib_wc_ppc64.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto... (diff)
downloadkernel-qcow2-linux-9a6edb60ec10d86b1025a0cdad68fd89f1ddaf02.tar.gz
kernel-qcow2-linux-9a6edb60ec10d86b1025a0cdad68fd89f1ddaf02.tar.xz
kernel-qcow2-linux-9a6edb60ec10d86b1025a0cdad68fd89f1ddaf02.zip
IB/core: Allow device-specific per-port sysfs files
Add a new parameter to ib_register_device() so that low-level device drivers can pass in a pointer to a callback function that will be called for each port that is registered in sysfs. This allows low-level device drivers to create files in /sys/class/infiniband/<hca>/ports/<N>/ without having to poke through the internals of the RDMA sysfs handling. There is no need for an unregister function since the kobject reference will go to zero when ib_unregister_device() is called. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_wc_ppc64.c')
0 files changed, 0 insertions, 0 deletions