File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,15 @@ struct iov_iter {
82
82
};
83
83
};
84
84
85
+ typedef __u16 uio_meta_flags_t ;
86
+
87
+ struct uio_meta {
88
+ uio_meta_flags_t flags ;
89
+ u16 app_tag ;
90
+ u64 seed ;
91
+ struct iov_iter iter ;
92
+ };
93
+
85
94
static inline const struct iovec * iter_iov (const struct iov_iter * iter )
86
95
{
87
96
if (iter -> iter_type == ITER_UBUF )
Original file line number Diff line number Diff line change 40
40
#define BLOCK_SIZE_BITS 10
41
41
#define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
42
42
43
+ /* flags for integrity meta */
44
+ #define IO_INTEGRITY_CHK_GUARD (1U << 0) /* enforce guard check */
45
+ #define IO_INTEGRITY_CHK_REFTAG (1U << 1) /* enforce ref check */
46
+ #define IO_INTEGRITY_CHK_APPTAG (1U << 2) /* enforce app check */
47
+
48
+ #define IO_INTEGRITY_VALID_FLAGS (IO_INTEGRITY_CHK_GUARD | \
49
+ IO_INTEGRITY_CHK_REFTAG | \
50
+ IO_INTEGRITY_CHK_APPTAG)
51
+
43
52
#define SEEK_SET 0 /* seek relative to beginning of file */
44
53
#define SEEK_CUR 1 /* seek relative to current file position */
45
54
#define SEEK_END 2 /* seek relative to end of file */
You can’t perform that action at this time.
0 commit comments