*BSD News Article 51190


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoregon.edu!news.delphi.com!uunet!in1.uu.net!news.sprintlink.net!EU.net!Germany.EU.net!news.dfn.de!RRZ.Uni-Koeln.DE!se
From: se@MI.Uni-Koeln.DE (Stefan Esser)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD equivalent for Linux ioperm() ???
Date: 19 Sep 1995 18:55:50 GMT
Organization: Institute for Mathematics, University of Cologne, Germany
Lines: 24
Message-ID: <43n3nm$qtr@news.rrz.uni-koeln.de>
References: <43muf2$jv1@crcnis3.unl.edu>
NNTP-Posting-Host: sysiphos.mi.uni-koeln.de
Keywords: ioperm, permissions, io, I/O, set, rights

In article <43muf2$jv1@crcnis3.unl.edu>, kuznicki@cse.unl.edu (Steven Kuznicki) writes:
|> Do any of you Gurus know the equivalent function, or set of
|> functions that I could use in FreeBSD, that do the same as
|> the ioperm(start,len,flag) function does in Linux??
|> 
|> I don't want to have to write a device driver for a simple
|> task of reading and writing to a card in the 0x300-0x310 
|> memory region.

Well, there isn't anything like ioperm() in FreeBSD.

But you don't need it ...

Just open "/dev/io" mode "rw" and your program has 
access to *all* I/O ports. Permissions of /dev/io
generally limit use of this feature to "root", but 
you'll find a way around this, if you need to :)

Regards, STefan
-- 
 Stefan Esser, Zentrum fuer Paralleles Rechnen		Tel:	+49 221 4706021
 Universitaet zu Koeln, Weyertal 80, 50931 Koeln	FAX:	+49 221 4705160
 ==============================================================================
 http://www.zpr.uni-koeln.de/staff/esser/esser.html	  <se@ZPR.Uni-Koeln.DE>