lkml.org 
[lkml]   [2006]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[Fwd: Re: [GIT PATCH] more Driver core patches for 2.6.19]
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-12-15 00:23    [W:0.024 / U:8.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site