lkml.org 
[lkml]   [2004]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][RFC/v1][9/12] Add InfiniBand userspace MAD support
On Mon, Nov 22, 2004 at 06:08:21PM -0800, Roland Dreier wrote:
> Greg> This could be in a sysfs file, right?
>
> Ugh, how does one add an attribute (like the ABI version) to a
> class_simple? It shouldn't be per-device but I don't see anything
> like class_create_file() that could work for class_simple.

class_simple_device_add returns a pointer to a struct class_device *
that you can then use to create a file in sysfs with. That should be
what you're looking for.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.056 / U:0.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site