Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2438943ybi; Sun, 9 Jun 2019 11:49:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3a6/AmIoKlMvwmrcJGVat7Bn3OZ14BZzb663i26BdK4tcSVSnsywd4S4QAlsNlI7jNayE X-Received: by 2002:a17:902:bb8f:: with SMTP id m15mr1363685pls.84.1560106182051; Sun, 09 Jun 2019 11:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560106182; cv=none; d=google.com; s=arc-20160816; b=gw2YmvI9SdqerXeTxX7KwPaVo0RiWmIq0oF5OsSZ6pbkgFHp69AKURzsZCh3aqaIRN JiHG/v443EWqwHD58sh6bIjJRKKWw/DNm07EmA0myeV+UU9wwLJmjqw3nonZJ4DiI0iO MHJGAhySZwseWqQ9seR9NRXF70943alPfdaNj05UO/13W8PxI8vwErf/IUL9oc+t78Rt dWaqOyLyVmKZgdvdCdng5N8YvrMeXWe2WJExQIMwiW1AUsUaqZdAoNo6I/Jh1dhzx4k2 FPGnfhshGCNk26SR0MCmvIB3sQKrtGROn5M8MbsX/eiT4TuxxVwBdYLxUgMaoWrHZiBc 3ynw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9wEROF9yUTqCUrM8auGbJzCcz16Dkht30vKLjwKV4dU=; b=e/gSTVnEuKl4x2AgWOic+vPbl/Ri6vbnxEm33Zz9Hqp0KRcgwms1a68gCOQBdwhv/V S0GMW6IQ0jaE0mVSIFkg0ySq6AmJ54LRcDs8b7fnT+loBxJLJZXNce93t13jnBA4YaAm bEv2vgKlVz5vYjCYe18ZzX2iAOFrT5LIQR7JBA8jhf/hMEbVYlgJkoNaBmWkvEB+BTNZ 0bDVlPcZJMVv+hTaDVT80+rT9mERw/nWTFI1f28YCyss+QNhnevhjk7Q4lnMVPYzphis xNWq0VcgcjiEBlKrgRYjbAB7wyF/+4D80xWYL/AI6wV8coKqwYilf0iIp98NERbls9Os /m7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j38si7754757pgi.227.2019.06.09.11.49.26; Sun, 09 Jun 2019 11:49:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729318AbfFIRmP (ORCPT + 99 others); Sun, 9 Jun 2019 13:42:15 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:35119 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728678AbfFIRmO (ORCPT ); Sun, 9 Jun 2019 13:42:14 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 1911A802A0; Sun, 9 Jun 2019 19:42:03 +0200 (CEST) Date: Sun, 9 Jun 2019 19:41:39 +0200 From: Pavel Machek To: Arseny Maslennikov Cc: Greg Kroah-Hartman , Jiri Slaby , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, "Vladimir D . Seleznev" Subject: Re: [PATCH 0/7] TTY Keyboard Status Request Message-ID: <20190609174139.GA11944@xo-6d-61-c0.localdomain> References: <20190605081906.28938-1-ar@cs.msu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190605081906.28938-1-ar@cs.msu.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > This patch series introduces TTY keyboard status request, a feature of > the n_tty line discipline that reserves a character in struct termios > (^T by default) and reacts to it by printing a short informational line > to the terminal and sending a Unix signal to the tty's foreground > process group. The processes may, in response to the signal, output a > textual description of what they're doing. > > The feature has been present in a similar form at least in > Free/Open/NetBSD; it would be nice to have something like this in Linux > as well. There is an LKML thread[1] where users have previously > expressed the rationale for this. > > The current implementation does not break existing kernel API in any > way, since, fortunately, all the architectures supported by the kernel > happen to have at least 1 free byte in the termios control character > array. I like the idea... I was often wondering "how long will this dd take". (And in case of dd, SIGUSR1 does the job). I assume this will off by default, so that applications using ^T today will not get surprise signals? Pavel