From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from swsoft-msk-nat.sw.ru ([195.214.232.10]:46479 "EHLO sandbox" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965385AbbLOR3O (ORCPT ); Tue, 15 Dec 2015 12:29:14 -0500 Subject: [PATCH RFC 2/3] splice: new SPLICE_F_PACKET flag introduced From: Stanislav Kinsburskiy To: linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org Cc: criu@openvz.org, skinsbursky@virtuozzo.com Date: Tue, 15 Dec 2015 21:29:06 +0400 Message-ID: <20151215172906.16355.33329.stgit@localhost.localdomain> In-Reply-To: <20151215172356.16355.29361.stgit@localhost.localdomain> References: <20151215172356.16355.29361.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: This flag is used by kernel only to represent pipe packetized mode for splice engine. Signed-off-by: Stanislav Kinsburskiy --- include/linux/splice.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/splice.h b/include/linux/splice.h index da2751d..13ca14d 100644 --- a/include/linux/splice.h +++ b/include/linux/splice.h @@ -20,6 +20,11 @@ #define SPLICE_F_MORE (0x04) /* expect more data */ #define SPLICE_F_GIFT (0x08) /* pages passed in are a gift */ +#ifdef __KERNEL__ + +#define SPLICE_F_PACKET (0x1000) /* pipe buffers have to be packetized */ + +#endif /* * Passed to the actors */