Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759047AbXENUBT (ORCPT ); Mon, 14 May 2007 16:01:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755635AbXENUBK (ORCPT ); Mon, 14 May 2007 16:01:10 -0400 Received: from mailer.gwdg.de ([134.76.10.26]:37178 "EHLO mailer.gwdg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755401AbXENUBJ (ORCPT ); Mon, 14 May 2007 16:01:09 -0400 Date: Mon, 14 May 2007 22:00:53 +0200 (MEST) From: Jan Engelhardt To: "Lars K.W. Gohlke" cc: linux-kernel@vger.kernel.org Subject: Re: How to access correctly serial port inside module? In-Reply-To: <46489EF1.2020509@gmx.de> Message-ID: References: <46485D84.1010902@gmx.de> <46489EF1.2020509@gmx.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Report: Content analysis: 1.3 points, 6.0 required 1.3 INFO_TLD URI: Contains an URL in the INFO top-level domain Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1298 Lines: 45 On May 14 2007 19:40, Lars K.W. Gohlke wrote: >> >> 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) http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad >> 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 inb/inw/inl, printk, outb/outw/outl. >> 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. http://lwn.net/Kernel/LDD3/ > would be somebody so polite and give me at least a hint? > Where to search concretely, or small template. It's been 4 hours and 40 minutes, and you already expect an answer? I don't remember you having paid anyone... Jan -- - 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/