ublk: support user copy
[linux-block.git] / include / uapi / linux / ublk_cmd.h
index c0c1632c671e51de32674b94fe8a28ce3d6b7bb2..54b5b0aeefca0c3360efd2093f6417d363b94b37 100644 (file)
 /* use ioctl encoding for uring command */
 #define UBLK_F_CMD_IOCTL_ENCODE        (1UL << 6)
 
+/* Copy between request and user buffer by pread()/pwrite() */
+#define UBLK_F_USER_COPY       (1UL << 7)
+
 /* device state */
 #define UBLK_S_DEV_DEAD        0
 #define UBLK_S_DEV_LIVE        1