user2190483
user2190483

Reputation: 267

Hardware write and read function for linux

What would be the equivalent function i could choose in LINUX as compared to below DOS calls ?

inportb(x) 
outportb(x,v)

Thanks Brijesh

Upvotes: 2

Views: 1225

Answers (2)

Chinna
Chinna

Reputation: 4002

You can use inb() and outb() calls. Go here you'll find more information how to use it.

Upvotes: 1

Devolus
Devolus

Reputation: 22094

If you are doing only port I/O then you can use ioperm to change permissions and then use in*/out* from user space. Obviously user permissions still apply.

Upvotes: 2

Related Questions