[lkml]   [2004]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: patch for sysfs in the cyclades driver
    On Thu, Nov 04, 2004 at 09:40:21AM -0800, Roland Dreier wrote:
    > Marcelo> ------ Greg answer was:
    > Greg> For a driver only attribute, you want them to show up in the
    > Greg> place for the driver (like under
    > Greg> /sys/bus/pci/driver/MY_FOO_DRIVER/). To do that use the
    > Greg> DRIVER_ATTR() and the driver_add_file() functions. For
    > Greg> examples, see the other drivers that use these functions.
    > I think Greg may have misunderstood the question and told you how to
    > expose per-driver attributes. But I think the attributes you want
    > really are per-device and should be attached to the class_device, not
    > the driver.

    Heh, yes. Per-driver attributes go in the driver's directory. Per port
    attributes go in the port's directory. Simple as that :)


    greg k-h
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:07    [W:0.022 / U:120.624 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site