public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: rread@datarithm.net
To: Brett Smith <brett.smith@bktech.com>
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: installing an ISR from user code
Date: Mon, 30 Oct 2000 11:06:59 -0800	[thread overview]
Message-ID: <20001030110659.A26335@datarithm.net> (raw)
In-Reply-To: <39FDAE74.2AED0C74@bktech.com>
In-Reply-To: <39FDAE74.2AED0C74@bktech.com>; from brett.smith@bktech.com on Mon, Oct 30, 2000 at 12:23:00PM -0500

I'm new at this myself, but how about creating a minor number for each
ISR?  When the BH runs, it wakes up the processing waiting on the
device for that ISR.  The user code opens as whatever devices it's
interested in and waits for interrupts using select.


robert

* Brett Smith (brett.smith@bktech.com) [001030 09:25]:
> 
> We have written a char driver for our proprietary h/w.  This driver
> handles a
> multitude of interrupts from the h/w in the following fashion:  The ISR
> reads/saves the status register (indication of which int was hit) in
> global, and the marks the BH to run.  The BH uses the global to call one
> of 32 "ISRs" (an array of func ptrs).  I would like to be able to
> install an "ISR" dynamically from user code (the module has already been
> installed).  Is this possible?
> 
> If it is possible, how does the build/link work?
> 
> thanks,
> brett.smith@bktech.com
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-10-30 19:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-30 17:23 installing an ISR from user code Brett Smith
2000-10-30 19:06 ` rread [this message]
2000-10-30 19:12   ` Tim Waugh
2000-10-30 20:03     ` Richard B. Johnson
2000-10-30 19:35 ` Anton Altaparmakov

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=20001030110659.A26335@datarithm.net \
    --to=rread@datarithm.net \
    --cc=brett.smith@bktech.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox