Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp697917ybh; Sat, 3 Aug 2019 08:00:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqx43/z2fKTAvh6rZNInRD7HqDSvj97M5CUOP/UjqsHtEmz+2uSKR8qvJGWSOyl6K4FWsvth X-Received: by 2002:a17:90a:9f4a:: with SMTP id q10mr9528076pjv.95.1564844431614; Sat, 03 Aug 2019 08:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564844431; cv=none; d=google.com; s=arc-20160816; b=0bIGRQ99p8ZJ1wabKG5FHHAz/tQy6TgW1Gtbj80S77GD6e9l8pCU/K/FInzVt02ktR Q0uHxRgljLWEUVOkIrQ0SFjY1JvB6KrpaI1q2aXAyWEhvSLmmUr9AMCb2mCjDECr4sQP 1ytQwaZmTS6tK8KuKAKCDJnswVJfOg6j3psAaZPxumtLDR6t+ukYW6P/HbWJdoCOuXuo CKqay+6WBK4r0b+QdfBTXHdkFBbNtdYQf03ZN1N5VnV6edjXR+9JGTicS8cukdQfyT6N 59Abzng9YRg9wp6oVIenAalTWh5eI9JWry5cuQP1XvDpBWyN8ccTRpuTA7xekYd+KeHG m+Yg== 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:dkim-signature; bh=gNZPIayI15xTLZ2QsAKFBDHZjbTDZwoGj8sgrK5A5VA=; b=Bomb7x0vTI4rmnPt9lXILTccVidbMXXDsZjpje3GrSxOleYsB1qrVuoQdv6EIA/CXv DOKB6A3CJJd64q8JVi/e9sUpn3PnHss/cqviAg/2op0M3dqVHRm+agRnhX8aN69L7b/Z GYC09/UTnRI4gpaqFqu8fsZd/oG1O4sHKzFbjOQcj70XquROh7BgMkMmHNycnutRsCan reGmrHHrC4BenBfO5a2RxgBgJDJ/9kWuvYJRn+cWyLke6mPS/3XyhMujCWH759HiUmyp 1FPKSZ/jMx8r5JFHfdh3m/9rA11JbfQKfEmLlYoT9MjZ/LPe/cpwvyUhUiLtn5unmq2T 7OMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="AS7/8i9R"; 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 u2si40153538pgm.242.2019.08.03.08.00.16; Sat, 03 Aug 2019 08:00:31 -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=@kernel.org header.s=default header.b="AS7/8i9R"; 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 S2388830AbfHBQCq (ORCPT + 99 others); Fri, 2 Aug 2019 12:02:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:44116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388512AbfHBQCq (ORCPT ); Fri, 2 Aug 2019 12:02:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1CBAA216C8; Fri, 2 Aug 2019 16:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564761765; bh=Mfej1gsF5s5LDrrvRClXBvNNFTeMEaTN4dRVcQmNCyM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AS7/8i9RSdN8bU4WAPWxwk1bzPeAX3fwadmTZ1GBF3d6XKiiEWtPep5S4095XmhUR JLSqY+mLW1C4fq/z16vInoVfEMgd3UUqT0OR60C706QrlJm1su9felp/0E+WG2jKR/ lXm639h72rLL+0pysOTCQxy7V79+l2Hx0mlkLnxs= Date: Fri, 2 Aug 2019 18:02:43 +0200 From: Greg Kroah-Hartman To: Paul Menzel Cc: linux-serial@vger.kernel.org, Linux Kernel Mailing List , Donald Buczek Subject: Re: Device to write to all (serial) consoles Message-ID: <20190802160243.GA15484@kroah.com> References: <32c2d26f-ec4a-b9a6-b42c-07b27f99ea28@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32c2d26f-ec4a-b9a6-b42c-07b27f99ea28@molgen.mpg.de> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 02, 2019 at 03:23:08PM +0200, Paul Menzel wrote: > Dear Linux folks, > > > On a lot of devices, like servers, you have more than one serial console, > and you do not always know, how they are numbered. Therefore, we start a > console on ttyS0 and ttyS1. > > In user space, we also would like to write to both consoles to not worry > about the numbering. Writing to `/dev/console` only write to the active > console. So the same data to multiple console devices with just one userspace call? Why? > $ more /proc/consoles # I think > tty0 -WU (EC p ) 4:1 > ttyS0 -W- (E p a) 4:65 > ttyS1 -W- (E p a) 4:65 > > Does a device exist, or can a device be configured so you can write to > all (serial) consoles from user space? With one syscall, not that I know of, sorry. greg k-h