Re: [linux-pm] Re: [RFC] Some thoughts on device drivers and sysfs

2005-03-28 Thread Dmitry Torokhov
On Tuesday 29 March 2005 00:03, Greg KH wrote: > 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 a

Re: [RFC] Some thoughts on device drivers and sysfs

2005-03-28 Thread Greg KH
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 e

Re: [RFC] Some thoughts on device drivers and sysfs

2005-03-27 Thread Arioch
Adam Belay пишет: I would like to propose that we create a new type of device that would act as the layer between physical (bus devices) and logical (class devices). why not using D-BUS to allow lowlevel drivers to expose its features to userspace? - To unsubscribe from this list: send the line

Re: [RFC] Some thoughts on device drivers and sysfs

2005-03-27 Thread Adam Belay
On Sun, 2005-03-27 at 23:43 +0200, Dominik Brodowski wrote: > On Sun, Mar 27, 2005 at 04:27:24PM -0500, Adam Belay wrote: > > > extern int device_create_file(struct device *device, struct > > > device_attribute > > > * entry); > > > and delete them (e.g. in ->remove) using > > > extern void device

Re: [RFC] Some thoughts on device drivers and sysfs

2005-03-27 Thread Dominik Brodowski
On Sun, Mar 27, 2005 at 04:27:24PM -0500, Adam Belay wrote: > > extern int device_create_file(struct device *device, struct device_attribute > > * entry); > > and delete them (e.g. in ->remove) using > > extern void device_remove_file(struct device * dev, struct device_attribute > > * attr); > > >

Re: [RFC] Some thoughts on device drivers and sysfs

2005-03-27 Thread Adam Belay
On Sun, 2005-03-27 at 23:08 +0200, Dominik Brodowski wrote: > 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

Re: [RFC] Some thoughts on device drivers and sysfs

2005-03-27 Thread Jon Smirl
On Sun, 27 Mar 2005 14:24:59 -0500, Adam Belay <[EMAIL PROTECTED]> wrote: > This would allow us to represent per-device driver attributes in sysfs. > As an added benefit, driver devices would allow the tracking and control > of driver state, which may be needed for dynamic power management. I > lo

Re: [RFC] Some thoughts on device drivers and sysfs

2005-03-27 Thread Dominik Brodowski
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 e

[RFC] Some thoughts on device drivers and sysfs

2005-03-27 Thread Adam Belay
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