mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>,
	"Larson, Greg" <GLarson@analogic.com>
Subject: Re: Driver timeout
Date: Fri, 28 Jul 2006 17:55:32 +0100	[thread overview]
Message-ID: <1154105732.13509.157.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.61.0607281152030.5161@chaos.analogic.com>

Ar Gwe, 2006-07-28 am 11:54 -0400, ysgrifennodd linux-os (Dick Johnson):
> 
> Hello list,
> What is the correct error code for a driver to return if
> the requested operation timed out?

If the operation is blocking then 
	ETIMEDOUT - if a timeout occurred
	
possibly also
	ETIME	  - if a timer of some kind expired

If you know why it timed out you may want to return that instead to
provide more information (eg the net code returns things like 'Host
down')



  parent reply	other threads:[~2006-07-28 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-28 15:54 linux-os (Dick Johnson)
2006-07-28 16:40 ` Jan Engelhardt
2006-07-28 16:55 ` Alan Cox [this message]
2006-07-28 17:06   ` linux-os (Dick Johnson)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1154105732.13509.157.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=GLarson@analogic.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®