瀏覽代碼

splice: add void cookie to the actor data

We need that for passing driver private info.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Jens Axboe 18 年之前
父節點
當前提交
130610d6f6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/linux/pipe_fs_i.h

+ 1 - 0
include/linux/pipe_fs_i.h

@@ -94,6 +94,7 @@ struct splice_desc {
 	union {
 		void __user *userptr;	/* memory to write to */
 		struct file *file;	/* file to read/write */
+		void *data;		/* cookie */
 	} u;
 	loff_t pos;			/* file position */
 };