lkml.org 
[lkml]   [1998]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateWed, 18 Nov 1998 07:29:10 -0500 (EST)
FromVladimir Dergachev <>
SubjectRe: Question about linux drivers


On Tue, 17 Nov 1998, Paul Barton-Davis wrote:

> I wrote:
> >> whereas I think the questioner wanted:
> >>
> >> tell_scheduler_that_i_do_not_really_matter ();
> >> while (!done_computing) {
> >> compute();
> >> }
> >>
>
> Vladimir responded:
>
> >i'd say that the second piece of code is just a userspace program.
> >Right ?
>
> Well, normally, yes, but if its tickling device registers and it
> doesn't run as root (no ioperm/iopl access), and for sure if it does
> DMA or accesses device memory, then no. Maybe I should have used more
> suitable name than "compute()" :)
Well yes, but what about writing an interface and then doing everything in
ioctl's ? I.e. the module part only does the requests (dma, accessing
registers) and the userspace part everything else.

Vladimir Dergachev


>
> --p
>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [from the cache]
©2003-2010