From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161191AbWJDLTh (ORCPT ); Wed, 4 Oct 2006 07:19:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161199AbWJDLTh (ORCPT ); Wed, 4 Oct 2006 07:19:37 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:22490 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S1161191AbWJDLTh (ORCPT ); Wed, 4 Oct 2006 07:19:37 -0400 Date: Wed, 4 Oct 2006 13:19:33 +0200 From: Pavel Machek To: Oliver Neukum Cc: linux-kernel@vger.kernel.org Subject: Re: error to be returned while suspended Message-ID: <20061004111933.GA8297@elf.ucw.cz> References: <200610031323.00547.oliver@neukum.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200610031323.00547.oliver@neukum.org> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.11+cvs20060126 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2006-10-03 13:23:00, Oliver Neukum wrote: > Hi, > > which error should a character device return if a read/write cannot be > serviced because the device is suspended? Shouldn't there be an error > code specific to that? If you are talking system suspend, then userspace should not run while devices are suspended. If you are talking runtime suspend, you should probably just wake the device up on first access. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html