Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758171AbXENRj4 (ORCPT ); Mon, 14 May 2007 13:39:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756134AbXENRjv (ORCPT ); Mon, 14 May 2007 13:39:51 -0400 Received: from mail.gmx.net ([213.165.64.20]:56320 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756087AbXENRju (ORCPT ); Mon, 14 May 2007 13:39:50 -0400 X-Authenticated: #14603182 X-Provags-ID: V01U2FsdGVkX1/ifXM+XjLiwdy2fWhFx3c4IoGlL4mi5T9+tJoqA7 Y9Aibsdm6196B7 Message-ID: <46489EF1.2020509@gmx.de> Date: Mon, 14 May 2007 19:40:01 +0200 From: "Lars K.W. Gohlke" User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: Re: How to access correctly serial port inside module? References: <46485D84.1010902@gmx.de> In-Reply-To: <46485D84.1010902@gmx.de> Content-Type: multipart/mixed; boundary="------------030904030309020809090700" 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: 2094 Lines: 82 --------------030904030309020809090700 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lars K.W. Gohlke schrieb: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hallo, > > after searching the mailing list and searching the web, I still don't > know how to access correctly the serial port (in user space known as > /dev/ttyS01) > > This thread ends before the answer was given and the site redirecting > too is restructured: http://marc.info/?l=kernelnewbies&m=98314502419089&w=2 > > would somebody be so kind to give me an example: > > with this behaviour: > > 1. read from port > 2. output via printk() > 3. write to port > > I'm learning how to write modules: > > I've created already my own char-dev and used it in user-space. > However I don't know really how to get information from kernel-code to > solve this. > > thx in advance > > 14.05.2007 14:46 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.3 (MingW32) - GPGrelay v0.959 > > iD8DBQFGSF2FAAomYJ1taN8RAnPfAKCdpnT+Uxa8a1Mc85TCyDzNwsvuQQCgzHIx > f7V/XEWtWCa2IWtYjk7W7dg= > =y/NM > -----END PGP SIGNATURE----- would be somebody so polite and give me at least a hint? Where to search concretely, or small template. thx -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) - GPGrelay v0.959 iD8DBQFGSJ7yAAomYJ1taN8RAmVqAJ9Fwr9eqAlYK5rSBj1efs0gBDgMuACgmEuZ u0EvSiC5ORBLFnIGp0tdpNE= =pdLz -----END PGP SIGNATURE----- --------------030904030309020809090700 Content-Type: text/x-vcard; charset=utf-8; name="lkwg82.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lkwg82.vcf" begin:vcard fn:Lars K.W. Gohlke n:Gohlke;Lars K.W. email;internet:lkwg82@gmx.de x-mozilla-html:FALSE version:2.1 end:vcard --------------030904030309020809090700-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/