Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758550AbXEXKpW (ORCPT ); Thu, 24 May 2007 06:45:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755578AbXEXKpJ (ORCPT ); Thu, 24 May 2007 06:45:09 -0400 Received: from mail.gmx.net ([213.165.64.20]:55193 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755802AbXEXKpG (ORCPT ); Thu, 24 May 2007 06:45:06 -0400 X-Authenticated: #14603182 X-Provags-ID: V01U2FsdGVkX18rn94ZT0ArL/YgRfYiEo7EsK/xBbWgYgb9d1Qn8+ AnDWBC5XS8dOwQ Message-ID: <46556CB2.8010709@gmx.de> Date: Thu, 24 May 2007 12:45:06 +0200 From: "Lars K.W. Gohlke" User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Jan Engelhardt CC: Tilman Schmidt , linux-kernel@vger.kernel.org Subject: Re: How to access correctly serial port inside module? References: <46485D84.1010902@gmx.de> <46489EF1.2020509@gmx.de> <4648E9F7.5090908@imap.cc> <46536C0F.50101@imap.cc> <4655676A.1000102@gmx.de> In-Reply-To: Content-Type: multipart/mixed; boundary="------------070400000903070101000408" X-PGP-KeyID: 9D6D68DF X-Request-PGP: X-OpenPGP-Key-ID: 000A26609D6D68DF X-OpenPGP-Key-Fprint: DA26 DACC EDFB 8E2A 21EC BF11 000A 2660 9D6D 68DF X-OpenPGP-Key-URL: X-Signed-With-GnuPG: GPGrelay Version 0.959 (Win32) X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2121 Lines: 74 --------------070400000903070101000408 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jan Engelhardt schrieb: > On May 24 2007 12:22, Lars K.W. Gohlke wrote: >> ok, I have read everything and also have read the chapters about >> tty_drivers. However I'm not really understand, how to ... . >> >> I will summarize the concrete scenario, which will lead to the >> understanding and further solution of deadling with serial driver. >> >> [scenario] >> >> 1. in userspace I'm doing: > date > /dev/ttyS0 >> 2. in kernelspace I want to print out this date. >> >> [/scenario] >> >> I'm really new to kernel coding, that's why I maybe understand some >> functions not the proper way. >> >> I'm a bit confused. > > So am I. Usually, you connect two different machines with a serial cable. > (Leaving out the special case of connecting ttyS0-ttyS1 on the same machine.) > > This poses the first question: whose kernelspace? the sender or > the receiver side? And by "this date" do you perhaps mean > "whatever was sent", or specifically a date? And print to _where_? > > Up to now, it looks like you want to do "cat > > Jan date is an example and you got it, I want to do "cat