Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp65069yba; Fri, 5 Apr 2019 02:02:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcRQU6WMVo87sgqeTljxl+8W7y3YL81wJ6koPdSPqPkrJOnQCa/tDHKHA6uZuwCUqxXRNb X-Received: by 2002:a17:902:1105:: with SMTP id d5mr11580631pla.27.1554454974793; Fri, 05 Apr 2019 02:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554454974; cv=none; d=google.com; s=arc-20160816; b=lF98fdI/eqwuyA2BTrLpw3Eke28NmRUambovxOTSVSGULyuZ9oMRCZlbsa2p55uB0V gFDmjx6WU8Zy+z1ljNeOGsv3LRkGjzL39X3juLIsyf1MU3cnwmUmz37GgSL/2iBOc8lf t9uYCjAuTQb7O1vVyu9lki1+v9SZtXjP0YUMlejQlWbMFEK80jXUPR4PcwHiKxrii3M0 W72y5iyOgvgUuXM0DVJ8Iywmp2ol76pA+EPojrWwlM72GuEN/eH8L4JDea4l8q9NgKIV brXwBTF3jHj3Ebiu6hN9Bnh9rcCRHqXoopnEZYq3CG6Dxvvyea7QCc9RY5vPh5cNMfRJ Qd1A== 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=yG5NwAJZ/4R9OHY5dfxLk3oEJ5WQfWtAnXuaesgdR7s=; b=CoEc2TyraxKv6TgknJKbuj8r1owNnBIt0VscF+UMD/o9tY5UUYBErv7UIoVtuWIP4I paahw+jTi4v4Q6S+wQ7oWhUfSihboSVo77LvJmLRhKcSBYD4sxKaqe7z1hfN/u/ibm1q zEgjQGiJrizgFEdF5Sc84zB02HUsYECupIgGszEFmvgAVXVN+AUKLA34GywDc5kauIUY H8vwRTe8WMH3YUJwR7Fh9gsM1HP5A+xfAzHmJLl1Em+VHtY4pj+fFioVEF8pQznEUqvf MmsSHnQ19h3M0abZL53Y5IFK+Dym7vkC71tMD442vC1bthTEpTrXrRX69ylbUVoWuKZe ykbg== 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 g1si17905057pgq.227.2019.04.05.02.02.39; Fri, 05 Apr 2019 02:02:54 -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 S1730303AbfDEJCE (ORCPT + 99 others); Fri, 5 Apr 2019 05:02:04 -0400 Received: from bastet.se.axis.com ([195.60.68.11]:49794 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729728AbfDEJCD (ORCPT ); Fri, 5 Apr 2019 05:02:03 -0400 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id B58511877B; Fri, 5 Apr 2019 11:02:01 +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 xnQSVffxmNWq; Fri, 5 Apr 2019 11:01:58 +0200 (CEST) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id D806918795; Fri, 5 Apr 2019 11:00:43 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9D8931E057; Fri, 5 Apr 2019 11:00:43 +0200 (CEST) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9170B1E04F; Fri, 5 Apr 2019 11:00:43 +0200 (CEST) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder03.se.axis.com (Postfix) with ESMTP; Fri, 5 Apr 2019 11:00:43 +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 85185218E; Fri, 5 Apr 2019 11:00:43 +0200 (CEST) Received: by lnxartpec.se.axis.com (Postfix, from userid 10564) id 751FA80D28; Fri, 5 Apr 2019 11:00:43 +0200 (CEST) Date: Fri, 5 Apr 2019 11:00:43 +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: <20190405090043.vnsftwpdm56cx2hr@axis.com> References: <20190403113327.3628-1-vincent.whitchurch@axis.com> <20190403131213.GA4246@kroah.com> <20190403141109.3mdmqbt3mjxrie6k@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 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. > 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.