Solved

What's /dev/port

Posted on 2000-03-06
3
282 Views
Last Modified: 2008-03-03
Hi there,
I saw I have a /dev/port file. Looking in file system, I read it was for accessing to ioport. How can I use it to acces to parallel port ?
How can I specify the io port I want to work with ?

thanks

0
Comment
Question by:daanen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
rbr earned 10 total points
ID: 2590982
#include the file

asm/io.h

Now you will have macros

outb, inb, ...

0
 

Author Comment

by:daanen
ID: 2591817
Does that mean I open /dev/port and then does inp and outp ?
0
 
LVL 10

Expert Comment

by:rbr
ID: 2614876
No you don't have to open the /dev/port
outb and inb are the assembler makros whih you can use.
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question