Solved

What's /dev/port

Posted on 2000-03-06
3
273 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
  • 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now