Re: [PATCH 4/4] ACPI / PM: Expose lists of device power resources to user space

2013-01-23 Thread Rafael J. Wysocki
On Tuesday, January 22, 2013 05:05:50 PM Greg Kroah-Hartman wrote: > On Wed, Jan 23, 2013 at 01:28:40AM +0100, Rafael J. Wysocki wrote: > > On Wednesday, January 23, 2013 01:17:47 AM Rafael J. Wysocki wrote: > > > On Wednesday, January 23, 2013 01:08:54 AM Rafael J. Wysocki wrote: > > > > On Tuesda

Re: [PATCH 4/4] ACPI / PM: Expose lists of device power resources to user space

2013-01-23 Thread Rafael J. Wysocki
On Tuesday, January 22, 2013 05:03:59 PM Greg Kroah-Hartman wrote: > On Wed, Jan 23, 2013 at 01:17:47AM +0100, Rafael J. Wysocki wrote: > > On Wednesday, January 23, 2013 01:08:54 AM Rafael J. Wysocki wrote: > > > On Tuesday, January 22, 2013 03:56:24 PM Greg Kroah-Hartman wrote: > > > > On Tue, Ja

Re: [PATCH 4/4] ACPI / PM: Expose lists of device power resources to user space

2013-01-22 Thread Greg Kroah-Hartman
On Wed, Jan 23, 2013 at 01:28:40AM +0100, Rafael J. Wysocki wrote: > On Wednesday, January 23, 2013 01:17:47 AM Rafael J. Wysocki wrote: > > On Wednesday, January 23, 2013 01:08:54 AM Rafael J. Wysocki wrote: > > > On Tuesday, January 22, 2013 03:56:24 PM Greg Kroah-Hartman wrote: > > > > On Tue, J

Re: [PATCH 4/4] ACPI / PM: Expose lists of device power resources to user space

2013-01-22 Thread Greg Kroah-Hartman
On Wed, Jan 23, 2013 at 01:17:47AM +0100, Rafael J. Wysocki wrote: > On Wednesday, January 23, 2013 01:08:54 AM Rafael J. Wysocki wrote: > > On Tuesday, January 22, 2013 03:56:24 PM Greg Kroah-Hartman wrote: > > > On Tue, Jan 22, 2013 at 03:28:23AM +0100, Rafael J. Wysocki wrote: > > [...] > > >

Re: [PATCH 4/4] ACPI / PM: Expose lists of device power resources to user space

2013-01-22 Thread Rafael J. Wysocki
On Wednesday, January 23, 2013 01:17:47 AM Rafael J. Wysocki wrote: > On Wednesday, January 23, 2013 01:08:54 AM Rafael J. Wysocki wrote: > > On Tuesday, January 22, 2013 03:56:24 PM Greg Kroah-Hartman wrote: > > > On Tue, Jan 22, 2013 at 03:28:23AM +0100, Rafael J. Wysocki wrote: > > [...] > > >

Re: [PATCH 4/4] ACPI / PM: Expose lists of device power resources to user space

2013-01-22 Thread Rafael J. Wysocki
On Wednesday, January 23, 2013 01:08:54 AM Rafael J. Wysocki wrote: > On Tuesday, January 22, 2013 03:56:24 PM Greg Kroah-Hartman wrote: > > On Tue, Jan 22, 2013 at 03:28:23AM +0100, Rafael J. Wysocki wrote: [...] > > Oh, and same question about racing userspace, you will have problems > > here i

Re: [PATCH 4/4] ACPI / PM: Expose lists of device power resources to user space

2013-01-22 Thread Rafael J. Wysocki
On Tuesday, January 22, 2013 03:56:24 PM Greg Kroah-Hartman wrote: > On Tue, Jan 22, 2013 at 03:28:23AM +0100, Rafael J. Wysocki wrote: > > +static struct attribute *attrs[] = { > > + NULL, > > +}; > > That's "odd"... Well, I don't really need file attributes here (at least at the moment), but

Re: [PATCH 4/4] ACPI / PM: Expose lists of device power resources to user space

2013-01-22 Thread Greg Kroah-Hartman
On Tue, Jan 22, 2013 at 03:28:23AM +0100, Rafael J. Wysocki wrote: > +static struct attribute *attrs[] = { > + NULL, > +}; That's "odd"... > +static void acpi_power_hide_list(struct acpi_device *adev, > + struct acpi_device_power_state *ps, > +