Re: No user space access during irq?

Alexander Viro (viro@math.psu.edu)
Mon, 8 Feb 1999 04:18:11 -0500 (EST)


On Mon, 8 Feb 1999, Till Harbaum wrote:

> Hi all!
>
> I just encountered a problem while trying to use
> put_user and memcpy_tofs while handling an interrrupt
> in 2.0.x .
>
> The idea behind this is fast IO. The user creates some
> buffer space and the kernel routine fills it
> directly from hardware to user space. Unfortunately
> the machine just crashes. Am i not allowed to use the
> above functions in an interrupt?

Interrupt may happen during the timeslice of another process. put_user
refers to the given address in the address space of *current* process.

-
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/