Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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