*BSD News Article 85875


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!nntp.portal.ca!news.bc.net!arclight.uoregon.edu!news.sprintlink.net!news-peer.sprintlink.net!howland.erols.net!blackbush.xlink.net!ins.net!ruhr.de!acme1.ruhr.de!usenet
From: Christoph Haas <chris@acme1.ruhr.de>
Subject: Accessing i/o-ports from user-code ?
X-Newsreader: Gnus v5.3/Emacs 19.34
Sender: usenet@acme1.ruhr.de (Charlie Root)
Nntp-Posting-Host: localhost
Organization: Private BSD Site, Witten
Lines: 16
Message-ID: <87g20rbmk6.fsf@acme1.ruhr.de>
Date: Fri, 27 Dec 1996 23:21:45 GMT
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33305


Hi,

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 ?? 

	Chris

-- 
If you put garbage in a computer nothing comes out but garbage.  But
this garbage, having passed through a very expensive machine, is
somehow enobled and none dare criticize it.