public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ben Nizette <ben.nizette@iinet.net.au>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [Fwd: Re: [GIT PATCH] more Driver core patches for 2.6.19]
Date: Fri, 15 Dec 2006 10:21:21 +1100	[thread overview]
Message-ID: <4581DC71.5000503@iinet.net.au> (raw)

Linus Torvalds wrote:
> On Thu, 14 Dec 2006, Thomas Gleixner wrote:
>   
>> The kernel part of the UIO driver also knows how to shut the interrupt
>> up, so where is the difference ?
>>     
>
> Thomas, you've been discussing some totally different and private 
> Thomas-only thread than everybody else in this thread has been.
>
> The point is NO, THE UIO DRIVER DID NOT KNOW THAT AT ALL. Go and read the 
> post that STARTED this whole thread. Go and read the "example driver". 
>
> The example driver was complete crap and drivel. 
>   
OK the example driver was a bad example.  A very bad example.  Writing a
driver with UIO does involve writing _some_ kernel code, just not much.
Some of the kernel code you do have to write is the bit of the interrupt
routine which shuts the device up.  UIO doesn't really move the
interrupt handling to userspace, more it moves the bottom-half work to
userspace.  If you are using UIO, a prerequisite is probably that your
actual interrupt handler code is trivial, all work can be done in this
form of userspace bottom-half.

The example didn't show that, the docco shipped with the UIO patches does.

        Ben.

                 reply	other threads:[~2006-12-14 23:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4581DC71.5000503@iinet.net.au \
    --to=ben.nizette@iinet.net.au \
    --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