Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7265174ybi; Thu, 1 Aug 2019 05:45:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb4v7RGOg0SgQtEmWZhi8tLP6/9wWxszvYEhnEJk3+fUEZXdvKQQtR9iVClPrg7RXA8TEG X-Received: by 2002:a62:834d:: with SMTP id h74mr55893282pfe.254.1564663505522; Thu, 01 Aug 2019 05:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564663505; cv=none; d=google.com; s=arc-20160816; b=Uz5lvjxHWZAwNQJKzfZmXPhslq4snuiLlwPlQ6qB6X+C+e4RB5qbYy6Q5AxA45CWEP REz/e9j5GcfJ2QPC0Hf2vh2MkBrem6DcpY2lWODWykznueaiuO04eOokK33LsEsN0hlY Bc6RREpQw09cgBO57s4S+RQmL5nMtVq/ihOxZkJnwUDIwl+QLil6TjqJhFf6Rvi4pUqr vzxXSpzYEAm4W5jJY7m3RwnKFkqcAdFMdi5tKq5azhm54tR4559e1cNxcn7Mq0u2tYG0 wybRJ9pOkIoBxlDDGezvzmF5KIoIpvFBSJB80Qdsw/Nrv8+FfIT9eMYT3sZEFzshcOj5 RApg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=8uskxS/gtrPQuiJ87KLLKVngRsb10iia7FAnQ4L/FP4=; b=b0P/qx//oXgJYlaRalDdHgvYKcYB5OvajvFCpEBGNbulPsPTuVczoEtehRYfLrjBKK bJLk3hvxpCsQnRG5KO8+zAJFNSxZcaUCaHnQECdZaYwNhcr3vMMZjrnLMKV5LnmDP62m 6w3sZ26JD8GJN6TkYDYkkj1AvFkzx7Lk3mEONk5UVxfUchqCoYIPNEElr3xJKhW/S9df Yokx/Ch0wmwXcWFp/y19HRN6A9krR412oskq52bzwFglkyoNeORXIENBKVSeUFHFrS/M UZCtvlWHE9lnLyJBZZOR5rSKyesf35ZEQpDuDIkbcAz8sHkP7ZcBZ5Sb8cPhDgNK0cFk vnAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=EAIcg+8z; 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 f32si3957949pje.70.2019.08.01.05.44.48; Thu, 01 Aug 2019 05:45:05 -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=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=EAIcg+8z; 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 S1731427AbfHAMmD (ORCPT + 99 others); Thu, 1 Aug 2019 08:42:03 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:39409 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730319AbfHAMmD (ORCPT ); Thu, 1 Aug 2019 08:42:03 -0400 Received: by mail-ot1-f65.google.com with SMTP id r21so68039167otq.6 for ; Thu, 01 Aug 2019 05:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8uskxS/gtrPQuiJ87KLLKVngRsb10iia7FAnQ4L/FP4=; b=EAIcg+8zVmf3aiVkaSk+pQ7W32nML3AqDBA07rhI0mWPYK/3osobGOnAeAR2GlrG5m GO67N6l3RvzR1eC9rcIQ/IFgb+zglv9oj8/wU4H08MKHLJJa85rXrV4FO+pKiinnosMb mCgSmt1FKFQwTTDk+TptbMlLUZ8htN5s4VI7phJCqz3/9pWvmS+uRts6NzJLSukl5MrM EPQfCYOa9Htm7r3gBWUwcksVmOWkRg6/O7wrrJ8ia/a/5YlLOc9KmQFsjW9Ituh5Zqag wMzaWeA/jTiW3O6YYUVPnsN+5rZwJnoL7Qdd2VrvWcUzCbJis87TaKZCkTzBY+R8j1L2 TXSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8uskxS/gtrPQuiJ87KLLKVngRsb10iia7FAnQ4L/FP4=; b=eDBlLmycuYoVLK32Gv26c0tr5NcYXCAjkZSWDbC0NUOiAGiXkdtaCa3dEdMlnV5js1 RZMxCTX+Z2VgbuP02w/0l3ha0nwHKnu4ma2ZPlVuDCm8oyNJVxaUsaXu/WmKv6tfexR2 SrP6zeVOE1ttpLQBHDsutBNGU8BYnDr1HncNX8MBoJgkqfMpGCHnD/kGWp9QeCHKjPPz JnWowLGbSKS6c5XddepSrQqcWrM/pVQAlHkR/+PRVxs4kDBcCYwZTC5HSU7+SHB14WcC mMCL9vGIQXVp4YbCQn6+hYVOj6HYK44A7HvmqJpinAGOfSqgV/tvCs7cOpPHbPNtC9qN Ht6Q== X-Gm-Message-State: APjAAAUAbZ/EjzzEOV1WO99HHoDD7AUuwtZpcrLdD5ohq1UzbrXrKw46 AOzVFJx20qHRXm/S5P6Fewk= X-Received: by 2002:a9d:7cd1:: with SMTP id r17mr11015019otn.356.1564663322159; Thu, 01 Aug 2019 05:42:02 -0700 (PDT) Received: from [192.168.1.10] (072-182-052-210.res.spectrum.com. [72.182.52.210]) by smtp.googlemail.com with ESMTPSA id k135sm25007479oih.1.2019.08.01.05.42.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Aug 2019 05:42:01 -0700 (PDT) Subject: Re: [PATCH v2 7/7] n_tty: Provide an informational line on VSTATUS receipt To: Greg Kroah-Hartman , Arseny Maslennikov Cc: Jiri Slaby , Ingo Molnar , Peter Zijlstra , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Vladimir D. Seleznev" , "Eric W. Biederman" , Pavel Machek References: <20190625161153.29811-1-ar@cs.msu.ru> <20190625161153.29811-8-ar@cs.msu.ru> <20190730161940.GA15798@kroah.com> <20190731222359.GA20574@cello> <20190801092020.GB19329@kroah.com> From: Rob Landley Message-ID: Date: Thu, 1 Aug 2019 07:44:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190801092020.GB19329@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/1/19 4:20 AM, Greg Kroah-Hartman wrote: >> SysRq is system-wide, whereas this is per-terminal and only cares about >> one tty which the status char is pressed at and its foreground pgrp >> (most likely it's the foreground shell job). >> >> I hope this is clear enough. > > It is, yes. My big objection is the crazy code I point out above, as > well as the "create a totally new interface when we might be able to use > an existing one" that you need to convince me is really required :) It's not a new interface, it's a multiple decades old BSD interface our tcgetattr man page already mentions, which seems to be one of the big things BSD people miss when using Linux, and which I tried and failed to implement without kernel support months ago. I wasn't involved in this kernel patch effort, I got pointed at news coverage about it by the Android Bionic maintainer: http://lists.landley.net/pipermail/toybox-landley.net/2019-June/010536.html Which is how I wound up cc'd on this thread. I don't think Android specifically cares about SIGINFO, but they're trying to support building Android on MacOSX, which means trying to support building it on FreeBSD, which involves outreach to the BSD community, and they brought up the lack of ctrl-T and siginfo as a thing they really missed when having to deal with the Linux command line. (The fact there _was_ news coverage of the patch for somebody to point me at may also be an indication of interest floating around out there...) Rob