Re: [PATCH 3/3] userfaultfd: non-cooperative: allow synchronous EVENT_REMOVE

From
Mike Rapoport <hidden>
Date
2018-02-28 08:26:23
Also in
linux-mm, lkml
Reply to
Pavel Emelyanov, 2018-02-28
On Wed, Feb 28, 2018 at 11:21:02AM +0300, Pavel Emelyanov wrote:
quoted
@@ -52,6 +53,7 @@
 #define _UFFDIO_WAKE			(0x02)
 #define _UFFDIO_COPY			(0x03)
 #define _UFFDIO_ZEROPAGE		(0x04)
+#define _UFFDIO_WAKE_SYNC_EVENT		(0x05)
Excuse my ignorance, but what's the difference between UFFDIO_WAKE and UFFDIO_WAKE_SYNC_EVENT?
UFFDIO_WAKE is used when UFFDIO_COPY/UFFDIO_ZERO page are used with
UFFDIO_*_MODE_DONTWAKE flag set and it presumes 'struct uffdio_range'
argument to the ioctl(). Since waking up a non page fault event requires
different parameters I've add new ioctl to keep backwards compatibility.
 
-- Pavel
-- 
Sincerely yours,
Mike.
Thread (8 messages) 8 messages, 3 authors, last reply 2018-03-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help