All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manfred Spraul <manfred@colorfullife.com>
To: Christian Vogel <chris@obelix.hedonism.cx>
Cc: linux-kernel@vger.kernel.org
Subject: [Newbie] Interrupt Handling and sleep/wake_up
Date: Sat, 22 Sep 2001 14:26:45 +0200	[thread overview]
Message-ID: <3BAC8385.BFA35D19@colorfullife.com> (raw)

> void bdDoSomething(){
>         setup_buffers_for_interrupt_routing();
>         tell_board_to_start_reading_or_writing();
>         /***** BOARD THROWS ITS INTERRUPTS HERE!!! *****/
>         interruptible_sleep_on_timeout(&irq_wqueue,PCIIA_SLEEP_TIMEOUT);
> }
> 
Just do not use sleep_on, use wait_event or a manual wait loop.

check the mouse driver sample from Alan Cox:
	linux/Documentation/DocBook/mousedriver.tmpl

The document is slightly outdated:

* do not access current->state directly, use set_current_state.
* do not use MOD_INC_USE_COUNT, set module->owner to THIS_MODULE
instead.

--
	Manfred

             reply	other threads:[~2001-09-22 12:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-22 12:26 Manfred Spraul [this message]
2001-09-22 16:12 ` [Newbie] Interrupt Handling and sleep/wake_up Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2001-09-22 11:19 Christian Vogel

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=3BAC8385.BFA35D19@colorfullife.com \
    --to=manfred@colorfullife.com \
    --cc=chris@obelix.hedonism.cx \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.