Solved

What's /dev/port

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
rhel6 C system() call to zip to archive has problems 25 241
Linux , how can I inspect a tar GZ file 3 138
pipe to sed or perl, please help 5 128
Cloning a part of HDD MIPS Linux 16 112
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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