Re: [linux-usb-devel] error to be returned while suspended
- From: Oliver Neukum <oliver@xxxxxxxxxx>
- Date: Thu, 5 Oct 2006 18:35:21 +0200
Am Donnerstag, 5. Oktober 2006 18:21 schrieb Alan Stern:
Currently we don't have any userspace APIs for such a daemon to use. The
only existing API is deprecated and will go away soon.
I trust it'll be replaced.
Current thinking is that a driver will suspend its device whenever the
device isn't in use. With usblp, that would be whenever the device file
isn't open. See the example code in usb-skeleton.c.
In the general case the idea seems insufficient. If I close my laptop's lid
I want all input devices suspended, whether the corresponding files are
opened or not. In fact, if I have port level power control I might even
want to cut power to them.
Regards
Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [linux-usb-devel] error to be returned while suspended
- From: Pavel Machek
- Re: [linux-usb-devel] error to be returned while suspended
- From: Alan Stern
- Re: [linux-usb-devel] error to be returned while suspended
- References:
- Re: [linux-usb-devel] error to be returned while suspended
- From: Alan Stern
- Re: [linux-usb-devel] error to be returned while suspended
- Prev by Date: [PATCH 2.6.19-rc1 V9] drivers: add LCD support
- Next by Date: Re: 2.6.19-rc1: kexec broken on x86_64
- Previous by thread: Re: [linux-usb-devel] error to be returned while suspended
- Next by thread: Re: [linux-usb-devel] error to be returned while suspended
- Index(es):