Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5924776yba; Thu, 11 Apr 2019 08:29:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/jcAmdAMOJHDZvCN1/Nc1bRXgpepRP4kGydqmMYRf5q3y/ZcbgpGuO0UeKx/xz4L2mYey X-Received: by 2002:a17:902:b706:: with SMTP id d6mr50819090pls.250.1554996591780; Thu, 11 Apr 2019 08:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554996591; cv=none; d=google.com; s=arc-20160816; b=R4vc2oJnnKI3iQ6EvVT7caPOpXNmsYQD5HIw3+F8r2YvQ3e/LsRw92tJ+tNVCMfRYH EVSBnvDZb1PJC5t89ilbEhbxJFtD4uUo5zAC9msD4InpmSX0tONoZBvo3wh28H99pyAt BKdt42gc22B2+as2IOS2PmgqUmBmkp0QqmTEndrZXe8VrlKMrAzRVHz6TKtDAZZWLaab RSq1ScC7RnFwxiMvJoAUhD8hDnxcTVBVLjgEnY48EebKpZ4XBaSIJMeFHcTlykPaUIfy /BwQVJgsoquysmFnSd7mNogChnPEzkQM5G3rxOxUvYKuac5LxzBfgi4z0erJWCILCMpl Ff5Q== 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=ORWreUaGmPJHNCp5wMfkSIt4ST4oSg23jy2FPCWEtbY=; b=X7UmNTrWlwvm61dTskG/Aq3RAUhVYMdlfbPB3OpsHFXJPKnIkmQiDKwsjLClIQf5Ka D4ijFHCFGSgmcT7sCSdAuEXI4GVJMA53li6G9jvSaaFO9q0gHAT7wvZo1v3geWF3Wb+A zEuxvYjQG0eFSAs/KpUIj3mdcW6LzVdo6tyBTcdspI0i8tIwiWB6C27tCnXMO7Bq4Ja1 BUWNL5FNqEI0ofp+f1hQej9NRZOdFxWWLiduLaBgsVhdjSYMjCaiG2BJbJVxlbR/ntOs a8QivcKcqJfYc8oYlhsFNytiDugW3dIle/ZE2GWm7r4I6JVDE5iwL/ezgzbhJ5tVjSWC DZAQ== 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 y14si31807575pll.379.2019.04.11.08.29.35; Thu, 11 Apr 2019 08:29:51 -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 S1726697AbfDKP2u (ORCPT + 99 others); Thu, 11 Apr 2019 11:28:50 -0400 Received: from bastet.se.axis.com ([195.60.68.11]:54997 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfDKP2t (ORCPT ); Thu, 11 Apr 2019 11:28:49 -0400 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 7B47E18670; Thu, 11 Apr 2019 17:28:47 +0200 (CEST) X-Axis-User: NO X-Axis-NonUser: YES X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id LCcmIKMGFwow; Thu, 11 Apr 2019 17:28:46 +0200 (CEST) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id 06ACD18699; Thu, 11 Apr 2019 17:28:45 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C0E0C1A090; Thu, 11 Apr 2019 17:28:45 +0200 (CEST) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B5AAF1A08E; Thu, 11 Apr 2019 17:28:45 +0200 (CEST) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP; Thu, 11 Apr 2019 17:28:45 +0200 (CEST) Received: from lnxartpec.se.axis.com (lnxartpec.se.axis.com [10.88.4.9]) by thoth.se.axis.com (Postfix) with ESMTP id A9EF521E; Thu, 11 Apr 2019 17:28:45 +0200 (CEST) Received: by lnxartpec.se.axis.com (Postfix, from userid 10564) id 9B48E80DB0; Thu, 11 Apr 2019 17:28:45 +0200 (CEST) Date: Thu, 11 Apr 2019 17:28:45 +0200 From: Vincent Whitchurch To: "Enrico Weigelt, metux IT consult" Cc: Greg KH , jslaby@suse.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: Add NULL TTY driver Message-ID: <20190411152845.xomzmhtyejzr4r35@axis.com> References: <20190403113327.3628-1-vincent.whitchurch@axis.com> <20190403131213.GA4246@kroah.com> <20190403141109.3mdmqbt3mjxrie6k@axis.com> <20190405090043.vnsftwpdm56cx2hr@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-TM-AS-GCONF: 00 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 consult wrote: > >> On 03.04.19 16:11, Vincent Whitchurch wrote: > >> > >>> Especially on embedded systems, it would be convenient to have a simple > >>> 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 ? I think it was systemd's debug-shell which complained about the ioctls. > >> 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= in > > mainline but I have a patch for that too. > > Great. IMHO, that would be the better way. Like Krzysztof explained, sometimes you just want to discard these messages.