Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6492267ybi; Wed, 5 Jun 2019 01:41:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1e0RhPFZnVPdhdRJQEL6ny7LchKxIIgu5B1hNFpjJa3ltAKgRvtExmpq0yUpTt2Bdtno+ X-Received: by 2002:a63:50a:: with SMTP id 10mr2939625pgf.213.1559724064237; Wed, 05 Jun 2019 01:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559724064; cv=none; d=google.com; s=arc-20160816; b=lInz8qG17IVGvkM086viDqTvJ5wPeH+xSFecRZ5LsdIZZarhEylL3ttdxsIKtNg9bp lAfgLyYcgKHdgBLG566sExXlhuJ87axzB/zgupWUljysXm6yAp3hzDrBcwxqKqNSG0cH gniUDATDoXVRzpEkig7VRDjTjqzx+P3snLR9dxQshcC7sAIXjgit77vHH77x/e0nqv4Z yhDUrUUMfZ8hNvH3WPzh9uzNaYnMKp9JE8BV2qlKOdTI1A/WABR/flgcFZDX00bMxJpd 9A3IDb4QqUJdHvpn/nQwGo48RL4XeLHdQLrPUc5Qd47RqfAW0s2sJiiO9YTxPEUjDRnY +uww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:cc:to:from :dkim-signature; bh=a1ZtZPMYFe+z3Jl//HdGBs6N7u+N8X5saYmrcSt4sM8=; b=QLXb/JuwA8UXDA9x95kHDvB2XMXGeY8IN/aMx3e/JBUnA7Xr+oUD/otUZ+czX+fayr z5Kx8b9sDyjvtWiyd7rbUd8eYNDFexysBFxS6wdpfVzKGEQMznYIhgc85neE+0wReDP/ X0HO6Fw4SY8APHVJS81JfYUpS7D+c9Zy6CvGD6gTaLQC5WjDSIaduah6N/Et2A151Rrq R3JfWx5leSqVsczI+7OYw8K4qc3KdYhlt4simRd4L0pRsi3wVhIcLwZihBhyL6nkee40 g7D3AqbqFBeAXnt7CuXKXYoQ1k/3GmpnazPB8LA/KrjYX3dKeEZbFAUG//uZ3Wun2d+l vvmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cs.msu.ru header.s=dkim header.b=bOOLOfwQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cs.msu.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35si22163029pla.79.2019.06.05.01.40.48; Wed, 05 Jun 2019 01:41:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@cs.msu.ru header.s=dkim header.b=bOOLOfwQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cs.msu.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726949AbfFEIjM (ORCPT + 99 others); Wed, 5 Jun 2019 04:39:12 -0400 Received: from mx.cs.msu.ru ([188.44.42.42]:50380 "EHLO mail.cs.msu.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726841AbfFEIjK (ORCPT ); Wed, 5 Jun 2019 04:39:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.msu.ru; s=dkim; h=Subject:Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=a1ZtZPMYFe+z3Jl//HdGBs6N7u+N8X5saYmrcSt4sM8=; b=bOOLOfwQIviyRDN9LGruObFidP qJH3/GhkPAWCJsiGlhb07VfVKYDW5zylgiLO1+ElKSOA8m8hsX10nTedblfcQcwVyqoPWpAm5togb GrAuzgyVLhUiYm7yC5WH8SZxKVUDcCLWLNGvjAfLNIGZbtZjkBJRCQGnFtqs7pduA3HAEZV82JETS g9TPzc4wBm9X5EzKI7veGNPwFh68xorD9vxmXrX5raEmR/qe9Qo8TmeFD8+mdQlanj7BirM5WrpAU taVNoynfUqH24q63A69IjunZJ0pCJqkgmUYZH5ACAUBSMBPFE06Z3OpLRW9qeKdEcyBWk/SFN63YC mJojbpBQ==; Received: from [37.204.119.143] (port=55354 helo=localhost.localdomain) by mail.cs.msu.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hYR9S-0008s7-Li; Wed, 05 Jun 2019 11:20:08 +0300 From: Arseny Maslennikov To: Greg Kroah-Hartman , Jiri Slaby , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org Cc: "Vladimir D . Seleznev" , Arseny Maslennikov Date: Wed, 5 Jun 2019 11:19:04 +0300 Message-Id: <20190605081906.28938-6-ar@cs.msu.ru> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190605081906.28938-1-ar@cs.msu.ru> References: <20190605081906.28938-1-ar@cs.msu.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 37.204.119.143 X-SA-Exim-Mail-From: ar@cs.msu.ru Subject: [PATCH 5/7] tty: Add NOKERNINFO lflag to termios X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: No (on mail.cs.msu.ru); Unknown failure Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Arseny Maslennikov --- arch/alpha/include/uapi/asm/termbits.h | 1 + arch/ia64/include/uapi/asm/termbits.h | 1 + arch/mips/include/uapi/asm/termbits.h | 1 + arch/parisc/include/uapi/asm/termbits.h | 1 + arch/powerpc/include/uapi/asm/termbits.h | 1 + arch/sparc/include/uapi/asm/termbits.h | 1 + arch/xtensa/include/uapi/asm/termbits.h | 1 + include/linux/tty.h | 1 + include/uapi/asm-generic/termbits.h | 1 + 9 files changed, 9 insertions(+) diff --git a/arch/alpha/include/uapi/asm/termbits.h b/arch/alpha/include/uapi/asm/termbits.h index bb895d467033..850dd8dc4c51 100644 --- a/arch/alpha/include/uapi/asm/termbits.h +++ b/arch/alpha/include/uapi/asm/termbits.h @@ -204,6 +204,7 @@ struct ktermios { #define PENDIN 0x20000000 #define IEXTEN 0x00000400 #define EXTPROC 0x10000000 +#define NOKERNINFO 0x40000000 /* Values for the ACTION argument to `tcflow'. */ #define TCOOFF 0 diff --git a/arch/ia64/include/uapi/asm/termbits.h b/arch/ia64/include/uapi/asm/termbits.h index 86898e4c5905..f777b99bc5ab 100644 --- a/arch/ia64/include/uapi/asm/termbits.h +++ b/arch/ia64/include/uapi/asm/termbits.h @@ -190,6 +190,7 @@ struct ktermios { #define PENDIN 0040000 #define IEXTEN 0100000 #define EXTPROC 0200000 +#define NOKERNINFO 0400000 /* tcflow() and TCXONC use these */ #define TCOOFF 0 diff --git a/arch/mips/include/uapi/asm/termbits.h b/arch/mips/include/uapi/asm/termbits.h index 3dd60924f0ef..2755cfd1497e 100644 --- a/arch/mips/include/uapi/asm/termbits.h +++ b/arch/mips/include/uapi/asm/termbits.h @@ -206,6 +206,7 @@ struct ktermios { #define TOSTOP 0100000 /* Send SIGTTOU for background output. */ #define ITOSTOP TOSTOP #define EXTPROC 0200000 /* External processing on pty */ +#define NOKERNINFO 0400000 /* Disable kernel output from VSTATUS. */ /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ #define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ diff --git a/arch/parisc/include/uapi/asm/termbits.h b/arch/parisc/include/uapi/asm/termbits.h index ecca3b7d0c66..c7ba145adf02 100644 --- a/arch/parisc/include/uapi/asm/termbits.h +++ b/arch/parisc/include/uapi/asm/termbits.h @@ -183,6 +183,7 @@ struct ktermios { #define PENDIN 0040000 #define IEXTEN 0100000 #define EXTPROC 0200000 +#define NOKERNINFO 0400000 /* tcflow() and TCXONC use these */ #define TCOOFF 0 diff --git a/arch/powerpc/include/uapi/asm/termbits.h b/arch/powerpc/include/uapi/asm/termbits.h index c85e98d75e76..79dbcc546217 100644 --- a/arch/powerpc/include/uapi/asm/termbits.h +++ b/arch/powerpc/include/uapi/asm/termbits.h @@ -192,6 +192,7 @@ struct ktermios { #define PENDIN 0x20000000 #define IEXTEN 0x00000400 #define EXTPROC 0x10000000 +#define NOKERNINFO 0x40000000 /* Values for the ACTION argument to `tcflow'. */ #define TCOOFF 0 diff --git a/arch/sparc/include/uapi/asm/termbits.h b/arch/sparc/include/uapi/asm/termbits.h index a1638c9cde8b..108c039ddefb 100644 --- a/arch/sparc/include/uapi/asm/termbits.h +++ b/arch/sparc/include/uapi/asm/termbits.h @@ -225,6 +225,7 @@ struct ktermios { #define PENDIN 0x00004000 #define IEXTEN 0x00008000 #define EXTPROC 0x00010000 +#define NOKERNINFO 0x00020000 /* modem lines */ #define TIOCM_LE 0x001 diff --git a/arch/xtensa/include/uapi/asm/termbits.h b/arch/xtensa/include/uapi/asm/termbits.h index 77969cb275b8..6155e1c81164 100644 --- a/arch/xtensa/include/uapi/asm/termbits.h +++ b/arch/xtensa/include/uapi/asm/termbits.h @@ -199,6 +199,7 @@ struct ktermios { #define PENDIN 0040000 #define IEXTEN 0100000 #define EXTPROC 0200000 +#define NOKERNINFO 0400000 /* tcflow() and TCXONC use these */ diff --git a/include/linux/tty.h b/include/linux/tty.h index 38d8ffe7f0e3..07189f18f93d 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -186,6 +186,7 @@ struct tty_bufhead { #define L_PENDIN(tty) _L_FLAG((tty), PENDIN) #define L_IEXTEN(tty) _L_FLAG((tty), IEXTEN) #define L_EXTPROC(tty) _L_FLAG((tty), EXTPROC) +#define L_NOKERNINFO(tty) _L_FLAG((tty), NOKERNINFO) struct device; struct signal_struct; diff --git a/include/uapi/asm-generic/termbits.h b/include/uapi/asm-generic/termbits.h index 11bb142ba844..6219803d6f4d 100644 --- a/include/uapi/asm-generic/termbits.h +++ b/include/uapi/asm-generic/termbits.h @@ -181,6 +181,7 @@ struct ktermios { #define PENDIN 0040000 #define IEXTEN 0100000 #define EXTPROC 0200000 +#define NOKERNINFO 0400000 /* tcflow() and TCXONC use these */ #define TCOOFF 0 -- 2.20.1