From: Keith W. <ke...@va...> - 2001-03-13 17:12:47
|
Gareth Hughes wrote: > > Josh Vanderhoof wrote: > > > > I was too vague. You could mprotect() the page after the DMA buffer > > to PROT_NONE and install a SIGSEGV handler that flushes the buffer if > > the SIGSEGV was on the end of the DMA buffer. Then you can just let > > Vertex3f segfault when it uses the buffer up. You would save yourself > > a test and a predicted jump per call. Not much, but it sounds like > > you really want to optimize this. > > Sorry, I get you. You might even be able to do fancy things and catch > this in the kernel module -- that would be neat :-) Save us an ioctl... Now that is kindof neat... Keith |