From owner-freebsd-hackers Mon Jan 15 16:51:53 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA26539 for hackers-outgoing; Mon, 15 Jan 1996 16:51:53 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id QAA26534 for ; Mon, 15 Jan 1996 16:51:49 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id BAA12357; Tue, 16 Jan 1996 01:51:25 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id BAA23976; Tue, 16 Jan 1996 01:51:25 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id BAA14557; Tue, 16 Jan 1996 01:49:22 +0100 (MET) From: J Wunsch Message-Id: <199601160049.BAA14557@uriah.heep.sax.de> Subject: Re: Request examples of using outb() in inb()in program. To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Tue, 16 Jan 1996 01:49:21 +0100 (MET) Cc: scott@patton.com Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Sujal Patel" at Jan 15, 96 02:39:44 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org Precedence: bulk As Sujal Patel wrote: > > You need to open /dev/io before you access the ports (O_RDONLY is rnough > to read and write any port). You can also use the KDENABIO ioctl on > /dev/console (probably the preferred way, but /dev/io is easier :) KDENABIO is not the preferred way, it's the traditional way. It requires root priv's (as opposed to /dev/io which is subject to normal file access constraints), and it's only available if your kernel does have either syscons or pcvt configured. Both drivers are optional however. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)