Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!nntp.crl.com!nexp.crl.com!usenet From: "Jordan K. Hubbard" <jkh@FreeBSD.org> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Accessing i/o-ports from user-code ? Date: Sun, 29 Dec 1996 20:11:00 -0800 Organization: Walnut Creek CDROM Lines: 13 Message-ID: <32C740D4.2781E494@FreeBSD.org> References: <87g20rbmk6.fsf@acme1.ruhr.de> NNTP-Posting-Host: time.cdrom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 3.0-CURRENT i386) To: Christoph Haas <chris@acme1.ruhr.de> Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33170 Christoph Haas wrote: > I need to access i/o-ports from within my application. I wanted to use > inb() and outb() to send bytes to a certain port that is used by an > isa card, but I got a bus error. Do I need special permissions to > access the ports (e.g. set the setuid-flag for my program) or are > there any syscalls I have to do before the prgram is allowed to access > the i/o-ports ?? See the man page for io(4) - you need to open /dev/io -- - Jordan Hubbard President, FreeBSD Project