From: Ralph Campbell Date: Fri, 7 May 2010 00:03:25 +0000 (-0700) Subject: IB/core: Allow device-specific per-port sysfs files X-Git-Tag: v2.6.35-rc1~265^2^5~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a6edb60ec10d86b1025a0cdad68fd89f1ddaf02;p=pandora-kernel.git 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//ports// 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed