lkml.org 
[lkml]   [2008]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: question about drivers/infiniband/core/cm.c's kobject usage
On Thu, May 22, 2008 at 02:47:51PM -0700, Sean Hefty wrote:
> >So I was curious, was this done on purpose? If so, why? If not, any
> >objection to me switching it over to be using struct device properly?
>
> It's entirely possible I have this wrong, but the intent is to export some
> infiniband communication management message counters and relate them to the
> corresponding ib_device/port. For example:
>
> /sys/class/infiniband_cm/<device name>/<port number>/<counter group>/<counter>
>
> (E.g. /sys/class/infiniband_cm/mthca0/1/cm_tx_msgs/req)
>
> If there's a better way to handle this, I have no objection to changing it.

Yes, just hang all of the <port number> stuff off of the original
<device name> struct device. That seems like it would be much simpler.

thanks,

greg k-h


\
 
 \ /
  Last update: 2008-05-23 00:03    [W:0.343 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site