[lkml]   [2005]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC] Some thoughts on device drivers and sysfs
    On Sun, Mar 27, 2005 at 02:24:59PM -0500, Adam Belay wrote:
    > One of the original design goals of sysfs was to provide a standardized
    > location to keep driver configuration attributes. Although sysfs
    > handles this very well for bus devices and class devices, there isn't
    > currently a method to export attributes for device drivers and their
    > specific bound device instances to userspace.

    Hm, what's device_create_file(), device_remove_file(), and DEVICE_ATTR()
    for? A number of drivers use these functions today to add their own
    driver specific attributes to a device they control.

    Then, userspace can just do a simple:
    ls /sys/bus/pci/drivers/my_foo_driver/
    to see all devices on the PCI bus that are controlled by that driver.
    Then it can go into those directories and cat out the specific
    information if needed.

    Is there something that is lacking in the current code that you would
    like to see present? I don't think that adding another layer on top of
    a device would help out much here.


    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-04-06 13:31    [W:0.023 / U:1.940 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site