Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5797870yba; Thu, 11 Apr 2019 06:07:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnqFvroEePp4IbhI5VHZifZELgmlEj1qUQ2LTbcu0R3+Yu9dnvHiHs8Mckkk3LXgQ2u9R0 X-Received: by 2002:a63:79c3:: with SMTP id u186mr45497791pgc.20.1554988059343; Thu, 11 Apr 2019 06:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554988059; cv=none; d=google.com; s=arc-20160816; b=SODTsR0KCgJeb0myM+EJ1e/pBQCcvDBewtGGV5HCkpLcDK3Z4RO7p/IU+GOxpTM6Sy qy2LSC36Zthnpx5LDmyhHEuz3dUexn15GY17kpU89v9QftALLiGtIt5h0iAH7zTbhAuz i251j1Smc6xrDyFIXv+YYa7ulynPb1y39XdfVBH2/SXAfO9a7ofXarKX+YruKwiAterv uUapZ8LiP+64HLyIs3HTzNjshi80EUq8Iq+TL8+hs+KqsfTcMp58u0MgopgJSsEUsJO0 /qSVhyLvAl7qzuue4vavbCokuSLkrEowU/Zlmn0BcQxDuwp/tXnal1GtIl8RwoRIDO3d EU3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=TAa6UGTfbHb4W2+Tu1eL4fCw5lGBcBeHbNdhQaeDg7U=; b=gp1iyGmCLQJ+3PB1897E4ViMF9HWTLR1U87XyePP1jkv3FBPB1thGOSArppAxuM79E u3XPmgy0704/yZjf78nKnMVoRd+W5RljWapyV9ts4u3VnZd2FFc/h6qxUgiwIp/fXFKI mwVg+Bv/I5r9hOP46WbGf2yysSb1GrJez8HyCB4+6HuyqnxWGNaw7HF9s8mqcZG56+x9 SIdXX+VI6JG2Jz1ta8YolUSxA1re7a/28tIDyAGGowue87WBNrloAF7unGYZptgPa1f1 deXkluNU92OO5wMzw+NzQTlXnnciu8R/3qn++gkmoDnfYXlUvaoRuyLp71vOnkKGJFZV DHiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=V+tDxMm0; 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=NONE sp=NONE dis=NONE) header.from=nokia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9si35317283pgc.156.2019.04.11.06.07.22; Thu, 11 Apr 2019 06:07:39 -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=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=V+tDxMm0; 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=NONE sp=NONE dis=NONE) header.from=nokia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726708AbfDKNFZ (ORCPT + 99 others); Thu, 11 Apr 2019 09:05:25 -0400 Received: from mail-eopbgr00098.outbound.protection.outlook.com ([40.107.0.98]:40834 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726517AbfDKNFZ (ORCPT ); Thu, 11 Apr 2019 09:05:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TAa6UGTfbHb4W2+Tu1eL4fCw5lGBcBeHbNdhQaeDg7U=; b=V+tDxMm0XLNfX2COYptDldKLj1l1by220rJx4zhMlzC4Yy7oshwUb4dHR++6Tu8x5M+8exa8LgnAC5+7oLOoPnTH9TVtElbXDzNbBABAwjhfAK0B1XvStQ+PT62fKSR9+LZbhckdg38VIVmmRquT8s2Y5HNCk9yP2q/uGdA6518= Received: from HE1PR07MB3337.eurprd07.prod.outlook.com (10.170.247.12) by HE1PR07MB1034.eurprd07.prod.outlook.com (10.162.27.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.8; Thu, 11 Apr 2019 13:05:21 +0000 Received: from HE1PR07MB3337.eurprd07.prod.outlook.com ([fe80::cd23:d96f:5d94:cee6]) by HE1PR07MB3337.eurprd07.prod.outlook.com ([fe80::cd23:d96f:5d94:cee6%7]) with mapi id 15.20.1792.007; Thu, 11 Apr 2019 13:05:21 +0000 From: "Adamski, Krzysztof (Nokia - PL/Wroclaw)" To: "Enrico Weigelt, metux IT consult" CC: Vincent Whitchurch , Greg KH , "jslaby@suse.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] tty: Add NULL TTY driver Thread-Topic: [PATCH] tty: Add NULL TTY driver Thread-Index: AQHU8GcqXTQLfjbFSk+VcCO84+l+yw== Date: Thu, 11 Apr 2019 13:05:20 +0000 Message-ID: <20190411130458.GA11390@localhost.localdomain> References: <20190403113327.3628-1-vincent.whitchurch@axis.com> <20190403131213.GA4246@kroah.com> <20190403141109.3mdmqbt3mjxrie6k@axis.com> <20190405090043.vnsftwpdm56cx2hr@axis.com> In-Reply-To: Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0301CA0017.eurprd03.prod.outlook.com (2603:10a6:3:76::27) To HE1PR07MB3337.eurprd07.prod.outlook.com (2603:10a6:7:2d::12) authentication-results: spf=none (sender IP is ) smtp.mailfrom=krzysztof.adamski@nokia.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [131.228.32.185] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 78775249-c1ad-4ad3-a180-08d6be7e5a29 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:HE1PR07MB1034; x-ms-traffictypediagnostic: HE1PR07MB1034: x-microsoft-antispam-prvs: x-forefront-prvs: 00046D390F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(136003)(366004)(346002)(396003)(376002)(199004)(189003)(486006)(86362001)(76176011)(305945005)(7736002)(4326008)(33656002)(26005)(6486002)(2906002)(102836004)(81166006)(25786009)(6506007)(52116002)(14454004)(53546011)(99286004)(71190400001)(9686003)(81156014)(6512007)(5660300002)(478600001)(53936002)(386003)(71200400001)(6436002)(68736007)(1076003)(8676002)(256004)(6916009)(93886005)(54906003)(97736004)(106356001)(186003)(446003)(61506002)(6116002)(66066001)(105586002)(229853002)(8936002)(11346002)(3846002)(476003)(6246003)(316002);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR07MB1034;H:HE1PR07MB3337.eurprd07.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: E2yKP3VeThYUOeTHN8YoVPBTtWepQQNcoJ+Dq2DWdSWf0UB4Gl67uYkICnfQ+FK112O2oIeDyLWjqmU28W5AqWUzKFHNu8w1k4DKeRj8ow0iH07l48VTjRTb3AFKQo6bWp6IwGHxUIGMC9VB3+5L492Mw+PvyBpJybWqDnf/oD4Nfug2zL0NTq5PPyLEx7ZvZiBYCP22gTrirE/xd3lhnQxoYrKcW89LOC2YWMLmj0Eu8+HCj1xvwvInv8HvZJVaR1kyhqT/Kpu48VQN/fbwej55m3cYJhNFfJmWujqU7H7gA4Re6RQiuNboTi11dkl2OAnXAjkYtWgF4Q1E6vIVcw4KOuPSXxr7pfZpNJh8SAVxXetSgeJ+3jEGvyyXb3WQRVLWWmTdwCxvGeLxGhjm3EgcTm8pBevVz9jbPv4QMv0= Content-Type: text/plain; charset="us-ascii" Content-ID: <5C43D4ACF1EE1649BC9EA1DECB6883F1@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78775249-c1ad-4ad3-a180-08d6be7e5a29 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2019 13:05:21.0090 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB1034 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 05, 2019 at 02:32:41PM +0200, Enrico Weigelt, metux IT consult = wrote: >On 05.04.19 11:00, Vincent Whitchurch wrote: >> On Fri, Apr 05, 2019 at 10:39:43AM +0200, Enrico Weigelt, metux IT consu= lt wrote: >>> On 03.04.19 16:11, Vincent Whitchurch wrote: >>> >>>> Especially on embedded systems, it would be convenient to have a simpl= e >>>> way to disable the console (both for kernel and userspace) on a system >>>> which normally uses it, to free up the UART for other things. >>> >>> Just symlinking to /dev/null does not work ? >> >> No, /dev/null does not support the TTY ioctls. > >hmm, wo (which programs) do you need, that really need them ? > >>> OTOH, if you're introducing a dummy console, wouldn't a ringbuffer that= , >>> can be read out later, a better option ? >> >> There is already a ttyprintk driver in mainline to send these messages >> to the printk ring buffer if one is actually intrested in what is >> written to the console. There's no option to enable it via console=3D i= n >> mainline but I have a patch for that too. > >Great. IMHO, that would be the better way. There are (embedded) cases where the kernel ring buffer is stored for log inspection and all the logs that are *not* wanted there (like interactive debug logs, some progress bar, etc) are send specifically to /dev/console to avoid sending them to normal log store (as they are only useful when debugging over console). In non-debug mode /dev/console becomes /dev/null to speed things up. I would personally benefit from Vincents patch. In fact I found this thread because I was considering doing exactly the same for our system. Krzysztof