[RFC -next 01/10] splice: Add ubuf_info to prepare for ZC

Joe Damato
2025-03-19T00:15:38Z

Update struct splice_desc to include ubuf_info to prepare splice for
zero copy notifications.

Signed-off-by: Joe Damato <jdamato@fastly.com>
---
include/linux/splice.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/splice.h b/include/linux/splice.h
index 9dec4861d09f..7477df3916e2 100644
--- a/include/linux/splice.h
+++ b/include/linux/splice.h
@@ -10,6 +10,7 @@
#define SPLICE_H

#include <linux/pipe_fs_i.h>
+#include <linux/skbuff.h>

/*
* Flags passed in from splice/tee/vmsplice
@@ -43,6 +44,7 @@ struct splice_desc {
loff_t *opos; /* sendfile: output position */
size_t num_spliced; /* number of bytes already spliced */
bool need_wakeup; /* need to wake up writer */
+ struct ubuf_info *ubuf_info; /* zerocopy infrastructure */
};

struct partial_page {
--
2.43.0