lkml.org 
[lkml]   [1999]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: integrity of user-space copy
Date
> When copying data to/from user-space, we know the operation can sleep.  And
> interrupt driven events (including timers) can interrupt even a
> non-sleeping user-space access, right?

Right

> idea because the user-space access might sleep. Should I simply copy the
> data first with interrupts disabled, and then do the transfer?

Set a flag so the IRQ handler knows to punt, or keep two buffers, one copy
one active


-
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:51    [W:0.030 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site