Messages in this thread |  | | | Date | Wed, 18 Nov 1998 07:29:10 -0500 (EST) | | From | Vladimir Dergachev <> | | Subject | Re: 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/
|  |