• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

What's /dev/port

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
daanen
Asked:
daanen
  • 2
1 Solution
 
rbrCommented:
#include the file

asm/io.h

Now you will have macros

outb, inb, ...

0
 
daanenAuthor Commented:
Does that mean I open /dev/port and then does inp and outp ?
0
 
rbrCommented:
No you don't have to open the /dev/port
outb and inb are the assembler makros whih you can use.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now