This ioctl request reads from uffdio_continue structure written by userspace which justifies _IOC_WRITE flag. It also writes back to that structure which justifies _IOC_READ flag. See NOTEs in include/uapi/asm-generic/ioctl.h for more information.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -80,8 +80,8 @@ · 79 unmodified lines | |||
| 80 | struct uffdio_zeropage) | 80 | struct uffdio_zeropage) |
| 81 | #define UFFDIO_WRITEPROTECT _IOWR(UFFDIO, _UFFDIO_WRITEPROTECT, \ | 81 | #define UFFDIO_WRITEPROTECT _IOWR(UFFDIO, _UFFDIO_WRITEPROTECT, \ |
| 82 | struct uffdio_writeprotect) | 82 | struct uffdio_writeprotect) |
| 83 | #define UFFDIO_CONTINUE _IOR(UFFDIO, _UFFDIO_CONTINUE, \ | 83 | #define UFFDIO_CONTINUE _IOWR(UFFDIO, _UFFDIO_CONTINUE, \ |
| 84 | struct uffdio_continue) | 84 | struct uffdio_continue) |
| 85 | 85 | ||
| 86 | /* read() structure */ | 86 | /* read() structure */ |
| 87 | struct uffd_msg { | 87 | struct uffd_msg { |