mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: Gabriele Brugnoni <news@dveprojects.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: interruptible_sleep_on, interrupts and device drivers
Date: Sat, 15 Oct 2005 12:05:22 +0200	[thread overview]
Message-ID: <1129370722.2908.5.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <200510151200.32148.news@dveprojects.com>

On Sat, 2005-10-15 at 12:00 +0200, Gabriele Brugnoni wrote:
> Hello,
> 
> I'm writing a device driver for a UART to be used to drive a RS485 line. 
> I would use the interruptible_sleep_on function to wait for receiver ready,
> or for the transmitter to finish.

don't.

interruptible_sleep_on() is a broken interface (see the comments in the
header) and should not be used in any new code (where "new" is "since
the year 2000" :)

Just use the wait_event() interfaces .... or just a simple semaphore
even if what you want to do is simple and performance isn't too
critical.



  reply	other threads:[~2005-10-15 10:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-15 10:00 Gabriele Brugnoni
2005-10-15 10:05 ` Arjan van de Ven [this message]
2005-10-15 13:01 ` Tushar Adeshara
2005-10-15 10:29 Gabriele Brugnoni
2005-10-15 10:36 ` Arjan van de Ven
2005-10-15 10:57   ` Russell King
     [not found] <4XQZI-5QC-1@gated-at.bofh.it>
2005-10-15 20:21 ` Robert Hancock

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=1129370722.2908.5.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=news@dveprojects.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®